In log that follows when the initial order open the stop loss is different from 0 and that is ok because stop loss in external is 50, but when the opposite order open the stop loss is 0 and I suppose that this is wrong. How can this happen if opposite order calls for add limits function and in this functrion the stop loss is the external 50 ?
Nevertheless on graphic one can see that all sto loss lines are 50 pips apart from price....
2013.04.0216:44:46 market_order_ecn_80_800_v7_v3 EURUSDi,M1: Opposite Sell Order Placed: 6621931 StopLoss: 0.00000 Open Price: 1.283392013.04.0216:44:46 market_order_ecn_80_800_v7_v3 EURUSDi,M1: modify #6621931 sell 0.02 EURUSDi at 1.28339 sl: 1.28871 tp: 1.27871 ok2013.04.0216:44:45 market_order_ecn_80_800_v7_v3 EURUSDi,M1: open #6621931 sell 0.02 EURUSDi at 1.28339 ok2013.04.0216:41:06 market_order_ecn_80_800_v7_v3 EURUSDi,M1: Initial Buy Order Placed - BuyTicket: 66219112013.04.0216:41:06 market_order_ecn_80_800_v7_v3 EURUSDi,M1: modify #6621911 buy 0.01 EURUSDi at 1.28371 sl: 1.27852 tp: 1.28852 ok2013.04.0216:41:05 market_order_ecn_80_800_v7_v3 EURUSDi,M1: open #6621911 buy 0.01 EURUSDi at 1.28371 ok
In log that follows when the initial order open the stop loss is different from 0 and that is ok because stop loss in external is 50, but when the opposite order open the stop loss is 0 and I suppose that this is wrong. How can this happen if opposite order calls for add limits function and in this functrion the stop loss is the external 50 ?
Nevertheless on graphic one can see that all sto loss lines are 50 pips apart from price....
where does the value of OpenPrice come from ? what code is used to set it ? please post it here and explain how it is relevant to this code ?
Hi RaptorUk,
So, the OpenPrice is the OrderOpenPrice from the order that the ticket identifies, in this case is the OrderOpenPrice is the Bid at the moment the order is open. Hummmmm........should be bid for sell and ask for buy, right ?
So, the OpenPrice is the OrderOpenPrice from the order that the ticket identifies, in this case is the OrderOpenPrice is the Bid at the moment the order is open. Hummmmm........should be bid for sell and ask for buy, right ?
Hi RaptorUK,
My apologies to keep use your time.
In log that follows when the initial order open the stop loss is different from 0 and that is ok because stop loss in external is 50, but when the opposite order open the stop loss is 0 and I suppose that this is wrong. How can this happen if opposite order calls for add limits function and in this functrion the stop loss is the external 50 ?
Nevertheless on graphic one can see that all sto loss lines are 50 pips apart from price....
Thank you in advance
Luis
Hi RaptorUK,
My apologies to keep use your time.
In log that follows when the initial order open the stop loss is different from 0 and that is ok because stop loss in external is 50, but when the opposite order open the stop loss is 0 and I suppose that this is wrong. How can this happen if opposite order calls for add limits function and in this functrion the stop loss is the external 50 ?
Nevertheless on graphic one can see that all sto loss lines are 50 pips apart from price....
Thank you in advance
Luis
In the following code . . .
where does the value of OpenPrice come from ? what code is used to set it ? please post it here and explain how it is relevant to this code ?
In the following code . . .
where does the value of OpenPrice come from ? what code is used to set it ? please post it here and explain how it is relevant to this code ?
Hi RaptorUk,
So, the OpenPrice is the OrderOpenPrice from the order that the ticket identifies, in this case is the OrderOpenPrice is the Bid at the moment the order is open. Hummmmm........should be bid for sell and ask for buy, right ?
The code is;
Thank you for your time
Luis
Hi RaptorUk,
So, the OpenPrice is the OrderOpenPrice from the order that the ticket identifies, in this case is the OrderOpenPrice is the Bid at the moment the order is open. Hummmmm........should be bid for sell and ask for buy, right ?
The code is;
That should help, test it and see what happens.
Hi RaptorUK,
That issue was due to a line of error be in the wrong place.
Because the line was getting information from OrderSend(....) and here the StopLoss is 0, so it can only be 0.0000.
Now I've exclude information of StopLoss from the line.
Best Regards
Luis