I need a Pine Script that recreates the “Renko ghost candle flip” concept directly on TradingView. The script must: • Build Renko-style ghost candles on any chart interval, updating in real time • Detect the precise moment a ghost candle flips direction and mark that bar visually • Optionally fire a TradingView alert on each flip so I can route signals to my broker or phone • Offer a few simple inputs (brick size, colour scheme, alert on/off) so I can tune it without touching the code • Be written in clean, well-commented Pine Script v5 so I can maintain it later Deliverables 1. The .pine file ready to paste into the TradingView editor 2. A short usage note explaining the inputs, how the flip is calculated, and how to enable alerts Please keep external dependencies to a minimum—everything should run natively inside TradingView.