Indicator · Pine Script v6 · On the chart

Adaptive Market Profile

by regalouisei

This indicator plots an adaptive trend channel and market profile directly on the price chart.

View on GitHub

GitHub stars2on the repository
Pine versionv6current
Lines of code462
Settings24inputs
LicenceNone stated
Last update8 months ago25 Feb 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 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.

Details

Published by

regalouisei on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Trend, Volume, Support & resistance

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Automatic detection of optimal trend channel periodbooltrueuseAdaptive
Manual channel period (bars)int200pI
Deviation Multiplierfloat2.0devMultiplier
Enable if chart is in logarithmic scalebooltrueuL
Channel Linescolorcolor.new(color.gray, 0)regColor
regLineStylestringSolidregLineStyle
regLineWidthint1regLineWidth
Channel Fillcolorcolor.new(#909497, 95)fillColor
Show Mid LineboolfalseshowRegLine
showMostActiveLinesbooltrueshowMostActiveLines
Show Most Active Linesint2numActivityLines
Show ProfilebooltrueshowProfile
Show all 24 settings
SettingTypeDefaultVariable
Show LabelsboolfalseshowLabels
Calculation methodstringVolumeactivityMethod
Number of Profile Sectionsint23nFills
Low Activitycolorcolor.new(#00BBFF, 95)loActColor
High Activitycolorcolor.new(#00BBFF, 25)hiActColor
regLineColorcolorcolor.new(color.gray, 0)regLineColor
regLineStyleOptstringDashedregLineStyleOpt
regLineWidthOptint1regLineWidthOpt
useCustomColorbooltrueuseCustomColor
Custom Active Line Colorcolorcolor.new(#00BBFF, 50)customColor
actLineStylestringSolidactLineStyle
actLineWidthint1actLineWidth
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.

Similar Pine Scripts

Copilot

by milocaetano
48 stars

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

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated yesterday · MIT GitHub repository of Copilot
11 stars

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

Indicator v6 VolumeSupport & resistance
Updated 2 months ago · Apache-2.0 GitHub repository of Institutional Insight Indicator

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

Indicator v6 TrendVolatility & bands
Updated 1 year ago · MIT GitHub repository of Ultimate Wyckoff Indicator V3 (Refined)

IFA-VP Context

by eddiebelaval
7 stars

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

Indicator v6 VolumeSupport & resistance
Updated 3 months ago · None stated GitHub repository of IFA-VP Context

This indicator overlays multiple technical analysis tools onto the main price chart to establish multi-filter trend confluence. It calculates dual anchored VWAPs, dual Supertrend indicators, moving averages, Kijun-sen Donchian midlines, and weekly pivot points

Indicator v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of Ichimoku Cloud with Donchian Channels

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers