P
The Sleep() function isn't processed in backtesting, use TimeCurrent() and add seconds to get next price check time
Even if you used Sleep() in live trading you would need to use a RefreshRates() to get a price difference on the same tick...
-BB-
hello
after Sleep(10000); add additional line:
RefreshRates();
after this Price2 will have a new Bid value.
regards
oromek
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