You, or better your EA builder sets an isTrade variable if an order is open.
for (int i = 0; i < Total; i ++) { OrderSelect(i, SELECT_BY_POS, MODE_TRADES); if(OrderType() <= OP_SELL && OrderSymbol() == Symbol()) { IsTrade = True;
Later you, or your EA builder only allows a new order, if isTrade is not set.
//Buy if (Order == SIGNAL_BUY && ((EachTickMode && !TickCheck) || (!EachTickMode && (Bars != BarCount)))) { if(!IsTrade) {
Don't set isTrade and it should open more orders.
polbanda:
Go here for help: EABuilder Forum or learn to code: Book
Hi
I need help to add options to this EA that makes it open position on each signal. I dont want to open only one buy and only one short posiotion.
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 need help to add options to this EA that makes it open position on each signal. I dont want to open only one buy and only one short posiotion.
How to do this ?