Testing Indicators on Testing PlatForm

 

Hi All..

Is there a way for an indicator to get the current time when using the testing Platform using visual with FromTo Dates?An indicator by itself does not know whether its running in TestMode or not(To my knowledge, that function works for EAs/Scripts only). I have had to resort to a dummy EA that does nothing but put it in a global variable. This causes another problem because I cannot Test and run real-time at the same time if I am using the same indicator on both environments since Global variables are shared. Another alternative would be to store the date in an object so that it is restricted to the test chart, but am wondering if there might be a better way.

Thanks in Advance.