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.
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.
I am also thinking check till previousCandle