Skip to content
All library documents

AO Lightning Strategy Using Histogram Color and Direction Changes

Article MQL5 code base

Summary

This Expert Advisor uses the Awesome Oscillator to generate buy and sell signals from changes in histogram color and the relative height of consecutive bars. It opens orders at each bar and closes the group of positions on an opposite signal. The oscillator is calculated within the program so that its fast and slow moving-average periods can be adjusted during optimization.

Inputs include fixed lot size, an optional lot size based on free margin, the fast and slow oscillator periods, and a maximum order count. The document says the strategy was tested on EURUSD at the hourly timeframe, but gives no performance figures, test dates, trading costs, drawdown, or risk controls beyond the order limit and sizing inputs. Its signal description is concise and the stated test context is narrow, so the text alone does not establish robustness or suitability for live trading.

Key ideas

  • The strategy uses Awesome Oscillator histogram color and bar-to-bar movement to signal entries.
  • Orders are opened on each bar and positions are closed together when an opposite signal occurs.
  • The fast and slow moving-average periods can be adjusted for optimization.
  • Position sizing can use a fixed lot or a percentage of free margin, and the number of orders can be capped.
  • The stated test uses EURUSD on an hourly chart, with no performance or risk statistics supplied.

Tags

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