About RCI 8 Lines
Unlike 3-line RCI tools that only draw the lines, RCI 8 Lines groups them by length and marks when the groups line up or cross.
How it works
- Each line is TradingView's RCI: the rank correlation between price and time over its length, from −100 to +100.
- Lengths: 9, 14, 18 and 26 for the short lines, 33, 42, 52 and 75 for the long lines. Each group can have 1 to 6 lines. Colors run from the darkest to the lightest of each group in order of length.
- Perfect order: all lines in order of length, the shortest on top (bullish) or the longest on top (bearish). The same direction is not marked again within 50 bars.
- Golden cross: all short lines move above all long lines. Death cross: all short lines move below all long lines. Marked only when the direction changes from the last cross.
- Signals are checked at bar close, so a mark never moves or disappears.
- Higher timeframe: the RCI is built from that timeframe's completed closes and the current price, so past bars show what it was at that time.
- With Lines set to Timeframes, one length (9) is drawn on 1m, 5m, 15m, 30m, 1h, 4h, D and W. Timeframes lower than the chart are not drawn; their values are in the summary.
On the chart
- Below the chart: the lines, with dotted levels at +80, 0 and −80.
- On the price chart: "▲ PO" and "▲ GC" in green below the bar, "PO ▼" and "DC ▼" in red above it. Hover a mark for its meaning.
- Summary (off by default): how many lines are on the same side of 0, for example "4 of 8 above 0", and the value of each line.
- Colors, line width and text size can be changed. Every part can be turned off.
Alerts
Use the "Any alert() function call" condition. All lines on one side of 0, all lines beyond the levels, perfect order, and golden or death cross. Sent at bar close.
Notes
- RCI uses ranks, so a higher timeframe line moves in steps when the price passes one of that timeframe's earlier closes.
- With fewer lines, signals appear more often.
- Signals appear only when Lines is set to Lengths.
How to add it
- 1Open the script page on TradingView with the button above (or here).
- 2Click “Add to favorites” on that page.
- 3On any chart, open Indicators, go to Favorites and click RCI 8 Lines [Saikix].