gangsta1:
E.g.
place buy order - first order
at +50 pips trade up trailing with trailing gap - new trade up order (the EA currently places multiple trade up orders at each trade up level, it should place only one order per trade up level).
at +100 pips trade up traing with trailing gap - another new trade up order (again, the EA does not just open one extra order at the trade up point, it sometimes opens 2,3,4 or more per level).
The problem is that the trade up trailing block will open more than one trade as the distance is reached, I only want it to open one at the trading up distance.
Hello,
E.g.
place buy order - first order
at +50 pips trade up trailing with trailing gap - new trade up order (the EA currently places multiple trade up orders at each trade up level, it should place only one order per trade up level).
at +100 pips trade up traing with trailing gap - another new trade up order (again, the EA does not just open one extra order at the trade up point, it sometimes opens 2,3,4 or more per level).
The problem is that the trade up trailing block will open more than one trade as the distance is reached, I only want it to open one at the trading up distance.
what a terrible code, to me it looks like you don't know what's gonna happen if you run it....
Is there a need for changing the takeprofitlevel with your trailing ?? and if so why do you change it then ??
your code.....
bool ret1 = OrderModify(OrderTicket(), OrderOpenPrice(), stoploss, takeprofit, OrderExpiration(), White); if (ret1 == false) Print("OrderClose() error - ", ErrorDescription(GetLastError()));
Is this trying closing ??? if not why do you print message "OrderClose() error - 'Errnumber' "
------
You are checking the open trades and inside this loop you try to open new trades ....... just can't believe you know what you do
also the way how you try to open first without stopsetting and then a line with it and then modifying it not knowing if it has already stopsettings
Really ,really , really this makes me dizzy
Explain me how can this be good ????

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
Hello,
I want to trade up (add to position) with a trailing gap after a certain amount of pips but only ONE trade up order as the trade up distance is reached.E.g.
place buy order - first order
at +50 pips trade up trailing with trailing gap - new trade up order (the EA currently places multiple trade up orders at each trade up level, it should place only one order per trade up level).
at +100 pips trade up traing with trailing gap - another new trade up order (again, the EA does not just open one extra order at the trade up point, it sometimes opens 2,3,4 or more per level).
The problem is that the trade up trailing block will open more than one trade as the distance is reached, I only want it to open one at the trading up distance.