Trailing stop problem with minimum distance limitation
-
Hi
Hope you can help me. I´m having a problem with the trailing stop on a MT5 EA. That happens when trailing stop tries to move the SL when the price is too close to the TP level. As there is a minimum distance limitation on where the TP can be placed, even though only the SL was changed, that causes the TP to be deleted leaving the trade without a TP. Is there a way to solve this? Is there a way to only change the SL without affecting the TP?
Thanks
-
You have trailing stop with Step = the size of TP. This is weird

I don't remember why, but I have set it in a way, so if the desired TP level is equal to Ask, TP to be set to 0.
-
__You have trailing stop with Step = the size of TP. This is weird
[/quote:3q3a8mv3]Didn´t understand what you meant by that!!!

__I don't remember why, but I have set it in a way, so if the desired TP level is equal to Ask, TP to be set to 0.[/quote:3q3a8mv3]
That is what I see happening. The TP is set to zero when the Ask (or Bid) is equal or too close to TP. Then the operation has to be closed manually otherwise will be closed when it hits SL even if already reached the original TP. Is there a solution for this?
-
I mean that you have no trailing stop until the price goes too close to TP. This is not Take Profit, this is Trailing Step: http://prntscr.com/6fvr9t
-
Oh no, that is not the one I´m refering to. I did corrected the one you mentioned.
The one I´m testing is an earlier version that I´m running on a demo account, works correctly and the settings are actually correct with Trailing Step set as is meant to be. But the problem still exists. The TP is set to 0 when the trailing stop is moved when the price is at or too close to the TP.
-
Ok, I removed that rule to set TP to 0. Now what, you still don't have trailing stop

-
OK I´m going to test it now and we´ll see how it works. Thanks.