What AIMS Wave does
AIMS Wave provides the foundational momentum rhythm for the AIMS Trading Strategy. Built on a classic 5/34 smoothed median price engine, it maps subwindow momentum into distinct market phases: Wave 3 impulse expansion, Wave 4 baseline pullbacks, and Wave 5 divergent exhaustion without intrabar repainting.
5/34 Smoothed Median Engine
Calculates the spread between 5-period and 34-period simple moving averages of median price (hl2).
4-Colour Acceleration Grammar
Separates expanding bull/bear impulse momentum from contracting corrective consolidation in real time.
Zero-Line Crossover Anchors
Non-repainting crossover cues signal macro momentum shifts and structural trend flips upon bar close.
How to trade AIMS Wave
Identify Wave 3 Momentum Peaks
Look for tall, expanding green histogram lobes above zero (or red below zero). Never take counter-trend trades against peak Wave 3 momentum.
Track Wave 4 Baseline Pullbacks
Watch for the histogram to contract shallowly back toward the zero baseline, signaling corrective resting before trend resumption.
Spot Wave 5 Momentum Divergence
When price makes a new extreme but the Wave histogram prints a distinctly lower peak, momentum is exhausting; tighten trailing stops.
Execute on Zero-Line Cross Confirmation
Enter on confirmed closed bars when histogram lobes cross the zero line, aligning with the higher-timeframe corridor direction.
Prompts, not trade instructions. A SETUP READY prompt tells you to review the structure on a closed candle. It is never a command to enter blindly.
Setups and chart grammar
AIMS Wave classifies momentum into four distinct color-coded acceleration states.
| Setup | Context | What the indicator sees | Goal |
|---|---|---|---|
| Bull Impulse (Lime) | Above zero line (AO >= 0) | Histogram bar is greater than the preceding bar (ao > ao[1]) | Aggressive trend continuation in direction of bullish expansion |
| Bull Corrective (Dark Green) | Above zero line (AO >= 0) | Histogram bar is less than the preceding bar (ao < ao[1]) | Wave 4 consolidation rest or pullback to baseline |
| Bear Impulse (Red) | Below zero line (AO < 0) | Histogram bar is less than the preceding bar (ao < ao[1]) | Aggressive trend continuation in direction of bearish expansion |
| Bear Corrective (Maroon) | Below zero line (AO < 0) | Histogram bar is greater than the preceding bar (ao > ao[1]) | Bearish Wave 4 retracement or momentum slowdown |
Expanding bullish momentum (AO >= 0 and rising) — Wave 3 drive.
Contracting bullish momentum (AO >= 0 and falling) — Wave 4 resting.
Expanding bearish momentum (AO < 0 and falling) — Wave 3 plunge.
Contracting bearish momentum (AO < 0 and rising) — corrective slowdown.
The Awesome Oscillator Engine Formula
Pure mathematical momentum calculation derived from median bar pricing without curve-fitting.
Median Price (hl2) = (High + Low) / 2 AO = SMA(hl2, 5) − SMA(hl2, 34) if AO >= 0 and AO > AO[1] → Bull Impulse (Lime) if AO >= 0 and AO < AO[1] → Bull Corrective (Forest Green)

Settings
| Input | Type | Default | What it does |
|---|---|---|---|
| Fast Length | Integer | 5 | Lookback period for the fast simple moving average. |
| Slow Length | Integer | 34 | Lookback period for the slow simple moving average. |
| Input | Type | Default | What it does |
|---|---|---|---|
| InpTimeFrame | ENUM_TIMEFRAMES | PERIOD_CURRENT | Calculation timeframe for multi-timeframe projection. |
| InpFastPeriod | int | 5 | Fast SMA lookback period. |
| InpSlowPeriod | int | 34 | Slow SMA lookback period. |
| InpAppliedPrice | ENUM_APPLIED_PRICE | PRICE_MEDIAN | Price series used (hl2 = High+Low/2). |
| InpShowZeroCross | bool | true | Display zero-line crossover dot markers on the chart. |
| InpAlertZeroCross | bool | true | Trigger alerts when momentum crosses the zero line. |
| InpAlertColorShift | bool | true | Alert on momentum shifts between impulse and corrective phases. |
| Input | Type | Default | What it does |
|---|---|---|---|
| InpSerialKey | string | "" | Member Portal serial key for DLMS license verification. |
| InpTimeFrame | ENUM_TIMEFRAMES | PERIOD_CURRENT | Calculation timeframe. |
| InpFastPeriod | int | 5 | Fast SMA period. |
| InpSlowPeriod | int | 34 | Slow SMA period. |
| InpShowZeroCross | bool | true | Draw zero-line cross markers. |
Use it in your EA
On MetaTrader you can read the levels and setup state from an Expert Advisor with iCustom().
// MQL5 — Read AIMS Wave momentum state on completed bar close
int h = iCustom(_Symbol, _Period, "AIMSWave");
double rawAO[], state[];
CopyBuffer(h, 6, 1, 1, rawAO); // Buffer 6: Continuous raw AO scalar
CopyBuffer(h, 7, 1, 1, state); // Buffer 7: State (0=Lime, 1=Green, 2=Red, 3=Maroon)| Buffer | Name | Value |
|---|---|---|
| 0 | Bull Impulse | Histogram value when AO >= 0 and rising (Lime) |
| 1 | Bull Corrective | Histogram value when AO >= 0 and falling (Dark Green) |
| 2 | Bear Impulse | Histogram value when AO < 0 and falling (Red) |
| 3 | Bear Corrective | Histogram value when AO < 0 and rising (Maroon) |
| 4 | Zero Bull Cross | Bullish zero-line crossover dot marker price |
| 5 | Zero Bear Cross | Bearish zero-line crossover dot marker price |
| 6 | Raw AO | Continuous raw AO scalar value for EAs |
| 7 | State | Discrete state integer (0=Lime, 1=Green, 2=Red, 3=Maroon) |
Frequently asked questions
No. AIMS Wave is purely a momentum rhythm oscillator. It plots the 5/34 smoothed momentum histogram to help traders manually identify Wave 3 peaks and Wave 4 baseline pullbacks. If you require automated 1–5 impulse labels, Wave 4 pullback detection, and mathematical Target Zones (TZ1 & TZ2), see AIMS eWaves Super.




