Three small indicators you can use, read and change for free, licensed under the Mozilla Public License 2.0. To use one: open the Pine Editor in TradingView, paste the code, save and click “Add to chart”.
Indicator · separate pane
RSI with Divergence Marks
What it does: plots RSI with 70 / 50 / 30 lines and marks regular divergences: price makes a lower low while RSI makes a higher low (“Bull”), or a higher high while RSI makes a lower high (“Bear”). Pivots are found with lookback inputs; two alert conditions.
What it does not do: a pivot is only confirmed after the right lookback, so marks appear 5 bars late (default) and are drawn at the pivot bar. No hidden divergences. A divergence is not a buy or sell signal.
Download rsi-divergence.pine
Indicator · on chart
EMA Cross with Alerts
What it does: draws a fast and a slow EMA (default 9 / 21) with a colored zone between them and marks crosses with triangles. Option “Confirm on bar close” (on by default) shows marks only on closed bars. Two alert conditions plus alert messages with ticker and lengths.
What it does not do: EMA crosses lag price and give many false signals in sideways markets. No filters, no orders, no performance statistics.
Download ema-cross-alerts.pine
Indicator · on chart
ATR Trailing Stop
What it does: draws a stop line ATR × multiplier (default 14, 3.0) away from the close. In an up phase the line only rises; a close below it flips to a down phase, where the line only falls. Flips are marked and have alert conditions.
What it does not do: it places no orders and cannot guarantee a fill at the line (gaps, slippage). On the open bar line and phase can still change until the bar closes.
Download atr-trailing-stop.pine
How we checked them
Each file was checked with our own script against the official Pine Script v6 reference manual (function names, parameter names and types, v6 changes such as no na for booleans and no transp), and the logic was recalculated in a separate Python version on sample data. All three compiled without errors or warnings in the TradingView Pine Editor (Pine Script v6) on 4 November 2026. If one shows an error for you anyway, please tell us – we will fix it.