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
Long and short thresholds set when the reading counts as a bullish or bearish state. Options include a fast Hull line, a band display, candle coloring and line thickness, and a monthly or other period type with its own length. A table and color palettes are included.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Calculation Period
int
65
len
Smooth Length
int
5
smoothlen
Smooth Vwma?
bool
true
smooth
Long threshold
float
0.9
l_threshold
Short threshold
float
0.9
s_threshold
Show fast Hull?
bool
true
showFhull
Visual - Band
bool
true
visualSwitch
Color candles
bool
true
candleCol
Line Thickness
int
1
thicknesSwitch
Custom Color Palette
string
Mystic
ColMode
Use Custom Palette
bool
true
cpyn
Custom Up
color
#00ff00
cp_UpC
Show all 20 settings
Setting
Type
Default
Variable
Custom Down
color
#ff0000
cp_DnC
Period Type
string
Monthly
periodType
Source Type
string
Close
srcType
Length
int
50
Len
Force Table Overlay
bool
false
fo
enable_table
bool
true
enable_table
VWMA Table
string
Middle Right
pos_table
table_size_input
string
Normal
table_size_input
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 Supertrend-based trend-following setup in a separate pane and skips conditions it treats as a sideways market. A volatility range is built from an ATR value, with RMA, SMA, EMA, or WMA smoothing, or from a fixed point distance. Optional
This indicator standardizes price inputs using z-score normalization before calculating a relative strength index (RSI). It generates trade signals when standardized price components cross over or under the standardized RSI feature. Signals can be filtered by
This script calculates Bill Williams' Market Facilitation Index (BW MFI) to evaluate price movement efficiency relative to trading volume. It computes the range between the high and low prices divided by volume for each bar, returning zero when volume is zero.
PPO ATR Bands plots a percentage price oscillator in a separate pane. It compares a Hull average of typical price with a volume-weighted exponential average of Parabolic SAR, then scales three true-range bands around the slow average into matching oscillator l
This indicator combines Chaikin Money Flow (CMF), a SuperTrend baseline, and an Average True Range (ATR) calculation inside a separate sub-pane. It calculates a standard 20-period CMF plotted as a line and colored histogram columns around a zero baseline, trac
The Expectation Maximization Gaussian Mixture Regime indicator clusters market states into two to five components using an online Expectation-Maximization Gaussian Mixture Model. It processes three input features: volatility-normalized momentum, relative volat