Trail Stop Help
-
I am trying to have a trail stop that trails the low of the prior bar for longs and the high of prior bars for short. Any help would be great here.
-
The link is for the builder page, not your project. You want to use pink blocks, for each trade - modify stops
-
-
@xburbx Those 'for each position' blocks need to be separated into independent block trees. Something like this (for buys only):

Please consider that this structure will move the SL as soon as the trade is open if the condition is true. You will have to adjust that if you don't want it.
-
@l-andorrà Thanks. Like this?
-
Correct. Please remember that you need to create another block tree for sells.
-
@l-andorrà Thanks. I added the sell tree. When it takes trades it appears to exit immediately?>

-
On block 123 you require candle ID 1's high to be above current SL position when it needs to below.
-
@l-andorrà Thanks. Like this?

-
@l-andorrà I made this change but it doesn't seem to do the trick. Is it still referencing the original BUY/SELL conditions like in block 29? Do I have to point the BUY/SELL now blocks to the trail stop mini trees somehow?
-
Can you please share the link of the latest version?
-
Sure. See above.
-
I don't see any change. You should modify block 123 as I suggested.
-
@l-andorrà Thanks . I believe so . I flipped the < in block 123. Is that what you mean?
-
For some reason the change is not visible yet. That should make it work correctly
-
@l-andorrà So I flipped the < symbol but it doesn't appear to trail bars on the exit. It seems to be taking a fixed target still? It is taking a priority in something in the BUY/SELL blocks?

-
This is weird, because the logic is correct now. Is the shared structure the whole project or just part of it?
-
@l-andorrà It is the whole project. It appears to be referencing targets in the BUY/SELL block, no?
-
That means the problem is somewhere else, but honestly I don't have time to review it bloc by block. Please do this. Create a mini EA with a 'no position' block on top and buy now below. Then test the structure I suggested to move the SL. No more blocks. Use a big initial SL distance and test it. Then replicate it for sells. It should work as expected. If so, let me know.