Indicator · Pine Script v5 · On the chart

V10 Swing Sniper (KLSE)

by kevinesk

V10 Swing Sniper (KLSE) is a daily chart overlay indicator designed for swing trading Bursa Malaysia equities based on Mark Minervini's Stage 2 and Volatility Contraction Pattern (VCP) principles.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code437
Settings37inputs
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

V10 Swing Sniper (KLSE) calculates exponential moving averages, relative strength against the FTSEMYX:FBMKLCI benchmark, 52-week highs and lows, volume dry-up metrics, and ATR contraction ratios. The indicator identifies consolidation coiling and breakout setups with volume expansion, displaying entry levels and risk management targets directly on the chart. Configurable inputs include trend criteria, contraction parameters, volume multipliers, and position sizing settings.

Details

Published by

kevinesk on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Trend, Breakout, Volatility & bands, Moving averages

Markets

Stocks

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
Price > EMA200 (Stage 2)booltruerequire_above_ema200
EMA50 > EMA200booltruerequire_50_above_200
Price > EMA50booltruerequire_price_above_50
Max % below 52w highfloat25.0within_52w_high_pct
Min % above 52w lowfloat30.0above_52w_low_pct
BenchmarksymbolFTSEMYX:FBMKLCIbenchmark_sym
RS lookback (days)int63rs_lookback
Min RS outperformance %float0.0min_rs_pct
Contraction lookback (bars)int20contraction_bars
Max pullback from recent high %float15.0max_pullback_pct
Vol on pullback ≤ N% of avgfloat80.0vol_dryup_pct
Pivot resistance lookbackint10entry_pivot_lookback
Show all 37 settings
SettingTypeDefaultVariable
Breakout volume × avgfloat1.5breakout_vol_x
Detection modestringMatch V8 (lenient)coil_mode
Custom: ATR(5) < ATR(30) × ?float0.85atr_ratio_thr
Custom: AvgVol(5) < AvgVol(30) × ?float0.90vol_ratio_thr
Custom: max pullback %float-10.0coil_pullback_thr
Portfolio Value (RM)float30000.0portfolio_rm
Max swing position %float15.0swing_max_pct
Risk per trade %float1.0risk_per_trade
Initial stop %float7.0stop_pct
TP1 (R multiple)float2.0tp1_r
TP2 (R multiple)float4.0tp2_r
Trail stop EMAint20trail_ema
Commission % per sidefloat0.038comm_pct
Min commission per trade (RM)float7.0comm_min_rm
Clearing fee %float0.030clearing_pct
SC fee %float0.0075sc_fee_pct
Stamp duty % (sell only)float0.150stamp_pct
Min NET R:R after costsfloat2.0min_net_rr
Require KLCI > EMA50booltruerequire_klci_bull
Stock industry / sectorstringNoneindustry
Custom benchmark (used if 'Custom' selected)symbolNYMEX:CL1!custom_comm_sym
Custom: inverse relationship (bullish when BELOW EMA50)boolfalsecustom_inverse
Require driver supportive to EXECUTEboolfalserequire_comm_gate
Show dashboardbooltrueshow_table
Plot entry/stop/TP linesbooltrueshow_levels
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

GEKO Gold

by grzegorzkowalskigk-jpg
1 stars

GEKO Gold is a trend-following indicator for gold (XAUUSD/MGC). It computes a GEKO-TIMID composite trend strength score by blending weekly and daily EMAs and ADX values, then classifies the trend into Emerging, Dominant or Extended states. The indicator plots

Indicator v6 TrendMoving averages
Updated 3 months ago · Custom licence GitHub repository of GEKO Gold
1 stars

This indicator detects long-only trading setups centered on volume-weighted average price (VWAP) reclaim sequences. It calculates VWAP with standard deviation bands, tracking slope and price bias through an exponential moving average. Signals trigger on either

Indicator v6 TrendMoving averages
Updated 2 days ago · None stated GitHub repository of VWAP Reclaim (LONG-only) Indicator

EMA Breakout

by jerryinyang
5 stars

This indicator calculates and plots the exponential moving average on the chart, along with Keltner Channel bands. It applies optional filters based on Keltner Channel and Money Flow to identify breakout signals. Breakouts occur when price crosses the EMA with

Indicator v4 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of EMA Breakout
318 stars

This indicator plots four customizable moving averages directly on the main price chart using default lengths of 3, 8, 21, and 50 periods. It fills the space between adjacent averages in green or maroon depending on trend alignment. Additionally, it computes B

Indicator v5 Moving averagesTrend
Updated 2 months ago · MIT GitHub repository of Multiple Moving Averages

NVDA Trend Ribbon

by longsurf-ai
277 stars

This indicator plots three exponential moving averages and ATR volatility envelopes on the price chart. It compares the fast and slow EMAs to shade a trend ribbon and marks confirmed upward and downward crossovers with triangle labels. Settings change the thre

Indicator v6 TrendMoving averages
Updated yesterday · MIT GitHub repository of NVDA Trend Ribbon

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