No. Example should be:
If (Bid>High[1]) then { Open Order 17; Sleep(8000); RefreshRates(); } If (Bid<Low[1]) then Close Order 17;
No. Example should be:
If (Bid>High[1]) then { Open Order 17; Sleep(8000); RefreshRates(); } If (Bid<Low[1]) then Close Order 17;
Thanks for this Slawa, i now see exactly what you mean. i should refresh rates (ie refresh bid and low[1]) as during the 8 second wait these varibales may have changed. You are certainly a mentor to me. Thanks Slawa !!!!!
kind regards
RJF :-)
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
Just wondering if I can use sleep function to make EA "wait for 8 seconds" between trading operations, for example:
Just want to make sure that if I do this, that it will not cause any problems?
Thanks Slawa. Always appreciate your great help.
With regards
RJF