I have a challenge, I am trying to use the trailingstop that is updating onpricechange and not onbarclose.
Basically ( see picture below)
1- if the price goes below the green line entry long with trailing stop
2- if the price goes above the red line entry short with trailing stop
the problem if I call that indicator into the strategy , the indicator is going to calculate the line on each price change.
The green and red line in image below are based on an custom indicator that is calculate the line onbarclose.
is it possible to use the red / green line values calculated onbarclose or as seen on the screen into a strategy that calculate onpricechange ?
any example?
the bar are a custom bar line break chart with wicks
thank you
Comment