Skip to content
All library documents

Stochastic Scalping with Virtual Pending Orders

Article MQL5 code base

Summary

This document describes a one-minute EUR/USD scalping example built around virtual pending orders. A library simulates buy-stop and sell-stop orders, including stop-limit variants, by checking whether price or an indicator crosses specified thresholds. Checks can be made on each new bar or on each tick, giving the trader control over how frequently the trigger conditions are evaluated.

In the example, an initial Stochastic threshold arms a pending order; a second threshold and a specified price movement in pips are then required for execution. A trend filter is also used. The document says the demonstration performs well only when spreads are low, below 0.50 pips. It supplies no performance statistics, risk controls, parameter selection process, or evidence that the approach generalizes beyond its EUR/USD chart setup, so the description should be read as an implementation example rather than a validated strategy.

Key ideas

  • Virtual pending orders can emulate buy-stop, sell-stop, and stop-limit orders.
  • Trigger checks can run at a new bar or at every tick.
  • The example arms orders at one Stochastic threshold and requires a second threshold plus a price move for execution.
  • A trend filter is included in the one-minute EUR/USD scalping setup.
  • The document limits its favorable assessment to conditions with very low spreads.

Tags

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