Accelerator Oscillator
AC measures the acceleration or deceleration of market momentum.
Role in the strategy
| Slot | Available | Role |
|---|---|---|
| Entry Point | No | — |
| Entry Rule | Yes | Filters entries by the AC direction or its level position. |
| Exit Point | No | — |
| Exit Rule | Yes | Triggers 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:
| Rule | Long signal is 1 when | Short signal is 1 when |
|---|---|---|
| AC rises | AC rose on the previous bar | AC fell on the previous bar |
| AC falls | AC fell on the previous bar | AC rose on the previous bar |
| AC is higher than the Level line | AC is above Level | AC is below −Level |
| AC is lower than the Level line | AC is below Level | AC is above −Level |
| AC crosses the Level line upward | AC crossed above Level from below | AC crossed below −Level from above |
| AC crosses the Level line downward | AC crossed below Level from above | AC crossed above −Level from below |
| AC changes its direction upward | AC formed a valley (down then up) | AC formed a peak (up then down) |
| AC changes its direction downward | AC 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
| Parameter | Type | Default | Range | Purpose |
|---|---|---|---|---|
| Level | number | 0 | −1000 to 1000 | Long 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.