asuralm:
Hi :
I want to apply the rule that if an order is opened, then in the following, say 30 bars, no same direction order can be opened.
I tried to implement this using the Time difference between the two orders, but obviously when it comes to weekend, this will fail.
Anyone get any idea how to implement this idea please?
Thanks
You can use iBarShift() with open time of your last order.
Brilliant, that's what I am looking for.
Thanks

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 :
I want to apply the rule that if an order is opened, then in the following, say 30 bars, no same direction order can be opened.
I tried to implement this using the Time difference between the two orders, but obviously when it comes to weekend, this will fail.
Anyone get any idea how to implement this idea please?
Thanks