Indicator · Pine Script v5 · On the chart

V12 Swing Sniper Pro

by kevinesk

V12 Swing Sniper Pro is a swing trading indicator for Bursa Malaysia stocks.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code554
Settings40inputs
LicenceNone stated
Last update4 months ago12 Jun 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 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

V12 Swing Sniper Pro layers macro and sector filters atop Minervini-style trend quality gates and RSI checks to validate bullish setups. The script fires buy signals when coiling, pullback proximity, breakout volume, and extension conditions align, while blocking entries in bearish KLCI regimes or weak sectors. It draws pivot highs/lows, ATR-based stops, and target lines directly on the price chart and shows a compact diagnostics table. Core inputs let users pick trade mode, macro gate strength, sector, EMA lengths, ATR settings, risk percentage, and capital size. The tool enforces liquidity floors and Bursa tick-size limits before allowing a buy.

Details

Published by

kevinesk on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Trend, Moving averages, Support & resistance, Breakout

Markets

Stocks, Indices, Oil & commodities

Timeframes

H4 and above

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Trade modestringSwingtradeMode
Macro gate modestringHardmacroMode
Stock sectorstringNone / Othersector
Crude palm oil (FCPO)symbolMYX:FCPO1!symCPO
Brent crudesymbolTVC:UKOILsymOIL
USD/MYRsymbolFX_IDC:USDMYRsymFX
US 10Y yieldsymbolTVC:US10YsymYLD
Semiconductor indexsymbolNASDAQ:SOXsymSOX
AluminiumsymbolCOMEX:ALI1!symALU
Natural gassymbolNYMEX:NG1!symGAS
RS benchmark (KLCI)symbolFTSEMYX:FBMKLCIrsSymbol
Max % below 52-wk highfloat25.0nearHiPct
Show all 40 settings
SettingTypeDefaultVariable
Min % above 52-wk lowfloat30.0aboveLoPct
Fast EMAint9emaFastLen
Pullback EMAint20emaPbLen
ATR lengthint14atrLen
Max extension (ATR above pullback EMA)float4.0maxExtATR
Max % above fast EMAfloat8.0maxPctFast
Pullback proximity band %float3.0proxBandPct
Pullback lookback (bars)int10pbLookback
Coil: ATR5/ATR20 must be belowfloat0.70coilRatio
RSI hard blockfloat80.0rsiHardCap
Pivot lookback (bars)int20pivotLen
Breakout volume multiplefloat1.5volMult
Capital (RM)float30000.0capital
Manual risk per trade % (if auto off)float1.0riskPct
Auto risk % by KLCI regime (2/1.5/1/0.5/0)booltrueautoRisk
Max notional per position %float10.0notionalCapPct
Stop: swing-low lookback (bars)int10stopLook
Stop buffer below ref level %float1.0stopBufPct
Target (gross R multiple)float2.5targetR
Round-trip cost % of notionalfloat0.70costPct
Stop constructionstringEMA20 (Minervini)stopMode
PAM ATR-offset multiplefloat0.7pamMult
Max stop distance % (Minervini cap)float8.0maxStopPct
ATR stop multiple (ATR mode)float1.5atrStopMult
Max ATRs to target (feasibility)float10.0maxAtrTgt
BUY requires feasible targetbooltruerequireFeas
Min avg traded value RM/day (20-bar)float500000.0minValRM
Min stop distance (Bursa ticks)float8.0minTicks
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.

Similar Pine Scripts

5 stars

Calculates short and long Exponential Moving Averages alongside pivot high and low levels to identify breakout signals. The indicator plots a 20 EMA and a 50 EMA on the main price chart. It evaluates trend direction based on EMA crossover alignment, checks for

Indicator v4 Moving averagesTrend
Updated 3 years ago · Apache-2.0 GitHub repository of 20 EMA + 50 EMA + Breakout
3 stars

The Krypton Indicator overlays trend analysis, buy and sell zones, and sentiment tracking directly onto the price chart. It calculates a dual moving average trend filter, renders supply and demand zones, and plots a sentiment line to identify market momentum.

Indicator v5 TrendSupport & resistance Repaints
Updated 5 months ago · None stated GitHub repository of Krypton Indicator

This indicator plots multiple moving averages including SMA10, SMA50, SMA100, SMA200, Ichimoku conversion and lead lines, and 52-week high and low levels on the price chart. It detects breakouts using volume multiplier, optional gaps, and strong candle require

Indicator v6 BreakoutMoving averages Repaints
Updated 10 months ago · MIT GitHub repository of Ede – MA + Breakout Strategie (Dynamic MAs)

Sideway Zones Live

by dearvn
257 stars

Sideway Zones Live is an overlay indicator that estimates inner and outer sideways bands from recent highs and lows with a rational quadratic kernel. It tracks swing pivots over a loopback period and counts bars that remain between the outer high and low. Afte

Indicator v5 TrendSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of Sideway Zones Live

Ichimoku Cloud

by harryguiacorn
219 stars

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

Indicator v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Ichimoku Cloud

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers