Indicator · Pine Script v6 · On the chart

Dual Log Regression Channels [BigBeluga]

by rod773· code credited to BigBeluga

The indicator plots two log regression channels on the price chart: a long-term macro channel with lookback of 300 bars and a short-term channel with lookback of 50 bars.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code300
Settings36inputs
LicenceNone stated
Last update4 months ago27 Jun 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

Each channel draws upper and lower bands using standard deviation width, a middle line, background fill, and optional volume statistics. The macro channel additionally shows a volume profile with adjustable bins and maximum width, plus a POC line in red and future extension up to 50 bars. The short-term channel offers similar customization but with tighter lookback and width. All elements are drawn directly on the price chart.

Details

Published by

rod773 on GitHub

Code credit

BigBeluga, as written in the script's header

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Volatility & bands, Support & resistance, Volume

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
Show Macro Channelbooltruemacro_show_channel
Macro Lookback Periodint300macro_length
Macro Channel Width (StDev)float2.0macro_width
Macro Outer Lines Widthint2macro_line_w
Show Macro Mid Linebooltruemacro_mid_disp
Macro Upper Linecolor#311b92macro_col_up
Macro Mid Linecolorcolor.bluemacro_col_mid
Macro Lower Linecolor#311b92macro_col_low
Macro Background Fillcolorcolor.new(color.blue, 95)macro_col_fill
Show Macro Volume Statsbooltruemacro_show_stats
Extend Macro Channelbooltruemacro_extend
Macro Extension Barsint50macro_ext_bars
Show all 36 settings
SettingTypeDefaultVariable
Show Macro Volume Profilebooltruemacro_show_vp
Macro Profile Bins (Rows)int50macro_bins
Macro Max Profile Width (Bars)int25macro_max_w
Macro Profile Colorcolorcolor.new(color.blue, 50)macro_vp_color
Show Macro POC Linebooltruemacro_show_poc
Macro POC Colorcolorcolor.redmacro_poc_color
Show Short Channelbooltrueshort_show_channel
Short Term Lookback Periodint50short_length
Short Term Channel Width (StDev)float1.5short_width
Short Term Outer Lines Widthint1short_line_w
Show Short Term Mid Linebooltrueshort_mid_disp
Short Term Upper Linecolor#e65100short_col_up
Short Term Mid Linecolorcolor.orangeshort_col_mid
Short Term Lower Linecolor#e65100short_col_low
Short Term Background Fillcolorcolor.new(color.orange, 95)short_col_fill
Show Short Term Volume Statsbooltrueshort_show_stats
Extend Short Term Channelbooltrueshort_extend
Short Term Extension Barsint20short_ext_bars
Show Short Volume Profilebooltrueshort_show_vp
Short Profile Bins (Rows)int50short_bins
Short Max Profile Width (Bars)int15short_max_w
Short Profile Colorcolorcolor.new(color.orange, 50)short_vp_color
Show Short POC Linebooltrueshort_show_poc
Short POC Colorcolorcolor.redshort_poc_color
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

Snag - VWAP

by dearvn
257 stars

This indicator plots a custom Anchored Volume-Weighted Average Price (VWAP) directly on the price chart along with optional standard deviation bands. Users can anchor the VWAP to standard time periods like sessions, weeks, or months, or to corporate events suc

Indicator v5 Moving averagesVolatility & bands Repaints
Updated 6 weeks ago · None stated GitHub repository of Snag - VWAP

VWAP - Basic

by TradersPost
218 stars

VWAP - Basic plots an anchored Volume Weighted Average Price directly on the main price chart alongside two standard deviation bands. It calculates typical price weighted by volume, resetting the cumulative calculations at user-selected session, weekly, or mon

Indicator v6 VolumeSupport & resistance
Updated 3 months ago · None stated GitHub repository of VWAP - Basic

D/W/M VWAPs

by cryptorife
75 stars

This indicator plots daily, weekly, and monthly volume-weighted average prices on the price chart, using a selectable source that defaults to hlc3. For each enabled period it also draws two standard-deviation bands around the VWAP, with multipliers defaulting

Indicator v4 VolumeVolatility & bands
Updated 3 years ago · GPL-3.0 GitHub repository of D/W/M VWAPs

LoD Intraday Entry

by ChartsLector
41 stars

This overlay indicator marks the current day's low and a suggested entry zone a fraction of daily ATR below that low. It compares daily volume with a volume moving average, plots daily SMA and EMA distance, and draws an optional ATR-width price cloud. Labels c

Indicator v6 Support & resistanceVolatility & bands
Updated 2 days ago · None stated GitHub repository of LoD Intraday Entry
11 stars

This indicator identifies and visualizes key support and resistance zones directly on the price chart using historical 1-hour bar evidence. It calculates zone strength by weighting price rejections, support-resistance flips, relative volume spikes, price gaps,

Indicator v6 Support & resistanceVolatility & bands
Updated 7 weeks ago · MIT GitHub repository of 1-Hour Key Level Heatmap

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)

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