Awesome Oscillator

The AO measures market momentum by comparing the recent price movement with the broader price history.

Role in the strategy

SlotAvailableRole
Entry PointNo—
Entry RuleYesFilters entries by the AO direction or its level position.
Exit PointNo—
Exit RuleYesTriggers exits by the AO direction or its level position.

The Awesome Oscillator produces conditions, not order prices. As an entry rule it is ANDed with the entry point and the other entry rules; as an exit rule it is ORed with the other exit rules. See Indicators for the slot semantics.

Logic rules

The indicator offers the standard oscillator rule set, evaluated on the AO value:

RuleLong signal is 1 whenShort signal is 1 when
AO risesAO rose on the previous barAO fell on the previous bar
AO fallsAO fell on the previous barAO rose on the previous bar
AO is higher than the Level lineAO is above LevelAO is below −Level
AO is lower than the Level lineAO is below LevelAO is above −Level
AO crosses the Level line upwardAO crossed above Level from belowAO crossed below −Level from above
AO crosses the Level line downwardAO crossed below Level from aboveAO crossed above −Level from below
AO changes its direction upwardAO formed a valley (down then up)AO formed a peak (up then down)
AO changes its direction downwardAO formed a peak (up then down)AO formed a valley (down then up)

The Level parameter sets the long threshold; the short threshold is always −Level.

Parameters

ParameterTypeDefaultRangePurpose
Levelnumber0−1000 to 1000Long threshold; the short threshold is −Level

Calculation

tech.AO in engine/indicator-engine/tech.ts computes AO = SMA(Median Price, 5) − SMA(Median Price, 34). The histogram is drawn in a separate chart pane; values above zero mark bullish momentum, below zero bearish momentum.

Backtesting

  • The rule is evaluated on the previous (closed) bar with the standard dead zone (SIGMA = 0.000001).
  • The indicator contributes only long/short signal arrays — it never changes the entry or exit order price.
  • An entry happens only when the entry point allows the direction and every entry rule passes; an exit happens when the exit point is reached and any exit rule passes.