You can see the request had accurate values... Any ideas why it's taking the order but not applying the stops?
2012.03.15 09:59:51 Core 1 2012.03.12 00:06:00 market sell 0.10 EURUSD (1.31175 / 1.31194 / 1.31175)//does this mean it didn't accept my stop loss and take profit values?
2012.03.15 09:59:51 Core 1 2012.03.12 00:06:00 ~~~~~~~~~~ Price: 1.311940 SL: 1.311890 TP: 1.312040 //from the MqlTradeRequest object
i've found that some brokers don't let you submit the stop-loss or take-profit with the original order, and you therefore need to either sleep() for 3-4 seconds until the order is submitted (but not dealt), or make sure your EA goes into a trailing-stop mode or other code section that modify the order, and add stop-loss/tp to it.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
You can see the request had accurate values... Any ideas why it's taking the order but not applying the stops?
2012.03.15 09:59:51 Core 1 2012.03.12 00:06:00 market sell 0.10 EURUSD (1.31175 / 1.31194 / 1.31175)//does this mean it didn't accept my stop loss and take profit values?
2012.03.15 09:59:51 Core 1 2012.03.12 00:06:00 ~~~~~~~~~~ Price: 1.311940 SL: 1.311890 TP: 1.312040 //from the MqlTradeRequest object