Skip to content
All library documents

Time-Scheduled Pending Orders with Stop Loss and Virtual Take Profit

Article MQL5 code base

Summary

This document describes an Expert Advisor that places Buy Stop and Sell Stop pending orders at scheduled times. The orders include a Stop Loss. Take Profit is handled virtually: the EA watches an open position and closes it at market once its profit reaches the configured target. The described update also allows traders to choose either a fixed lot size or a dynamically calculated size based on risk, and adds trailing functionality.

The order schedule follows the chart timeframe, which must be below H1. For example, on M15 the EA places orders at each quarter-hour mark. The page mentions a result display for EURUSD on H30, but supplies no performance figures, test methodology, spread assumptions, or risk-adjusted comparison. It therefore explains the EA’s mechanics and scheduling behavior rather than establishing that the approach is profitable. The effects of simultaneous pending orders, slippage, and the virtual exit’s execution timing are not evaluated in the available text.

Key ideas

  • The EA places Buy Stop and Sell Stop pending orders at timeframe-based intervals.
  • Each pending order is set with a Stop Loss.
  • Take Profit is virtual and triggers a market close when the target profit is reached.
  • Position sizing can use a fixed lot amount or a risk-based dynamic amount.
  • The document describes mechanics but provides no quantitative evidence of profitability.

Tags

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