Skip to content
All library documents

Stochastic EA with Configurable Stops and Risk-Based Sizing

Article MQL5 code base

Summary

This document describes an Expert Advisor that trades from Stochastic indicator signals. Users configure upper and lower signal levels and choose which bar to compare with the current bar. The description does not specify the exact entry rules, so the signal thresholds alone are not enough to reconstruct the full trading logic.

Trade management settings include optional stop loss and take profit, trailing stops with a step, and either a fixed lot size or automatic sizing based on a risk percentage per trade. The fixed-lot and risk-based modes are presented as alternatives. The document gives no backtest results, market conditions, parameter values, or performance evidence, and it does not discuss slippage or other execution effects. Treat it as a brief overview of configurable EA inputs rather than evidence that the strategy is profitable.

Key ideas

  • The EA bases trades on Stochastic indicator signals with configurable upper and lower levels.
  • The compared-bar setting controls which earlier bar is used in the comparison.
  • Stop loss and take profit can be disabled, and trailing-stop behavior can be configured.
  • Position size can be fixed or calculated from a per-trade risk percentage.
  • The description supplies no complete entry rules or performance evidence.

Tags

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