1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
Source Code
The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.
Overview
Volume tiers compare the bar against lookbacks of 1000, 2000, 3000 and 4000 bars, and displacement compares the candle range to a standard deviation multiple with a fair value gap check. Version 2 adds a run condition and the first-bar filter, on by default. This build is made for tick charts and draws markers on the price chart.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
★ FIRST BAR MASTER — VP + alert fire IFF the marked candle is the session FIRST bar
bool
true
firstBarOnly
Range Type
string
Open to Close
d_type
Std Dev Length
int
100
d_len
Std Dev Multiplier (sigma) — default 9
float
9.0
d_mult
1K lookback (bars)
int
1000
n1K
2K lookback (bars)
int
2000
n2K
3K lookback (bars)
int
3000
n3K
4K lookback (bars)
int
4000
n4K
N in a row (consecutive >= floor candles)
int
4
nRun
Floor tier (bars) — the '500' VP
int
500
nF
RVOL Avg Length
int
30
rv_avgLen
RVOL SMA Length
int
20
rv_smaLen
Show all 40 settings
Setting
Type
Default
Variable
NAGASAKI+DISP Bull
bool
true
en_nagaDispBull
cl_nagaDispBull
color
#00E676
cl_nagaDispBull
4K+DISP Bull
bool
true
en_hv4kDispBull
cl_hv4kDispBull
color
#00BFA5
cl_hv4kDispBull
3K+DISP+RV Bull
bool
true
en_hv3kDispBull
cl_hv3kDispBull
color
#2979FF
cl_hv3kDispBull
2K+DISP+RV Bull
bool
true
en_hv2kDispBull
cl_hv2kDispBull
color
#40C4FF
cl_hv2kDispBull
1K+DISP+RV Bull
bool
true
en_hv1kDispBull
cl_hv1kDispBull
color
#B2FF59
cl_hv1kDispBull
NAGASAKI+DISP Bear
bool
true
en_nagaDispBear
cl_nagaDispBear
color
#FF1744
cl_nagaDispBear
4K+DISP Bear
bool
true
en_hv4kDispBear
cl_hv4kDispBear
color
#FF6D00
cl_hv4kDispBear
3K+DISP+RV Bear
bool
true
en_hv3kDispBear
cl_hv3kDispBear
color
#FF4081
cl_hv3kDispBear
2K+DISP+RV Bear
bool
true
en_hv2kDispBear
cl_hv2kDispBear
color
#F50057
cl_hv2kDispBear
1K+DISP+RV Bear
bool
true
en_hv1kDispBear
cl_hv1kDispBear
color
#FFAB40
cl_hv1kDispBear
NAGASAKI RUN Bull
bool
true
en_nagaRunBull
cl_nagaRunBull
color
#69F0AE
cl_nagaRunBull
4K RUN Bull
bool
true
en_hv4kRunBull
cl_hv4kRunBull
color
#1DE9B6
cl_hv4kRunBull
3K RUN Bull
bool
true
en_hv3kRunBull
cl_hv3kRunBull
color
#448AFF
cl_hv3kRunBull
2K RUN Bull
bool
true
en_hv2kRunBull
cl_hv2kRunBull
color
#80D8FF
cl_hv2kRunBull
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
This indicator calculates and plots a session-based volume profile directly on the price chart. It maps volume distribution across price levels, highlighting key structural reference points including the Point of Control, Value Area High, and Value Area Low. C
The Midnight VWAP indicator calculates and overlays two distinct Volume Weighted Average Price (VWAP) lines on the price chart based on customizable session timeframes. It tracks an overnight or pre-market session alongside regular trading hours, resetting cal
An educational Pine Script v4 indicator demonstrating how to plot volume histograms on the main price chart using unscaled axes. The code includes examples and commented templates for creating vertical line markers at specific dates or time zones, such as mark
This overlay indicator plots option strike walls and an optional session VWAP on the price chart for SPY or ES. It spaces major strikes by the selected instrument, draws a set number of strikes on each side, and marks wall-trap and sweep events after a cooldow
This overlay indicator draws a volume profile for a chosen trading session directly on the price chart. It plots the point of control, value area high and low, an optional value area box, a live zone, and a session box with labels. Users select Tokyo, London,
This overlay indicator marks the current day's low and a suggested entry zone a fraction of daily ATR below that low. It compares daily volume with a volume moving average, plots daily SMA and EMA distance, and draws an optional ATR-width price cloud. Labels c