Hi all,
OrderSend(Symbol(),OP_BUY,start_lot,Ask,1,Ask - SL_Value,0,NULL,1,0,Red);
My EA sent a buy order as above but there's an issue when the order was opened
1) Let's say at the time of execution, Ask price is 1.00020. And let's say the SL is 2 pip, so the SL price is 1.00000
2) Also i set the slippage to be 1 pip as shown above
3) I guess due to slippage, the order was opened at 1.00070 and the SL was maintained at 1.00000. This means the price was opened 5 pip above the order send price
4) Even when i set slippage to be 1 pip, yet it still open 5 pip higher
Questions are
1) Why it was allowed to open 5 pip higher although i set the slippage to 1 pip?
2) the broker told me for market order, the slippage in ordersend doesn't have any impact. in this case what's the purpose of having the slippage option in ordersend?
3) any idea what i can do from EA side so that is price move too much over the original target price to cancel it?
thanks in advance
OrderSend(Symbol(),OP_BUY,start_lot,Ask,1,Ask - SL_Value,0,NULL,1,0,Red);
My EA sent a buy order as above but there's an issue when the order was opened
1) Let's say at the time of execution, Ask price is 1.00020. And let's say the SL is 2 pip, so the SL price is 1.00000
2) Also i set the slippage to be 1 pip as shown above
3) I guess due to slippage, the order was opened at 1.00070 and the SL was maintained at 1.00000. This means the price was opened 5 pip above the order send price
4) Even when i set slippage to be 1 pip, yet it still open 5 pip higher
Questions are
1) Why it was allowed to open 5 pip higher although i set the slippage to 1 pip?
2) the broker told me for market order, the slippage in ordersend doesn't have any impact. in this case what's the purpose of having the slippage option in ordersend?
3) any idea what i can do from EA side so that is price move too much over the original target price to cancel it?
thanks in advance