Debugging

Moderator: admin

Debugging

Postby vilka2001 » Thu Nov 11, 2010 12:50 pm

Hi everyone!

I am a newbie at lua and marketscope(Indicore), I was working with metatrader for 2 years and now moved on here. I'm triyng to create my own strategy, but there is no ability to control (to debug or just view something), i'll tell what I mean:
In metatrader you have print() and alert() functions what gives ability to realy test the workflow of your strategy( or indicator), marketscope(Indicore SDK) has only built in "debugger" for strategy and inicators, it's very, very uncomfortable, plus it works only on history data - no real time testing.

So can anyone help me on what usually Indicore developers do to test their strategies? Maybe there is some methods to print what i need, lua has built in function print, why it does not supportedby Indicore?

And finally one more question, can I make strategy + indicator at one time, to draw smt on the chart?
vilka2001
 
Posts: 1
Joined: Fri Oct 29, 2010 9:27 am

Re: Debugging

Postby Timon55 » Thu Nov 11, 2010 2:48 pm

You can use the core.host:trace() function
http://www.fxcodebase.com/documents/Ind ... trace.html
Timon55
FXCodeBase: Confirmed User
 
Posts: 43
Joined: Thu Jul 15, 2010 5:35 am
Location: Omsk


Return to Indicator Development

Who is online

Users browsing this forum: No registered users and 54 guests