Accelerator Oscillator

AC measures the acceleration or deceleration of market momentum.

Role in the strategy

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

The Accelerator 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 AC value:

RuleLong signal is 1 whenShort signal is 1 when
AC risesAC rose on the previous barAC fell on the previous bar
AC fallsAC fell on the previous barAC rose on the previous bar
AC is higher than the Level lineAC is above LevelAC is below −Level
AC is lower than the Level lineAC is below LevelAC is above −Level
AC crosses the Level line upwardAC crossed above Level from belowAC crossed below −Level from above
AC crosses the Level line downwardAC crossed below Level from aboveAC crossed above −Level from below
AC changes its direction upwardAC formed a valley (down then up)AC formed a peak (up then down)
AC changes its direction downwardAC formed a peak (up then down)AC 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.AC in engine/indicator-engine/tech.ts computes the Accelerator Oscillator as the Awesome Oscillator minus its 5-bar simple moving average: AC = AO − SMA(AO, 5). The histogram is drawn in a separate chart pane.

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.