Sasha: Prob with IsTesting() and IsVisualMode()

 
Slawa:

I am using IsTesting() and IsVisualMode() in an INDICATOR (not an EA) and when the indicator is on the chart in visual mode, is is reporting IsTesting()==false and IsVisualMode()==false.

Is this a bug in build 211? Is there a way to test for IsTesting() in an indicator that is on a chart being run in the strategy tester?

Thank you,

Christian
 
I suspect that IsTesting() and IsVisualMode() only operate within an Expert, not an indicator. There is no error, just "false" for the return.
 
I suspect that IsTesting() and IsVisualMode() only operate within an Expert, not an indicator. There is no error, just "false" for the return.



Perhaps, but based upon the documentation and the behavior of other functions, they should respond accurately whether or not they are in an indicator or EA.

I have at least one situation where it would be very useful.

What do you think Slawa?
 
Chart opened by tester does not know that it is under visual testing.
Your wish is clear but i don't know exactly when your problem will be solved.
 
Chart opened by tester does not know that it is under visual testing.
Your wish is clear but i don't know exactly when your problem will be solved.


Thank you Slawa, I will "keep my fingers crossed".
Reason: