Skip to content
All library documents

Analytics Master EA for Market Metrics and Risk-Based Position Sizing

Article MQL5 articles

Summary

The article describes an Expert Advisor that extends a one-time analytical script by refreshing market information periodically. It reports previous-day open, close, high, low, and volume, current-day volume, and calculated support and resistance levels. Additional metrics include volatility, spread, account equity and balance, and possible lot sizes. The EA also analyzes market direction and draws chart trend lines, with risk-based sizing linked to account balance, a chosen risk percentage, and stop-loss distance.

The implementation uses a timer-like check during tick processing to refresh metrics every two hours. The article explains volatility as a risk and planning input, spread as a transaction cost, and position size as a function of risk and stop distance. It recommends historical testing and adjustment to individual risk tolerance, but provides no quantified performance evidence or proof that its directional analysis predicts future prices. The outputs are informational and depend on the calculation choices and market data used; they do not establish that a trade or lot size is suitable for a given account.

Key ideas

  • The EA refreshes market and account metrics every two hours while running continuously.
  • It reports prior-day price and volume data, current volume, calculated levels, volatility, and spread.
  • Its proposed lot sizing relates account balance and chosen risk to the distance from entry to stop loss.
  • The article explains spread as a trading cost and volatility as an input to risk management.
  • No measured trading performance is provided, so historical testing is needed to assess the tool's usefulness.

Tags

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