1Copy the scriptPress Copy script above, or the copy button on the code below.
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
112 lines of Pine Script v6 from strategies/strategies3/On Balance Volume.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
Traders can toggle and configure three distinct EMAs with default lengths of 21, 55, and 144. The indicator provides extensive visual settings, allowing customization of EMA colors, candle body fills, and border outlines for volume-based candlestick rendering.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
EMA 1
bool
true
obvEma1Showed
obvEma1Len
int
21
obvEma1Len
obvEma1Color
color
AQUA_COLOR
obvEma1Color
EMA 2
bool
true
obvEma2Showed
obvEma2Len
int
55
obvEma2Len
obvEma2Color
color
PURPLE_COLOR
obvEma2Color
EMA 3
bool
true
obvEma3Showed
obvEma3Len
int
144
obvEma3Len
obvEma3Color
color
PINK_COLOR
obvEma3Color
Body
color
TRANSPARENT_COLOR
obvBodyUpColor
obvBodyDnColor
color
TRANSPARENT_COLOR
obvBodyDnColor
Border
color
WHITE_COLOR
obvBorderUpColor
Show all 13 settings
Setting
Type
Default
Variable
obvBorderDnColor
color
BLUE_COLOR
obvBorderDnColor
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.
Aggregate Signal (v.2) is an oscillator indicator that combines multiple technical factors into a single composite score. It scales OHLCV data using minimax normalization and evaluates indicators such as MACD, RSI, Stochastic, CCI, Momentum, On-Balance Volume,
This indicator plots a volume-weighted MACD in a separate pane. It subtracts a slow volume-weighted moving average of close from a faster one, then smooths that line with an exponential moving average to form the signal. A column histogram shows the gap betwee
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
This indicator calculates the Relative Strength Index using a volume-weighted moving average of the closing price as its source. It plots the resulting oscillator in a separate pane alongside configurable overbought and oversold threshold lines. The plot line
This indicator tracks and visualizes cryptocurrency net positioning across multiple derivative exchanges, including Binance, BitMEX, and Kraken. It calculates aggregated net longs, net shorts, net delta, and ratio metrics, or an optional Position RSI, renderin
This indicator plots the standard On Balance Volume (OBV) in a separate pane by accumulating volume based on the direction of price changes. It includes an optional smoothing line that can apply a Simple, Exponential, Smoothed, Weighted, or Volume-Weighted Mov