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
SamK Indicator plots selectable moving averages on all timeframes, optional daily moving averages pulled from the daily series, 50, 100 and 200 SMAs, and pivots. Further switches add average daily range, a failed-breakout marker called Oops, a QQQ-based line and a weekly RSI marker on the daily chart. Many options only appear on daily or weekly charts, and the colors and MA types can be changed.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Show Chillax
bool
false
showChillax
Only 20ema
bool
false
only20ema
Exclude Daily Intraday
bool
true
excludeDailyIntraday
Show BB SP
bool
false
showBB_SP
Show ADR
bool
true
showADR
Screenshot
bool
false
screenshot
Dark Pivots?
bool
true
p_color_input
Show MAs All TF
bool
true
showMAs
Show Daily MAs
bool
false
showDMAs
Show 50sma
bool
false
Show 50sma
Show 100sma
bool
false
Show 100sma
Show 200sma
bool
false
Show 200sma
Show all 40 settings
Setting
Type
Default
Variable
Show Oops
bool
true
showOops
Show Oops Fail
bool
false
showOopsFail
Show QQQ20
bool
false
showQQQ20
Show W RSI
bool
false
showRSI
MA Day №1
bool
true
show_ma1_day
ma1_day_type
string
EMA
ma1_day_type
ma1_day_length
int
10
ma1_day_length
ma1_day_color
color
color.fuchsia
ma1_day_color
MA Day №2
bool
true
show_ma2_day
ma2_day_type
string
EMA
ma2_day_type
ma2_day_length
int
20
ma2_day_length
ma2_day_color
color
color.yellow
ma2_day_color
MA №1
bool
true
show_ma1
ma1_type
string
EMA
ma1_type
ma1_source
source
close
ma1_source
ma1_length
int
10
ma1_length
ma1_color
color
color.fuchsia
ma1_color
MA №2
bool
true
show_ma2
ma2_type
string
EMA
ma2_type
ma2_source
source
close
ma2_source
ma2_length
int
20
ma2_length
ma2_color
color
color.yellow
ma2_color
RSI threshold
int
65
rsi_input
First MA length
int
10
ma1cl
Second MA length
int
20
ma2cl
number of bars to determine uptrend
int
5
trendlen
Show Pivots -
bool
true
showPivots
# of days
int
100
look_back
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.
Moving Average Channel plots separate simple moving averages for upper and lower bands on the price chart. It fills the space between bands with semi-transparent color and colors bars green above the upper band, red below the lower band, or gray in between. Us
This indicator calculates pivot high and pivot low points on the price chart based on configurable left and right bar counts. Confirmed pivot highs and lows are plotted with negative bar offsets directly on the price chart using line and cross styles. Addition
This overlay indicator marks call and put setups from EMAs, RSI, MACD, and a SPY volume ratio. A call needs higher highs, RSI above its minimum, rising MACD, above-average proxy volume, and a rising trend EMA; a put reverses those tests. Early markers use an E
This indicator displays moving average deduction reference points directly on the price chart. It plots dynamic labels on historical bars corresponding to short, medium, and long lookback periods, defaulted to 20, 60, and 120 bars. Each text label displays the
This indicator plots Ichimoku Cloud elements on the price chart, including Tenkan-sen, Kijun-sen, Senkou Span A and B lines with optional Chikou Span. It signals trend changes via Tenkan-sen and Kijun-sen crosses and places arrows at Kijun-sen direction shifts
The Midnight VWAP indicator calculates and overlays two distinct Volume Weighted Average Price (VWAP) lines on the price chart based on customizable session timeframes. It tracks an overnight or pre-market session alongside regular trading hours, resetting cal