Sessions as the frame, ranges as the ruler
DUO JI SHI KONG — a rule-based MT5 trading system
Every trading day is split into three sessions — Asia, Europe and US. The high and low of the previous session become the breakout thresholds. Three independent strategies (trend breakout, ATR session range, range reversal) then handle what the market actually does. Every parameter is exposed, every decision is logged. No black box, and no promises about returns.
What the system actually does
It is not about predicting direction — it is about writing the before, during and after of every trade as explicit rules.
Session trend breakout
Uses the previous session's high/low as the threshold: when a bar opens inside the range and pierces the boundary, the trade goes on — riding the trend.
- Re-arms automatically once price returns inside the range (later breakouts are not swallowed)
- Initial stop at the opposite boundary, tightened by an ATR cap when too wide
ATR session range
Breakout logic plus an EMA direction filter and an ATR remaining-room gate — it only trades when both direction and space agree.
- EMA direction mismatch → no trade at all (mandatory condition)
- ATR range take-profit that contracts with the range
Range reversal
Runs only in range (low-ER) regimes: when price pushes out of the range and fails to hold, the system fades it and plays the return.
- Two-stage confirmation against single-bar noise
- Four profit tiers: break-even / give-back / no-new-extreme / take-profit
- Optional structural exit when the range premise breaks
Risk controls come first
Every position is constrained by several gates at once — and each of them tells you what it is doing, on the chart and in the log.
Before entry
- Regime filter: trend / range / volatility-pulse; range regime blocks the breakout strategies by default
- Per-session, per-direction trade-count caps
- Optional "one trade per direction" to avoid stacking
- Margin ceiling and maximum position size, with minimum-lot fallback
During the trade
- Initial stop (opposite boundary / ATR multiple, clamped to broker STOPS & FREEZE levels)
- Trailing stop, break-even, forced stop-loss recovery
- Active exits: structural break, failed breakout, no-new-extreme profit taking
After the fact
- Protective-exit fuse: too many protective exits in one session/direction → that direction is closed for the day
- Daily loss circuit breaker: realised loss of the day reaches a threshold → resumes next day
- Optional overnight flat, equity protection
Auditable
- Per-bar decision trace: why a trade was taken, and why not
- Per-trade CSV ledger plus an HTML report
- Session boxes and reference range lines drawn right on the chart
Versions
The free edition lets you get comfortable with the session/range way of reading a chart. The licensed edition unlocks the full strategy and risk suite.