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
Net Position can show net longs, shorts, delta, and ratio as candles, a line, or columns, and it can switch to a position RSI view. Users choose Binance, BitMEX, and Kraken perpetual feeds, full-history or visible-range cumulation, and base or quote currency quoting. Optional VWMA or EMA lines can be added to the position series. It does not generate trade entries or exits.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Type
string
Net Positions
dtype
Display as
string
Candles
disp
Cumulation
string
Visible Range
cumu
Quoted in
string
Base Currency
denom
Binance USDT.P
bool
true
binance
Binance USD.P
bool
true
binance2
Binance BUSD.P
bool
true
binance3
BitMEX USD.P
bool
true
bitmex
BitMEX USDT.P
bool
true
bitmex2
Kraken USD.P
bool
true
kraken
NET LONGS ►
bool
true
showL
NET SHORTS ►
bool
false
showS
Show all 40 settings
Setting
Type
Default
Variable
NET DELTA ►
bool
false
showD
NET RATIO ►
bool
false
showR
pcolL
color
#a5d6a7
pcolL
ncolL
color
#f77c80
ncolL
━
color
#a5d6a7
lcolL
pcolS
color
#a5d6a7
pcolS
ncolS
color
#f77c80
ncolS
━
color
#faa1a4
lcolS
pcolD
color
#a5d6a7
pcolD
ncolD
color
#f77c80
ncolD
━
color
#90bff9
lcolD
pcolR
color
#a5d6a7
pcolR
ncolR
color
#f77c80
ncolR
━
color
#f9d690
lcolR
Type
string
VWMA
mat
LONGS
bool
false
emaL
SHORTS
bool
false
emaS
DELTA
bool
false
emaD
RATIO
bool
false
emaR
emaLl
int
100
emaLl
emaSl
int
100
emaSl
emaDl
int
100
emaDl
emaRl
int
100
emaRl
emaLc
color
color.rgb(165, 214, 167, 60)
emaLc
emaSc
color
color.rgb(250, 161, 164, 60)
emaSc
emaDc
color
color.rgb(144, 191, 249, 60)
emaDc
emaRc
color
color.rgb(249, 214, 144, 60)
emaRc
Volume HM
bool
false
volhm
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 the standard Money Flow Index (MFI) oscillator alongside an exponential moving average signal line in a separate pane. The script visually highlights trend conditions through dynamic ribbon filling, optional difference histogram bars, and overbought
This indicator measures directional momentum by evaluating candlestick body proportions and volume over a user-defined lookback window. It computes the ratio of candle body to total range, weights the cumulative value by volume and absolute body size, and dete
This indicator builds an aggregate oscillator in a separate pane. It scales open, high, low, close, and volume into a 0 to 1 range, then averages scaled readings from MACD, a MACD histogram, RSI, stochastic, CCI, momentum, OBV, a directional index, volume-weig
This indicator calculates the Bill Williams Market Facilitation Index as the high-low range divided by volume, or zero when volume is zero. It compares the index and volume with the previous bar and assigns one of four zones: green for both rising, fade for bo
PPO ATR Bands plots a percentage price oscillator in a separate pane. It compares a Hull average of typical price with a volume-weighted exponential average of Parabolic SAR, then scales three true-range bands around the slow average into matching oscillator l
Calculates the Chaikin Oscillator by taking the difference between a fast exponential moving average and a slow exponential moving average of the Accumulation/Distribution line. It plots the resulting line in a separate pane alongside a dashed zero reference l