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
The profile section calculates price distribution across configurable range modes, plotting the Point of Control (POC), Value Area High (VAH), and Value Area Low (VAL) levels. The MACD calculation engine generates crossover markers and highlighted momentum zones using customizable moving average types. Traders can adjust profile row density, lower timeframe resolution limits, and display settings directly on the main price chart.
Volume Profile and Market Profile TPO histogram
Point of Control and Value Area High and Low lines
MACD oscillator overlay with customizable signal crosses
Flexible profile range modes including Visible, Anchored, and All Range
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Mode
string
VOLUME_PROFILE
MODE
Range Mode
string
VISIBLE_RANGE
RANGE_MODE
Anchor Time
time
timestamp('2023-01-01T12:00:00')
ANCHORED_TIME
Number of Rows
int
300
NUM_ROWS
Max Lower Timeframe Bars
int
5000
MAX_LTF_BARS
Use Second-Based Timeframes
bool
false
USE_SECOND_BASED_TIMEFRAMES
Horizontal Offset
int
20
HORIZONTAL_OFFSET
Max Width
int
80
MAX_WIDTH
Height % per Row
int
40
HEIGHT_PERCENTAGE_PER_ROW
Show Volume Delta
bool
false
SHOW_DELTA
Default
color
#5d606b77
COLOR
Buy Volume
color
#00bcd480
BUY_COLOR
Show all 40 settings
Setting
Type
Default
Variable
Sell Volume
color
#e91e6380
SELL_COLOR
POC (Point of Control)
color
color.yellow
POC_COLOR
VAH (Value Area High)
color
color.blue
VAH_COLOR
VAL (Value Area Low)
color
color.blue
VAL_COLOR
Value Area Percent
int
70
VALUE_AREA_PERCENT
Display VAH/VAL
bool
true
DISPLAY_VA
Display POC
bool
true
DISPLAY_POC
Extend Key Price Lines to the Left
bool
true
EXTEND_LEFT
MACD Calculation Method
string
MACD-SOURCE
macdType
Fast Length
int
12
fast_length
Slow Length
int
26
slow_length
Source
source
close
source
Signal Smoothing
int
9
signal_length
Oscillator MA Type
string
EMA
sma_source
Signal Line MA Type
string
EMA
sma_signal
Display MACD/Signal Corsses
bool
false
macdSigCross
Highlight MACD/Signal Area
bool
true
highlight
Overlay Indicator Display Length
int
200
lookbackLength
Placement
string
Bottom
oscPlacement
Hight
int
10
Hight
Vertical Indicator Position
int
4
verticalAdj
ATR Length
int
10
sslength
Factor Range
int
1
minMult
maxMult
int
5
maxMult
Step
float
.5
step
Performance Memory
float
10
perfAlpha
From Cluster
string
Best
fromCluster
Maximum Iteration Steps
int
1000
maxIter
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 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
This reference script provides practical Pine Script v6 code examples for creating custom indicators. It includes a smoothed Relative Strength Index oscillator plotted with overbought and oversold background zones, a multi-timeframe moving average overlay with
This indicator calculates pivot high and pivot low points on the price chart based on configurable left and right bar counts. Confirmed pivot highs and lows are plotted with negative bar offsets directly on the price chart using line and cross styles. Addition
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
LiqSpikeBounceLong Feb2026 is an indicator designed to identify long bounce entries following high-volume liquidation cascades in bearish market contexts. It checks if price is below an exponential moving average, then detects large single-bar drops exceeding
This indicator plots two Hull moving averages on the price chart, one of the selected price and one of close, and optionally smooths both with a Kahlman filter. It fills the space between them and marks buy and sell labels when they cross, provided scaled volu