Skip to content
All library documents

Custom Moving Average Versions of AC, AO, Bears Power, and Bulls Power

Article MQL5 code base

Summary

The document describes custom indicator functions that generalize the standard Accelerator Oscillator, Awesome Oscillator, Bears Power, and Bulls Power calculations. The AC variant computes a difference between two moving averages of a selected price, then subtracts a moving average of that difference. The AO variant uses only the difference between two configurable moving averages. The Bears and Bulls variants compare the low or high against a moving average, with the moving average type and period configurable.

The functions accept inputs for symbol, timeframe, applied price, averaging method, periods, and buffer shift. This flexibility lets a developer or trader experiment with alternate price inputs and moving-average settings in automated strategies. The document supplies formulas and parameter descriptions, but no trading rules, backtests, or evidence that these variants improve signal quality. It also points to an attached archive for fuller examples, which is not included in the provided text. The material is therefore a technical reference for indicator calculation rather than a validated trading method.

Key ideas

  • The custom AC calculation subtracts a moving average of AO from AO itself.
  • The custom AO calculation is the difference between two configurable moving averages.
  • The Bears and Bulls variants allow the moving average type and input price to be selected.
  • Inputs include symbol, timeframe, periods, and the indicator buffer shift.
  • The document gives no evidence that configurable variants improve trading performance.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.