Discussing the article: "Position Management: Scaling Into Winners With A Falling-Risk Pyramid"

 

Check out the new article: Position Management: Scaling Into Winners With A Falling-Risk Pyramid.

We introduce CPyramidBridge, a thin MQL5 layer that maps bet-sizing results to CPyramidEngine. The bridge applies probability to initial lot sizing, enforces a capacity-aware entry gate, promotes add-ons from dynamic divergence, adapts the trailing stop to reserve estimates, and syncs signals on close, allowing an Expert Advisor to convert model confidence and concurrency into a structured, decreasing-risk pyramid.

Before we begin, note the prerequisites. The code in this article depends on all five files from Part 13 (BetSizingUtils.mqh, EF3M.mqh, Ch10Snippets.mqh, BetSizing.mqh, BetSizingEA.mq5) and on the three files from the pyramiding article (PyramidUtils.mqh, PyramidEngine.mqh, PyramidEA.mq5). This article adds two new files: PyramidEngine_additions.mqh, which extends the engine with seven new public methods, and BetSizingPyramidBridge.mqh, which implements CPyramidBridge. A wired demonstration EA, BetSizingPyramidEA.mq5, shows all five integration points active at once. All three new files are in the attached archive.

Figure 1 illustrates pyramiding. Decreasing lot sizes entered at higher price levels form a triangular outline. Because the unified stop advances after each add-on, total dollar risk falls at each stage even as the total position size increases.

Why it is called pyramiding

  • Panel (a): Three horizontal bars drawn at their entry price levels — Initial (1.00 lot at E1), Add-on 1 (0.60 lot at E2, +60 pips), Add-on 2 (0.30 lot at E3, +120 pips). The dashed line connecting the bar tips traces the pyramid outline: a wide base at the lowest price, narrowing to an apex at the highest. The unified stop level for each stage is shown as a dotted horizontal line; the red-shaded zone illustrates the Stage 1 risk band.
  • Panel (b): Total risk in pip-lots at each stage (blue/green/orange bars, left axis) alongside total open lots (grey dashed line, right axis). Risk falls from 50 → 40 → 15 pip-lots while the position grows from 1.00 → 1.60 → 1.90 lots. The reduction occurs because the advancing unified stop moves previously entered positions to break-even or into locked profit, so only the newest, smallest add-on carries open risk.

Author: Patrick Murimi Njoroge