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
A row counts as imbalanced when one side exceeds the other by a set multiplier, checked diagonally or across the row depending on the chosen method, and a minimum delta filters small values. It prints the resulting imbalance delta as labels on the price chart, spaced by ATR or fixed ticks, and also shows swing-based delta. It needs footprint data and gives no entries.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Ticks per footprint row
int
1
ticksPerRow
Value Area %
int
70
valueAreaPct
Show labels on last N bars
int
1
barsToShow
Imbalance multiplier
float
1.5
imbalanceFactor
Imbalance Calculation Priority
string
Diagonal Primary
imbMethod
Min absolute imbalance delta to show
float
50
minAbsImbalance
Show zero imbalance delta
bool
false
showZeros
Text size
string
normal
textSizeInput
Buy color
color
color.lime
deltaPosColor
Sell color
color
color.rgb(233, 108, 162)
deltaNegColor
Delta neutral color
color
color.gray
deltaZeroColor
SI~ color
color
color.white
swingInProgressColor
Show all 22 settings
Setting
Type
Default
Variable
Display mode
string
Delta only
displayMode
ATR displacement multiplier
float
1.5
atrMultiplier
Label line gap (ATR fraction)
float
0.20
lineGapFactor
Use ATR for spacing (vs fixed ticks)
bool
true
useATR
Tick spacing (when ATR off)
int
3
offsetTicks
ATR length
int
14
atrLength
Swing length
int
4
swingLen
Show swing delta
bool
true
showSwing
Number of swings to show
int
40
swingsToShow
Swing ATR displacement multiplier
float
0.1
swingAtrMultiplier
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.
Calculates an Elastic Volume Weighted Moving Average (EVWMA), incorporating trading volume to dynamically adjust moving average responsiveness over a specified lookback length. It plots directly on the price chart as a single moving average line. Optional colo
This overlay indicator screens a pasted list of up to forty symbols and draws a table on the price chart. It classifies bullish or bearish setups from the percent change between the current candle and the candle 250 bars back, then shows RSI with a simple movi
This overlay indicator draws a fixed-range volume profile on the price chart, splitting traded activity into up and down volume at each price level. It also plots a sentiment profile, a developing point of control, and value-area high and low around a configur
This indicator overlays historical ARK Invest buy and sell events for META on the price chart. It places green labels below bars for purchases and red labels above bars for sales, with a same-day count of how many selected ARK ETFs traded the stock. The ETF in
This overlay indicator marks call and put setups from EMAs, RSI, MACD, and a SPY volume ratio. A call needs higher highs, RSI above its minimum, rising MACD, above-average proxy volume, and a rising trend EMA; a put reverses those tests. Early markers use an E
Comprehensive Volume Profile is an overlay indicator that calculates and plots volume distribution across specified time ranges such as daily sessions, weekly, monthly, or custom bar lengths. It identifies key structural price levels including the Point of Con