TradingView Indicator Clone V5

Customer: AI | Published: 24.10.2025

I have an existing TradingView custom indicator written in an older version of Pine and I now need a faithful replica in Pine Script V5. The original displays its logic directly on a candlestick chart, so the V5 script must do the same—every calculation, visibility rule, and overlay needs to match what I already see live on my screen. Here is what I expect: • The same candlestick-based visualization with my original colour rules and plot styles intact. • All embedded calculations ported over without simplifications—if you spot inefficiencies, feel free to flag them but keep outputs identical. • The extra indicators that sit on top of, or alongside, the candles (moving averages, custom levels, etc.) must be included so the user gets a one-click replica when adding the script. Please give me the full, commented V5 source code, ready for me to copy-paste into the TradingView editor, plus a short note on any unavoidable syntax or logic changes between versions. If possible, add toggle inputs so I can switch individual overlays on or off without touching the code. I will test by loading the script on several symbols and timeframes, confirming every candle mark and additional indicator matches the legacy version. Once the plots align perfectly, the job is done.