Indicator · Pine Script v6 · On the chart

A.W. Strategy

by abdulwh1d

This overlay indicator plots market structure, order flow metrics, and dealer gamma levels on the price chart.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code2,769
Settings40inputs
LicenceNone stated
Last update11 days ago13 Nov 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

A.W. Strategy tracks breaks of structure, fair value gaps, 79% retracements, liquidity sweeps, and intrabar delta alongside relative volume and big prints. Signals print on candle close when six of ten conditions align, marking ATR stop and target levels. Main settings control swing length, gap sizing, delta z-score thresholds, higher timeframe trend filtering, and London or New York sessions. Although titled a strategy, it runs as an indicator without native backtest execution.

Details

Published by

abdulwh1d on GitHub

Draws

On the price chart

Markets

Indices, Gold, Oil & commodities

Timeframes

M1-M5, M15-H1

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.

Topics

algorithmic-tradingbacktestingfuturesgamma-exposureoptionsorder-flowpine-scriptpythontrading-strategiestradingview

Settings

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

SettingTypeDefaultVariable
Swing length (bars on each side)int5swingLen
A break needs a candle close beyond the swingbooltruebreakOnClose
Show BOS / CHoCHbooltrueshowBos
Structure breaks to keep on the chartint4bosKeep
Entry retracementfloat0.79fibLevel
Touch tolerance (x ATR)float0.10fibTolAtr
Show the 79% levelbooltrueshowFib
Smallest gap (x ATR)float0.15minGapAtr
Gaps to trackint20maxGaps
Forget gaps older than (bars)int400maxGapAge
Order-flow memory (events)int10ofMemory
Zones to draw (nearest to price)int6maxDrawn
Show all 40 settings
SettingTypeDefaultVariable
Show FVGsbooltrueshowFvg
Show inverse FVGsbooltrueshowIfvg
Delta from intrabars oftimeframe1deltaTf
Volume average lengthint20rvolLen
Relative volume that countsfloat1.0minRvol
Delta z-score lookback (bars)int30dzLen
Unusual delta (z-score)float1.5dzMin
One side dominates at (% of volume)float60buyDomPct
CVD trend over (bars)int5cvdBars
Mark big printsbooltrueshowBig
Big print at (x average intrabar volume)float4.0bigMult
Timeframe 1timeframe5tf1
Timeframe 2timeframe15tf2
Timeframe 3timeframe30tf3
Trend filterstringTimeframe 3htfFilter
Only signal inside a sessionbooltrueuseSess
Londonsession0200-0500sessLdn
New York AMsession0830-1100sessNyAm
New York PMsession1330-1530sessNyPm
Shade sessionsboolfalseshowSessBg
Minimum score to signal (of 10)int6minScore
Stop buffer (x ATR)float0.25stopAtr
Skip if the stop is wider than (x ATR)float3.0maxRiskAtr
Target 1 (R)float1.0tp1R
Target 2 (R)float2.0tp2R
Stop to breakeven after target 1booltruebeAfterTp1
Exit when structure flipsbooltrueexitOnFlip
Exit when order flow is disrespectedbooltrueexitOnOf
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

Moon Dev GEX Sweep & CVD

by moondevonyt
98 stars

The indicator detects liquidity sweeps across key price levels and calculates a cumulative volume delta proxy. It uses pivot high and low lookbacks to identify swing points, marking sweeps when price breaks beyond a level and quickly closes back inside. Featur

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 2 months ago · Custom licence GitHub repository of Moon Dev GEX Sweep & CVD

CRT State Engine

by alboogycOdR
6 stars

CRT State Engine is an overlay indicator that maps New York-timed CRT models, unmitigated order blocks, market structure, liquidity pools, and volume profile on the price chart. It can draw session boxes for Asia, London, London lunch, and New York and optiona

Indicator v5 SMC / ICT / price actionSessions & time
Updated 8 months ago · None stated GitHub repository of CRT State Engine

Smart Money Concepts

by TamTH-Dev
2 stars

This indicator maps market structure and session activity directly on the price chart. It detects and labels internal and swing structures with customizable confluence filters and candle coloring. Additionally, it highlights major trading killzones including N

Indicator v5 SMC / ICT / price actionSessions & time Repaints
Updated 2 months ago · None stated GitHub repository of Smart Money Concepts

This overlay indicator builds a weighted volume profile over a chosen number of bars and plots pivot points with a point of control line on the price chart. Volume can be weighted toward recent, normal, or past bars, and swing length, row count, and alignment

Indicator v5 VolumeSupport & resistance
Updated 6 months ago · None stated GitHub repository of Weighted Volume Profile Pivot Points | Flux Charts
1 stars

Advanced Market Theory calculates Market Profile, TPO, and Hybrid profiles directly on the price chart. It identifies key structural levels including the Point of Control, Value Area High and Low boundaries, Initial Balance range projections, single prints, po

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of Advanced Market Theory

More SMC / ICT 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