Download MetaTrader 5
To add comments, please log in or register
MQL5 Cloud Network speeds up calculations. Try it!
Vyper
11
Vyper 2010.11.01 06:23 

Hi Folks,

 

I'm sorry if im asking basic question or newbie doubts but i just started with EA coding. 

I keep getting 4576 error with the following message : '685749' : Failed sell stop limit 0.10 EURUSD at 1.39823 (1.39823) sl: 1.39935  tp: 1.39733 [Invalid stops]


Here goes the mqltraderesquest operar  data:

Order data

 

As far as i know its all correctly setup, since i'm trying to sell stop limit at 1.39823(stop limit and price) which is lower than ask price 1.39917, and stoploss is higher than all an takeprofit is lower than all.

 Thanks in advance 

Documentation on MQL5: Standard Constants, Enumerations and Structures / Trade Constants / Order Properties
  • www.mql5.com
Standard Constants, Enumerations and Structures / Trade Constants / Order Properties - Documentation on MQL5
Rashid Umarov
Admin
6602
Rashid Umarov 2010.11.01 08:11  
Stop limit price for SellStopLimit oder shoudb be greater than value Price in a request. Try to change it.

Vyper
11
Vyper 2010.11.01 08:49  
Rosh:
Stop limit price for SellStopLimit oder shoudb be greater than value Price in a request. Try to change it.

 

Hi Rosh,  

You were right!, thank you very much!

:) 

/
To add comments, please log in or register