Coded up an EA need a little input

 

Coded up an Ea; however, I'm needing the trail profit and trail stop to function on open bar.   Is this possible?

Any code ideas would be appreciated .



Thanks

 
kc8yty559:

Coded up an Ea; however, I'm needing the trail profit and trail stop to function on open bar.   Is this possible?

Any code ideas would be appreciated .



Thanks

Hi,

So you could search it in codebase community by this : https://www.mql5.com/en/search#!keyword=trailing&module=mql5_module_codebase

There are free codes :

https://www.mql5.com/en/code/7108

https://www.mql5.com/en/code/7069

Regards.

 
Thank you
Reason: