Skip to content
All library documents

Volatility-Based Expert Advisor with Adjustable Stops

Article MQL5 code base

Summary

This document describes a trading robot that sets position volume and stop loss using market volatility. The trader can choose the volatility lookback period, smoothing method, and whether volatility is measured from open and close prices or from the high and low. The stop loss is specified as a fraction of the measured volatility, and a multiplier adjusts the volatility-based calculation.

The document reports that the robot was tested across symbols on hourly charts using every-tick modeling, over a stated historical period. It gives no performance results, symbol-level findings, or comparison against a benchmark, so the test setup alone does not establish profitability. It also does not explain how entries or direction are determined, leaving the core trading logic unclear.

Key ideas

  • The robot uses a configurable bar lookback to estimate market volatility.
  • Volatility can be calculated from open and close prices or from highs and lows.
  • A volatility multiplier and volatility-based percentage determine the stop-loss distance.
  • The stated evaluation used hourly charts and every-tick testing across symbols.

Tags

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