Debugging

coiler
284
coiler  

Hi All,

how do you debug expert on strategy tester?. Comment() and Alter() are disabled? When i am testing an EA in visual mode, no Comment() and Alert() is apearring.

Best,

Vince.

Mladen Rakic
225960
Mladen Rakic  

Vince

It (the Comment()) is not disabled in visual mode.

Maybe you are having it within some if {} block and that prevents Comment() from displaying the information. Try changing the place (I usually change where comment is nested from beginning towards the end of code when trying to pinpoint the error). Here is a simple EA that when you run it on visual back test will show you comments as usual

int init() { return(0); }

int start()

{

Comment(TimeToStr(TimeLocal(),TIME_DATE|TIME_SECONDS));

return(0);

}

vibarco:
Hi All,

how do you debug expert on strategy tester?. Comment() and Alter() are disabled? When i am testing an EA in visual mode, no Comment() and Alert() is apearring.

Best,

Vince.
coiler
284
coiler  

Sorry it was my fault, it works now. Thanks for the quick answer mladen.

Mladen Rakic
225960
Mladen Rakic  

Glad that you solved it

I hate when there are errors in code and I know the feeling when you are trying to "kill the bugs". Happy further coding

vibarco:
Sorry it was my fault, it works now. Thanks for the quick answer mladen.