Download MetaTrader 5

Previous Bar Trailing Stop

To add comments, please log in or register
Marbo
213
Marbo  

Hi, has anyone a trailing stop EA which moves the stop to the previous bar's low/high?

Thank you!!

Mladen Rakic
62938
Mladen Rakic  

...

Try this out

It has some extra options, but the trailing stops should be set to the high or the low of the bar you choose (the HighLowBar is the bar you wish to use for highs and lows)

Marbo
213
Marbo  

great, thank you!!!

samid
18
samid  
mladen:
Try this out It has some extra options, but the trailing stops should be set to the high or the low of the bar you choose (the HighLowBar is the bar you wish to use for highs and lows)

Thank you for your kindness, but I wonder how does it work?

If you wish, if I can add code to pendingorder opposite?

Suppose, which is ditrailing Buy it will run pending sell orders at that point sama.jadi when the Order is closed it will open the order counter ..

Thank you if you help.

hhylf
30
hhylf  
mladen:
Try this out It has some extra options, but the trailing stops should be set to the high or the low of the bar you choose (the HighLowBar is the bar you wish to use for highs and lows)

Very good and simple ea, thank you mladen.

Can somone help to add Partial close function when profit fix pip? ex: profit 10pip, then close 60% position.

Thank you!

zktier
8
zktier  

Can anybody make an extra option to this great EA so one can choose the distance to stop from the high low? For example that you can have the stop trailing 5 pips below or above the high and low.

Mladen Rakic
62938
Mladen Rakic  
zktier:
Can anybody make an extra option to this great EA so one can choose the distance to stop from the high low? For example that you can have the stop trailing 5 pips below or above the high and low.

Try it out now

Added HighLowDisplacePips parameter. It can be positive or negative. If it is positive the displacement will be low+displace and high-displace and if it is negative it will be low-displace and high+displace

zktier
8
zktier  
mladen:
Try it out now Added HighLowDisplacePips parameter. It can be positive or negative. If it is positive the displacement will be low+displace and high-displace and if it is negative it will be low-displace and high+displace

It works like a charm! You are a genius! Thank you very much for the help.

Cheers

FxSteven
174
FxSteven  
mladen:
Try it out now Added HighLowDisplacePips parameter. It can be positive or negative. If it is positive the displacement will be low+displace and high-displace and if it is negative it will be low-displace and high+displace

Hello mladen ,

Can you update this ea to nmc ?

Mladen Rakic
62938
Mladen Rakic  
stevenpun:
Hello mladen , Can you update this ea to nmc ?

stevenpun

Here is the new mt4 compatible version : high_low_trailing_stop_1.01_nmc.mq4

FxSteven
174
FxSteven  
mladen:
stevenpun Here is the new mt4 compatible version : high_low_trailing_stop_1.01_nmc.mq4

You are so fast , thank you very much

To add comments, please log in or register