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
Sniper Algo integrates Ichimoku Kinko Hyo components, automated support and resistance zones, dual exponential moving averages, and optional buy and sell signals. Users can switch between Scalping and Swing presets, toggle individual modules such as reversal zones or smoothed Heikin Ashi, and customize calculation periods and signal sensitivity. The tool serves as an analytical visual aid and does not place automated orders.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Strategy
string
Scalping
strategy
Show
bool
true
ikhShowed
Tenkan-Sen Length
int
9
tenkanLen
Kijun-Sen Length
int
26
kijunLen
Senkou-Span B Length
int
52
senkouSpanBLen
Chikou-Span Displacement
int
26
chikouSpanDisplacement
Kumo Cloud Displacement
int
26
kumoCloudDisplacement
Show
bool
true
srShowed
Period
int
284
srPrd
Support Color
color
color.new(AQUA_COLOR, 80)
srSupportColor
Resistance Color
color
color.new(LIGHT_GRAY_COLOR, 80)
srResistanceColor
Strength
int
2
srStrength
Show all 36 settings
Setting
Type
Default
Variable
Zone Width In %
float
1.5
srZoneWidthPerc
Value Color
color
color.new(WHITE_COLOR, 20)
srValColor
Show
bool
false
buySellSignalsShowed
Sensitivity
float
2.5
sensitivity
Show
bool
false
trShowed
Show
bool
false
revZonesShowed
Period
int
30
revZonesPrd
Show
bool
true
emasShowed
Leading EMA
int
100
leadingEmaPrd
Lagging EMA
int
200
laggingEmaPrd
Show
bool
false
shaShowed
Period
int
10
shaPrd
Smoothed Length
int
10
shaSmoothedLen
Show
bool
false
gpShowed
Depth
int
20
gpDepth
Deviation
float
3
gpThresholdMult
Color
color
YELLOW_COLOR
gpColor
Show
bool
false
vcsShowed
Large Volume Up Candle Color
color
GREEN_COLOR
lgVolUpCandleColor
Medium Volume Up Candle Color
color
YELLOW_COLOR
mdVolUpCandleColor
Large Volume Down Candle Color
color
RED_COLOR
lgVolDnCandleColor
Medium Volume Down Candle Color
color
PURPLE_COLOR
mdVolDnCandleColor
Normal Up Candle Color
color
AQUA_COLOR
norUpCandleColor
Normal Down Candle Color
color
WHITE_COLOR
norDnCandleColor
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 Price Action Channel (PAC) based on high, low, and close moving averages alongside fast, medium, and slow trend EMAs directly on the price chart. It detects regular and Bill Williams fractals to track market structure and identifies pull
This indicator analyzes short-term price action on index futures and options charts by applying Rational Quadratic kernel smoothing to detect sideways consolidation ranges and potential breakouts. It processes pivot highs and lows over customizable loopback pe
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
This indicator overlays trend-following Supertrend bands on the price chart using Average True Range calculations. It plots trailing stop lines, highlights active trend directions, and prints buy or sell shape labels when price closes across band thresholds. I
This indicator plots two Hull moving averages on the price chart, one of the selected price and one of close, and optionally smooths both with a Kahlman filter. It fills the space between them and marks buy and sell labels when they cross, provided scaled volu
The MA Envelope indicator calculates upper and lower channel bands shifted by a user-defined percentage around a baseline moving average. It supports Simple Moving Average, Exponential Moving Average, and Weighted Moving Average calculation types. The script p