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
My Cipher v2 calculates a WaveTrend-style stochastic from Heikin Ashi prices, a volume-based money flow histogram, smoothed RSI, MACD-style lengths, and a Z-VWAP. Crosses mark WaveTrend turns; colored dots mark buy, sell, and gold conditions built from RSI, stochastic, and WaveTrend levels; squares mark regular and hidden divergences. Inputs change channel lengths, smoothing, component weights, overbought and oversold levels, and which markers are shown. It does not place trades.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
STOCH Channel Length
int
5
n1
STOCH Average Length
int
3
n2
STOCH Smoothing
int
3
stochSmooting
MFI Oversold level
int
-8
mfiOsLevel
MFI Period
int
50
mfiLength
MFI Smoothing
int
9
mfiSmooth
RSI Period
int
14
rsiPeriod
MACD Fast MA Length
int
12
fastLength
MACD Slow MA Length
int
25
slowLength
MACD Signal Length
int
9
signalLength
Z-VWAP Length
int
20
lengthz
Stdev Length
int
25
lengthStdev
Show all 40 settings
Setting
Type
Default
Variable
MACZ constant A
float
1.0
A
MACZ constant B
float
1.0
B
SM 2 Weight
float
0.6
sm2w
MFI Weight
float
0.15
mfiw
RSI Weight
float
0.35
rsiw
Show WaveTrend
bool
true
wtShow
Show Buy dots
bool
true
wtBuyShow
Show Gold dots
bool
true
wtGoldShow
Show Sell dots
bool
true
wtSellShow
Show Div. dots
bool
true
wtDivShow
Show Fast WT
bool
true
vwapShow
WT Channel Length
int
9
wtChannelLen
WT Average Length
int
12
wtAverageLen
WT MA Source
source
hlc3
wtMASource
WT MA Length
int
3
wtMALen
WT Overbought Level 1
int
53
obLevel
WT Overbought Level 2
int
60
obLevel2
WT Overbought Level 3
int
100
obLevel3
WT Oversold Level 1
int
-53
osLevel
WT Oversold Level 2
int
-60
osLevel2
WT Oversold Level 3
int
-75
osLevel3
Show WT Regular Divergences
bool
true
wtShowDiv
Show WT Hidden Divergences
bool
false
wtShowHiddenDiv
Not apply OB/OS Limits on Hidden Divergences
bool
true
showHiddenDiv_nl
WT Bearish Divergence min
int
45
wtDivOBLevel
WT Bullish Divergence min
int
-65
wtDivOSLevel
Show 2nd WT Regular Divergences
bool
true
wtDivOBLevel_addshow
WT 2nd Bearish Divergence
int
15
wtDivOBLevel_add
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.
Oscillator Suite plots a normalised price oscillator in a separate pane and overlays a signal line that can use SMA, EMA, WMA, HMA, RMA, VWMA, T3, ZEMA, KAMA, or GKEMA. It marks bullish and bearish divergences, a smoothed money-flow series, confluence areas an
This indicator plots the Money Flow Index in a separate pane and marks regular and hidden bullish and bearish divergences between price pivots and the oscillator. It builds the index from positive and negative money flow, then finds pivot highs and lows using
This indicator plots a smoothed Z-score of cumulative volume delta in a separate pane, showing whether buying or selling pressure is dominant and when the reading enters extreme zones. It marks spot accumulation, climax or exhaustion, and pivot-based price-vol
This indicator plots a heuristic volume-balance oscillator in a separate pane. It estimates signed volume from the close location inside each bar, multiplies that by volume, and sums the proxy over a rolling window. The sum is scaled between minus one and plus
This indicator is an oscillator suite inspired by Market Cipher B and VuManChu Cipher B that plots in a separate pane. It combines a WaveTrend oscillator, a Money Flow Index (MFI) area, and an RSI indicator with automatic divergence detection. Visual signals h
QPulse is a multi-factor indicator that draws in a separate pane to evaluate market momentum, volume flow, and volatility dynamics. It calculates volume delta, a cumulative delta proxy, advanced adaptive ATR, and a hybrid volume-weighted RSI with overbought an