Invalid Stops in EA with account ECN - page 2

 
  1. Please edit your (original) post and use the CODE button (Alt-S)! (For large amounts of code, attach it.)
              General rules and best pratices of the Forum. - General - MQL5 programming forum
              Messages Editor

  2. neueOrder.sl           = stopLoss;
    neueOrder.tp           = takeProfit;
    Do you really expect an answer? There are no mind readers here and our crystal balls are cracked. We can't possibly know what pendingBuyPriceAskstopLoss and takeProfit is or their value or what the Bid was at the time of the call.

 


as I understand it he is confusing asset prices with each other


when you have more than one order open in more than one asset


                                                                    

 

Right 

USDCAD isnt @ 109 that is EURUSD.

So it trying to modify USDCAD with EURUSD quotes.

Bad coding job.

 
Marco vd Heijden:

Right 

USDCAD isnt @ 109 that is EURUSD.

So it trying to modify USDCAD with EURUSD quotes.

Bad coding job.

Time to sell EURUSD if it is at 109
 
Alain Verleyen:
Time to sell EURUSD if it is at 109

Haha yeah or buy USDCAD at 109 and sell it at 133 on the next tick.