Strategy · Pine Script v6 · On the chart

SMC Major Pairs Strategy

by middlechild0

This strategy identifies trend alignments and Smart Money Concept (SMC) setups across major currency pairs and gold.

View on GitHub

GitHub stars2on the repository
Pine versionv6current
Lines of code337
Settings28inputs
LicenceNone stated
Last update5 months ago13 May 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

SMC Major Pairs Strategy calculates a customized Q-Trend filter combined with higher-timeframe trend confirmation, liquidity sweep detection, swing points, and fair value gaps. Position sizing uses dynamic tiered risk percentages based on account equity, partial take-profits at multiple R-multiples, and an ATR trailing stop. Designed to overlay on the price chart, it features entry and exit labels, daily trade caps, and an optional status dashboard.

Details

Published by

middlechild0 on GitHub

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

SMC / ICT / price action, Trend, Volatility & bands

Markets

Forex, Gold

Timeframes

M15-H1, H4 and above, M1-M5

Risk Notes

  • The strategy can add several entries in the same direction

Settings

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

SettingTypeDefaultVariable
Trading ModestringSwingmode
Higher Timeframetimeframe60htf_res
Q-Trend Periodint100trend_len
ATR Periodint14atr_period
Q-Trend ATR Multfloat0.8atr_mult
Volatility Lookbackint100vol_period
Min Volatility Percentilefloat10vol_lower
Max Volatility Percentilefloat90vol_upper
Swing Lookback Leftint10lb_left
Swing Lookback Rightint10lb_right
Sweep Cooldownint5cooldown
Require FVG not mitigatedboolfalsefvg_mitigation
Show all 28 settings
SettingTypeDefaultVariable
Trend Duration Samplesint5dur_samples
Duration Threshold %float0.80dur_threshold
Risk % (Equity < $500)float2.0risk_tier1
Risk % ($500-$2000)float1.5risk_tier2
Risk % (>$2000)float1.0risk_tier3
TP1 (R)float1.5tp1_r
TP2 (R)float2.5tp2_r
TP1 Close %float70tp1_close
Trailing Stop ATRfloat1.5trail_atr
Max Trades per Dayint5max_trades_per_day
Pyramid Risk Reduction %float50pyramid_reduce
Show Dashboardbooltrueshow_dashboard
Dashboard PositionstringTop Rightdashboard_position
Show Entry/SL/TP Labelsbooltrueshow_signal_labels
Bullish Colorcolor#089981color_bull
Bearish Colorcolor#f23645color_bear
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

57 stars

This strategy identifies trend reversals through market structure changes (CHoCH) filtered by MACD momentum. It initiates long positions on bullish structure breaks when MACD is positive and above its signal line, and short positions on bearish breaks when MAC

Strategy v6 SMC / ICT / price actionOscillators & momentum Repaints
Updated 1 year ago · Apache-2.0 GitHub repository of Market Structure MACD 4H + Trailing
12 stars

This strategy is titled for Bitcoin on the four-hour chart and is set to draw on the price chart. It detects three-candle fair value gaps and inverted gaps, and it defines a check for price near a gap midpoint within a percentage tolerance. An optional filter

Strategy v6 SMC / ICT / price actionTrend
Updated 4 months ago · None stated GitHub repository of BTC 4h FVG/iFVG Automated Strategy

Hedge Fund SMC Strategy - QuantAlgo

by thesenegalesehitch
4 stars

This overlay strategy combines EMA trend following with simple Smart Money Concepts filters. It reads H4 and H1 bias, then looks for a liquidity sweep plus a displacement candle in that direction, gated by ADX, ATR, and volume. Entries are allowed only in Lond

Strategy v6 SMC / ICT / price actionTrend Repaints
Updated 4 months ago · Custom licence GitHub repository of Hedge Fund SMC Strategy - QuantAlgo

Estimations-10min

by IAMATOMIC001
3 stars

This overlay strategy estimates trend with a selectable TEMA, Hull, or ALMA basis and optional higher-timeframe or Heikin Ashi sources. It plots a regression estimator with ATR near and far boundaries, can color bars by trend, and can show order blocks. Entrie

Strategy v5 TrendMoving averages Repaints
Updated 12 months ago · None stated GitHub repository of Estimations-10min

Startegy

by orenkats
2 stars

This strategy draws on the price chart and sizes positions from account equity, a risk percent, and a leverage multiplier. It tracks long and short stops, pending add-on entries, limit and stop order offsets, and a percentage profit target. Settings change lin

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of Startegy

More strategys

Trade Your Charts With a Regulated Broker

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

Compare brokers