Why Alert() not work in Strategy Tester?

 

Is there any way for me to watch the value of a variable while my EA is executing one step at a time in Strategy Tester? Not being able to find out the value of a variable is making it impossible to debug my EA.

 

Thanks, lowphat. I'll give Print() a try.

 

double MyValue1=iMA(...);

double MyValue2=iMA(...);

Print ("MyValue1=",MyValue1, " MyValue2=",MyValue2);

then look in your journal

I would be useless with0u7 the print

if you can make your logic into an indicator you can use

Comments ("MyValue1=",MyValue1);

put it on a clean chart and u can watch the values in real time

 

I got it to work. Thanks.

 

cool cool

Reason: