
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'm working on a EA where we start to see if it's possible to have more then one order triggered if the same trigger happens before we change trend.
The code was first made to only do one order at a time with this:
then we have Close order function.
everything works as expected when we use one order but if we start using more orders by chaning total to a varible. it dosent trigger things correctly.
if MaxOrders is 1 it works as i supos to but higher then one it dosn't trigger the close function.
With MaxOrder = 1
With MaxOrder = 2
I'm missing something simple I know but I cant figure out what.