Would anyone be able to provide the code that would enable a long entry for current price being greater than the plot value of TSSupertrend of one bar ago?
I have tried:
Close[0] > TSSuperTrend(length, MovingAverageType.SMA, multiplier, smooth, smode).DownTrend[1]
but it doesn't work.
I have attached a picture with an example of what I'm trying to achieve.