You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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.