About Multi Length Stochastic 8 Lines
Unlike stochastic ribbons that only draw the lines, or tools that average the lengths into one line, Multi Length Stochastic 8 Lines keeps every length, groups the lines by length and marks when the groups line up or cross.
How it works
- Each line is the Stochastic %K: where the close sits between the lowest low and the highest high of its length, from 0 to 100, smoothed with an SMA (%K smoothing, 3 by default). %D is not drawn.
- 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 between the two colors 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 stochastic is built from that timeframe's completed bars, the high and low of its current bar so far, and the current price, so past bars show what it was at that time. When the higher timeframe bar closes, it equals that timeframe's own stochastic.
- With Lines set to Timeframes, one length (14) 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, 50 and 20.
- 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 50, for example "4 of 8 above 50", 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 50, all lines beyond the levels, perfect order, and golden or death cross. Sent at bar close.
Notes
- In a strong trend, stochastics stay near 0 or 100 for many bars, so all lines can stay beyond the levels for a long time.
- 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 Multi Length Stochastic 8 Lines [Saikix].
First steps on the chart
- Read the price chart first: PO means all lines are in order of length, and GC or DC means all short lines moved above or below all long lines.
- Lines is the setting to check first. Lengths draws the PO, GC and DC marks; Timeframes plots length 14 on eight timeframes from 1m to W, without marks.
- A TradingView alert with the "Any alert() function call" condition is sent at bar close for all lines on one side of 50, all lines beyond the levels, a perfect order, and golden or death crosses.
- In a strong trend, stochastics stay near 0 or 100 for many bars. Switch on the summary (off by default) to see how many lines are on the same side of 50, for example "4 of 8 above 50".