bobo1974:
hi all
currently i am using ontick
when a trade is closed, i want to wait a certain interval before evaluating to open a new trade
googling around, i found sleep can do the trick
is this the best method?
thanks
No.
Register the datetime when a trade is closed, and check that enough time elapsed to open a new one.
Alain Verleyen:
any sample script i can refer to?
No.
Register the datetime when a trade is closed, and check that enough time elapsed to open a new one.
datetime TimeStampLastTrade; if(TimeLocal() > (TimeStampLastTrade + 60)){ // 1 minute OrderSend(...); } if(OrderClose(...)){ TimeStampLastTrade = TimeLocal(); }
Top-SecreT:
thank you
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
currently i am using ontick
when a trade is closed, i want to wait a certain interval before evaluating to open a new trade
googling around, i found sleep can do the trick
is this the best method?
thanks