Skip to content
All library documents

Pending Orders Around the Previous Candle with Fractal-Based Sizing

Article MQL5 code base

Summary

This automated strategy places buy stop and sell stop orders around the high and low of the previous five-minute candle, with an adjustable offset. It can place additional pending orders relative to open positions. The cycle closes all positions when aggregate profit reaches a specified minimum. The strategy also allows larger order sizes when fractals are broken on the five-minute or hourly timeframe; these multipliers can be disabled.

The description gives inputs for order offsets, profit target, buy and sell volumes, fractal sizing factors, and an expert-advisor identifier. It reports that tests used every-tick modeling over a stated historical period, but provides no quantitative performance figures in the text. It explicitly warns that outcomes vary between profitable and losing periods. Stop-loss and take-profit levels are not specified, so the risk of accumulating exposure and losses is difficult to assess from the description alone.

Key ideas

  • The strategy brackets the previous five-minute candle with offset buy stop and sell stop orders.
  • Additional pending orders can be positioned relative to existing positions.
  • All open positions are removed when the minimum aggregate profit is reached.
  • Fractal breaks on two timeframes can increase order volume.
  • The description gives no stop-loss or take-profit levels and warns that performance varies by period.

Tags

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