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.
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
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.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Show Macro Channel
bool
true
macro_show_channel
Macro Lookback Period
int
300
macro_length
Macro Channel Width (StDev)
float
2.0
macro_width
Macro Outer Lines Width
int
2
macro_line_w
Show Macro Mid Line
bool
true
macro_mid_disp
Macro Upper Line
color
#311b92
macro_col_up
Macro Mid Line
color
color.blue
macro_col_mid
Macro Lower Line
color
#311b92
macro_col_low
Macro Background Fill
color
color.new(color.blue, 95)
macro_col_fill
Show Macro Volume Stats
bool
true
macro_show_stats
Extend Macro Channel
bool
true
macro_extend
Macro Extension Bars
int
50
macro_ext_bars
Show all 36 settings
Setting
Type
Default
Variable
Show Macro Volume Profile
bool
true
macro_show_vp
Macro Profile Bins (Rows)
int
50
macro_bins
Macro Max Profile Width (Bars)
int
25
macro_max_w
Macro Profile Color
color
color.new(color.blue, 50)
macro_vp_color
Show Macro POC Line
bool
true
macro_show_poc
Macro POC Color
color
color.red
macro_poc_color
Show Short Channel
bool
true
short_show_channel
Short Term Lookback Period
int
50
short_length
Short Term Channel Width (StDev)
float
1.5
short_width
Short Term Outer Lines Width
int
1
short_line_w
Show Short Term Mid Line
bool
true
short_mid_disp
Short Term Upper Line
color
#e65100
short_col_up
Short Term Mid Line
color
color.orange
short_col_mid
Short Term Lower Line
color
#e65100
short_col_low
Short Term Background Fill
color
color.new(color.orange, 95)
short_col_fill
Show Short Term Volume Stats
bool
true
short_show_stats
Extend Short Term Channel
bool
true
short_extend
Short Term Extension Bars
int
20
short_ext_bars
Show Short Volume Profile
bool
true
short_show_vp
Short Profile Bins (Rows)
int
50
short_bins
Short Max Profile Width (Bars)
int
15
short_max_w
Short Profile Color
color
color.new(color.orange, 50)
short_vp_color
Show Short POC Line
bool
true
short_show_poc
Short POC Color
color
color.red
short_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.
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
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
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
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
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,
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