Skip to content
All library documents

Ang_Zad Trend Signals with Time Filters and Loss-Based Position Sizing

Article MQL5 code base

Summary

This expert advisor follows the Ang_Zad_C indicator, entering when its indicator cloud changes color. It adds a configurable daily trading window: users set start and end times, and the system closes positions at the specified end time. If the start time falls later than the end time, the window runs across midnight. The default configuration covers the full day and closes positions at 23:59.

Position size depends on recent outcomes separately for buys and sells. After a configured number of consecutive losing trades in one direction, the next trade in that direction uses a smaller allocation; otherwise it uses the normal allocation. The document reports a 2017 EURUSD H12 test and says stop loss and take profit were not used, but the figures are not included in the text. Results therefore cannot be assessed here, and the strategy depends on an external compiled indicator.

Key ideas

  • The system enters trades when the Ang_Zad_C indicator cloud changes color.
  • Trading can be limited to a configured time interval, including one that crosses midnight.
  • Trade volume is reduced in a direction after a specified run of losing trades.
  • The cited EURUSD test omitted stop loss and take profit, limiting what can be inferred about risk.

Tags

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