The script is written in PineScript V.3, makes no use of the security() function and does not use the Trailing Stop-Loss function from TradingView. No repainting issue whatsoever.
הערות שחרור
⋅
Version 1.02
Optimized the filters & the settings of the algo using price data from BITMEX:XBTUSD 1/4/2019 - 1/7/2019.