Download MetaTrader 5

pending orders + spread

To add comments, please log in or register
oxarbitrage
152
oxarbitrage  

hi forum, i have a situation here.

lets suppose i open a pending order, a buy stop order for instance. this order became a market buy order when the price is reached. it is possible in mql4 to know what is the spread at the moment the pending became market order and take actions like don't execute if the spread is too big ?

i appreciate any comment.

Ickyrus
876
Ickyrus  

Cant be done - the pending order is registered on the brokers system and you are asking to modify that order the same time the price says change the order from pending to active. Can only be done as checking the spread before sending an active trading order to the broker.

dineshydv
171
dineshydv  
oxarbitrage:

hi forum, i have a situation here.

lets suppose i open a pending order, a buy stop order for instance. this order became a market buy order when the price is reached. it is possible in mql4 to know what is the spread at the moment the pending became market order and take actions like don't execute if the spread is too big ?

i appreciate any comment.



Dont send your pending order to broker. Keep monitoring the price in EA instead and as soon as it reaches your execution price, check the spread and take action....
dineshydv
171
dineshydv  
But if you send it as pending order, then you cant change it...
whroeder1
16112
whroeder1  

nope.

Also unnecessary. a pending order is for human's use. They can't watch the screen continuously. A EA can and not open.

oxarbitrage
152
oxarbitrage  
got it, thank you for the answers ;)
Luis
226
Luis  

Isnt this for what was slippage made from?

Greetings

BeLikewater

To add comments, please log in or register