Useful tip for multiple trailing stops
-
So I have been stewing over this for a while and finally found a solution - How to use 2 different ATR trailing stops based on where profit is, without having them conflict.
Let's say I want to use an ATR trailing stop (x2) and have it trigger at the ATR level itself. In this case I use a variable ts_atr_mult with value of 2. I find on backtesting it triggers at the perfect time, giving the trade enough room to move into profit first. However as the trade goes further into profit, the TS is too wide to capture good profit.
Now, when profit moves let's say 85% of TP level, I want to trigger a second trailing stop that tightens from 2 x ATR to 1 x ATR. Simply having 2 trailing stops connected creates a conflict, therefore the stops jump around all over the place and it jams the testing.
How to solve this problem??

I use a condition block to check if profit is below 85% of TP, and I use 'Set Flag' true/false to fix this issue. I have the 'check flag' T/F block set to false before the condition. I have the 'set flag' to true after the negative output and below the second trailing stop. Thus, once the profit goes above 85% for the first time, the second stop is triggered and the flag is set true. Then check flag block bypasses the condition and stays on the tighter stop. Just remember to reset the flag when trades have closed. Works well to capture more profit -
This seems like an interesting approach. Would be nice to see a diagram of the initial order, when the first TS starts and the size, and then when the 2nd kicks in. I struggle with a similar problem - my EA has a nice TS but often it leaves a lot of profit on the table. I use my size as a portion of my initial SL size, so it's dynamic. With only 1 TS it's difficult to capture all (or the majority) of profit.
-
https://fxdreema.com/forum/topic/19165/as-the-snow-increases-the-trail-stop-gets-narrower
https://fxdreema.com/shared/k4LvaXGbe
I'm trying to create a trailing stop with a logic similar to yours. But since I am new to fxdrema, I could not find how to connect the second trailing stop. I tried various things to no avail. I'm adding my project and help link below. You are good at this, can you help me with my project?
-
@bayramay Sorry for my slow reply.
After looking at your project, you are best separating the trailing stop from the 'no position' block, and separate both trailing stops from each other. This current setup will have them conflicting I'm pretty sure. I'm not clear on when your different trailing stops should start and how they work.
Set up 'if postion' block, or negative output of 'no position' then insert a condition block (like profit >= X pips or something) then place the first trailing stop under that. Then insert a second condition for how you want the second trailing stop to go then insert the second trailing stop under it. Like this kind of structure:

I hope it helps
-
@Julianrob Hola amigo, si puedes compartir el enlace de esta solucion por favor?