How to code Second Bar TSL

How to code the logic:

If current candle’s high is greater than day’s high then low of previous candle should be SL and this loop should go on till the TSL is hit.

Hi, this will need custom coding, Currently, TSL works on an MTM basis level

Instead of Greater Than if you are ok with Greater Than Equal To then following can be thought of:

Here I am assuming that your current candle is anything less than daily candle e.g. 5 min, 15 min, 1 hour etc.

  1. Write a exit set for your requirement.
    check if high(day) == currentCandle(High)
    ltp(currentCandle) < low(previousCandle)

I am also thinking check till previousCandle

@narsa did it work for you?