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
Adaptive Market Profile calculates linear regression channels either automatically or using a fixed bar period, with support for logarithmic scaling. The script divides the channel into sections and calculates activity based on volume or price touches to highlight the most active trading levels. Users can adjust channel periods, standard deviation multipliers, profile fill counts, and display styles. Because calculations rely on the latest bar to project historical regressions, profile levels dynamically adjust as new bars develop.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Automatic detection of optimal trend channel period
bool
true
useAdaptive
Manual channel period (bars)
int
200
pI
Deviation Multiplier
float
2.0
devMultiplier
Enable if chart is in logarithmic scale
bool
true
uL
Channel Lines
color
color.new(color.gray, 0)
regColor
regLineStyle
string
Solid
regLineStyle
regLineWidth
int
1
regLineWidth
Channel Fill
color
color.new(#909497, 95)
fillColor
Show Mid Line
bool
false
showRegLine
showMostActiveLines
bool
true
showMostActiveLines
Show Most Active Lines
int
2
numActivityLines
Show Profile
bool
true
showProfile
Show all 24 settings
Setting
Type
Default
Variable
Show Labels
bool
false
showLabels
Calculation method
string
Volume
activityMethod
Number of Profile Sections
int
23
nFills
Low Activity
color
color.new(#00BBFF, 95)
loActColor
High Activity
color
color.new(#00BBFF, 25)
hiActColor
regLineColor
color
color.new(color.gray, 0)
regLineColor
regLineStyleOpt
string
Dashed
regLineStyleOpt
regLineWidthOpt
int
1
regLineWidthOpt
useCustomColor
bool
true
useCustomColor
Custom Active Line Color
color
color.new(#00BBFF, 50)
customColor
actLineStyle
string
Solid
actLineStyle
actLineWidth
int
1
actLineWidth
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 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
Copilot is an order flow range-reversal indicator designed to overlay trading setups directly on the price chart. It evaluates four criteria: market context (sideways vs trending regime based on ATR height), structure (double top or double bottom retests), abs
This overlay indicator marks volume-driven buying and selling pressure on the price chart. It compares volume with a simple moving average scaled by a volatility-based multiplier, and it uses a trend simple moving average plus RSI thresholds to color bars. Swi
This overlay indicator marks Wyckoff-style buying and selling climaxes on the price chart. It filters trend with an exponential moving average and a higher-timeframe EMA, then flags accumulation or distribution when price and ATR sit relative to their swing av
This indicator plots a fixed lookback Volume Profile alongside 20, 50, and 200 Simple Moving Averages directly on the price chart. It highlights trend changes via moving average crosses and marks Point of Control reactions, High Volume Nodes, and Value Area bo