How to create a stoploss/takeprofit order
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.
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