The strategy that I'm trying to build and that I have attached is when a bar open is above the previous bar open go long and when a bar open is bellow the previous bar open go short.
The condition that I would like to be verified in a given bar when the condition is met and then let it run (the position) till a stop loss or opposite condition happen, instead of that, the condition is being applied to every single bar.
I have tried to include a stop loss and a trailing stop but I don't know how to, on trailing stop, to use the previous bar open + or - x ticks (+ if short and - if long)
Honestly I don't get what I may be doing wrong here
Thank you
Comment