Quote:
|
Originally Posted by igotswansons
I am developing my first ea right now and I am having trouble with a trailing stop. I can initiate an instant buy or sell order but I do not know how to give it a trailing stop. Can anyone help me with this. I am currently using an
OrderSend function for the instant orders. If someone could please tell me how to add a trailing stop to this, I would really appreciate it. thank you
|
We have many thread about trailing stop. You may check some EAs and scripts which are doing this job:
Trailing Stop EA
E-ASEClose Expert from KIMIV
Trailing file
Also you may visit EA template page with the codes for trailing stop:
Templates to create EAs and Indicators
Kalenzo posted stop and trailing stop code somewhere here:
Wma 5/20 - Ema