Download MetaTrader 5
To add comments, please log in or register
Having questions? Ask them on the Forum - traders will help you!
NeilG
65
NeilG 2014.07.17 16:12 

Hi, 

Is it possible to remove a manual trailing stop [originally created by right-clicking on a pending order and adding a trailing stop] in EA code?

Any assistance would be appreciated. 

Thanks,

Neil 

Alain Verleyen
Moderator
28658
Alain Verleyen 2014.07.17 18:47  
snafu4:

Hi, 

Is it possible to remove a manual trailing stop [originally created by right-clicking on a pending order and adding a trailing stop] in EA code?

Any assistance would be appreciated. 

Thanks,

Neil 

No, you can't manage the "manual trailing stop" by code. You have to create and manage your own trailing stop within your code.
NeilG
65
NeilG 2014.07.17 18:51  
angevoyageur:
No, you can't manage the "manual trailing stop" by code. You have to create and manage your own trailing stop within your code.


Thank you for the prompt reply.
Daniel Petrovai
440
Daniel Petrovai 2014.07.21 01:50  
snafu4:

Hi, 

Is it possible to remove a manual trailing stop [originally created by right-clicking on a pending order and adding a trailing stop] in EA code?

Any assistance would be appreciated. 

Thanks,

Neil 


Apparently cancelling the order stop loss also cancel the trailing stop set on that order.

I only tried it manually but you can test it yourself on a demo account. That may open a possibility for you to select the order with OrderSelect() and cancel the stop after that you can manage the order with your EA.

Just a thought. 

/
To add comments, please log in or register