Strategy · Pine Script v6 · On the chart

5m Weapon One Leg 10 Lots Basket

by jayadevrana

This strategy arms a stop entry slightly beyond the close of a confirmed signal candle, filtered by SuperTrend, fast and slow EMAs, MACD, RSI, rising ADX and higher timeframe checks, within a trading session.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code586
Settings40inputs
LicenceCustom licence
Last update2 months ago7 Aug 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 strategy, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.

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

A basket of 10 lots books half at a one-point target and leaves a runner that exits on a MACD reversal. Further refill entries carry their own stop loss, which closes everything. The initial basket and runner have no stop loss, and up to six entries can stack.

Details

Published by

jayadevrana on GitHub

Draws

On the price chart

Markets

Oil & commodities

Timeframes

M1-M5

Risk Notes

  • The strategy can add several entries in the same direction
  • The strategy enters trades without a stop loss

Topics

indicatormarket-structurepine-scriptpinescript-v6supply-demandtradingview

Settings

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

SettingTypeDefaultVariable
Allow LongbooltrueallowLong
Allow ShortbooltrueallowShort
Total Basket Lotsfloat10totalQty
Partial / Refill Lotsfloat5partialQty
+1 Point Target (price units)float1.0targetPoints
Entry Buffer % (close +/-)float0.02entryBufferPct
Refill SL Buffer % (from signal candle Low/High)float0.02slBufferPct
Trading Sessionsession0905-2230tradeSession
Show Entry / SL / Target LinesbooltrueshowTradeLines
Show Execution MarkersbooltrueshowExecMarkers
Show Exit Reason LabelsbooltrueshowExitReasonLabels
Line Extend Barsint80lineExtendBars
Show all 40 settings
SettingTypeDefaultVariable
Label Left Offset Barsint5labelOffsetBars
Label Vertical Spacing Ticksint16labelSpaceTicks
Entry Line Colorcolorcolor.new(color.blue, 0)entryLineColor
Target Line Colorcolorcolor.new(color.green, 0)targetLineColor
SL Line Colorcolorcolor.new(color.red, 0)slLineColor
ST ATR Lengthint2st_atr_len
ST Factorfloat1.0st_factor
EMA Fast Lengthint3ema_fast_len
EMA Slow Lengthint13ema_slow_len
MACD Fast Lengthint12macd_fast_len
MACD Slow Lengthint13macd_slow_len
MACD Signal Smoothingint12macd_signal_len
RSI Lengthint14rsi_len
ADX Lengthint14adxLen
ADX Smoothingint14adxSmoothing
ADX Rising Above Levelfloat15.0adxLevel
VWAP Slope Lookbackint10vwapSlopeLookback
VWAP Flat ATR Lengthint14vwapAtrLen
VWAP Flat ATR Multiplierfloat0.15vwapFlatMult
Volume EMA Lengthint20volEmaLen
BB SMA / Mid Lengthint10bbLen
BB Multiplierfloat2.0bbMult
BB Band Slope Lookbackint3bbSlopeLookback
15m SMA Length for BB Biasint10bb15SmaLen
Neutral Candle Body <= % of Rangefloat50.0neutralBodyPct
Show Neutral Candle DotbooltrueshowNeutralDot
Inside-bar detection basisstringBodymtcDetBasis
Strict Mother Candle DetectionbooltruemtcUseStrict
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

Andean Scalping

by hasnocool
106 stars

Andean Scalping is a Pine Script v5 strategy template designed for backtesting trading signals. It features session and date-range filtering, directional trade toggles for long and short entries, and optional trend filtering tools including higher-timeframe EM

Strategy v5 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Andean Scalping

ATOM 1m scalp HK

by dearvn
43 stars

This overlay strategy targets one-minute ATOM scalps. It tracks pivot highs and lows as resistance and support, compares a three-period EMA with a multi-stage smoothed close, and flags long or short when price crosses that curve in the matching direction. Dail

Strategy v5 ScalpingSupport & resistance Repaints
Updated 2 years ago · None stated GitHub repository of ATOM 1m scalp HK

1-Min Gold Taylor Technique

by eddiebelaval
7 stars

This intraday strategy implements session-based trading rules tailored for gold on short timeframes. It tracks the Asian session price range, VWAP, 20-period EMA, and previous day high and low levels to identify liquidity sweeps during London and New York trad

Strategy v6 Sessions & timeSupport & resistance
Updated 3 months ago · None stated GitHub repository of 1-Min Gold Taylor Technique

QQQ 5min Pure Runner

by yalili8521
2 stars

This strategy identifies trend continuation and accumulation setups on 5-minute charts. It enters long or short positions based on an aligned moving average stack, rising or falling price grinds within a lookback period, and a maximum bar size threshold to avo

Strategy v6 TrendMoving averages
Updated 8 days ago · None stated GitHub repository of QQQ 5min Pure Runner
1 stars

This strategy identifies long and short positions using a dual moving average crossover on the price chart. The fast and slow simple moving averages generate crossover signals that trigger market entries. The script caps the number of intraday filled orders to

Strategy v6 Moving averagesTrend
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 97b - intraday cap isolate

More Scalping scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

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

Compare brokers