Pine Script v5 · Indicator
Every plot style
A Pine Script v5 indicator built on RSI (close, 14). It draws 5 lines and 1 level line in its own pane. It has no settings.
Generated from the script's code by a template: every clause is a fact read from the source. Not written by a person or a model, and not taken from the author's description.
- Does Every plot style repaint?
- No
- No repainting patterns were found in the source, and a live tick-by-tick replay matched history on 300 of 300 bars.
- How many settings does Every plot style have?
- 0
- Does Every plot style run in Pine Script v6?
- Yes
- Every plotted value identical on BTCUSDT 1D, 1,000 bars, in Zeal Terminal's engine. Both versions were run on Zeal Terminal's engine, and the results are identical. The v6 script can be downloaded below.
- Does Every plot style draw on the price chart?
- No
- It draws in its own pane below the price.
- Does Every plot style run in Zeal Terminal?
- Yes
- It compiles in 13 ms and runs 1,000 bars in 16 ms, in the browser.
BTCUSDT · 1D · default settings
- Columns
- Area
- Stepline
- Circles
- Cross
- Zero
- Columns
- 8.7811
- on the last bar
- Area
- 0.9500
- on the last bar
- Stepline
- 3.8123
- on the last bar
- Circles
- 8.6608
- on the last bar
- Cross
- 1.7377
- on the last bar
- Zero
- 0.0000
- on the last bar
The value of each line the script plots, on the last of 1,000 bars, with the default settings.
Review
What a careful reader of this script would point out, found by checking the source and the backtest.
-
Note
No alerts
The script declares no alertcondition, so you can't be notified when its state changes.
Settings
Every input the script declares, with its default and what it feeds. Bounds are the ones the script enforces.
The script declares no settings.
What it calculates
- RSIclose, 14
osc · line 6
Signal flow
How price data and settings reach what is drawn. Each box is a name in the script, or several computed the same way; each arrow is a value one of them reads. Hover a box for its members.
What it draws
| Output | Call | Value | By default | Line |
|---|---|---|---|---|
| Columns | plot | osc | Shown | 8 |
| Area | plot | ta.sma(osc, 5) | Shown | 9 |
| Stepline | plot | ta.sma(osc, 20) | Shown | 10 |
| Circles | plot | ta.sma(osc, 50) | Shown | 11 |
| Cross | plot | ta.ema(osc, 9) | Shown | 12 |
| hline | hline | 0 | Shown | 13 |
Does it repaint?
No
No repainting patterns in the source, and the live replay matched history.
- ClearHigher-timeframe dataThe script requests no other symbol or timeframe.
- ClearFuture-bar referencesNo negative history offsets such as close[-1].
- ClearIntrabar recalculationNo varip or realtime-only state. Values move while a bar forms and settle when it closes, as every indicator's do.
The checks read the source; the replay runs it. Together they catch the common causes, not every possible one.
Other markets
The same script with default settings on 8 Binance markets, each the most recent 1,000 bars.
| Market | Columns | Area | Stepline | Circles | Cross |
|---|---|---|---|---|---|
| BTCUSDT 1D | 8.7811 | 0.9500 | 3.8123 | 8.6608 | 1.7377 |
| BTCUSDT 4h | 18.93 | 15.53 | 5.0184 | -1.0098 | 12.23 |
| ETHUSDT 1D | -2.3369 | -9.2422 | -4.3625 | 5.7698 | -7.9474 |
| ETHUSDT 4h | 9.8811 | 10.49 | 1.2105 | -4.0208 | 7.5308 |
| SOLUSDT 1D | -3.0020 | -8.2489 | -2.1838 | 6.3931 | -6.9911 |
| SOLUSDT 4h | 8.8173 | 9.9199 | 2.7389 | -3.9834 | 7.6562 |
| BNBUSDT 1D | 2.4954 | -4.6283 | -0.9467 | 7.2769 | -3.6214 |
| BNBUSDT 4h | 18.85 | 17.93 | 7.0173 | -3.0076 | 14.68 |
Each line's value on the last bar.
Similar scripts
Indicators and strategies built from the same calculations.
| Script | Shares | Type |
|---|---|---|
| RSI by Zeal Terminal | rsi | v5 indicator |
| Triple RSI strategy by Trade_by_DB | rsi | v5 strategy |
| Hobbiecode - RSI + Close previous day by hobbiecode | rsi | v5 strategy |
| dirt cheap yet elegant RSI Strategy by SparkyFlary | rsi | v4 strategy |
| RSI Classic Strategy (by Coinrule) by Coinrule | rsi | v4 strategy |
Upgrade and export
Written in Pine Script v5. The clean-v5 step types the settings and moves when = into if blocks, which v6 requires; it is run before and after like any upgrade.
- No v6-only features. v6 is not needed to run this script.
Clean v5
VerifiedNothing to change.
Does it run in Pine Script v6?
Yes
Every plotted value identical on BTCUSDT 1D, 1,000 bars, in Zeal Terminal's engine. Both versions were run on Zeal Terminal's engine, and the results are identical. It differs from the v5 version by 1 edit.
⋯// © Zeal Terminal-//@version=5+//@version=6indicator("Every plot style", overlay = false, precision = 2)⋯Where it runs
| Engine | Compiles | Runs | Matches TradingView |
|---|---|---|---|
| Zeal Terminal · OpenPineScript v2 | Yes 13 ms | Yes 1,000 bars in 16 ms | Not measured |
| PineTS | Not tested | Not tested | Not measured |
“Matches TradingView” needs this script's own output exported from TradingView and compared bar by bar, which has not been done for this script. The engine is built on OpenPineScript, whose conformance results are in its conformance report.
Source
Written by Zeal Terminal and published under the Mozilla Public License 2.0.
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/// © Zeal Terminal//@version=5indicator("Every plot style", overlay = false, precision = 2) osc = ta.rsi(close, 14) - 50 plot(osc, "Columns", style = plot.style_columns, color = osc >= 0 ? color.teal : color.red)plot(ta.sma(osc, 5), "Area", style = plot.style_area, color = color.blue, linewidth = 2)plot(ta.sma(osc, 20), "Stepline", style = plot.style_stepline, color = color.orange, linewidth = 2)plot(ta.sma(osc, 50), "Circles", style = plot.style_circles, color = color.purple, linewidth = 3)plot(ta.ema(osc, 9), "Cross", style = plot.style_cross, color = color.yellow, linewidth = 2)hline(0, "Zero", color = color.new(color.gray, 40))