Backtests often flatten multiple entry conditions into one profit factor, which hides…

MQL5 Algo Trading, @mql5dev

Open in Telegram
#4244Photo

Backtests often flatten multiple entry conditions into one profit factor, which hides where losses originate. Splitting results by setup type can change the conclusion: on USDCAD M1 one side produced most of the drawdown while the other was near flat. A small MT5 ledger can tag each order with a setup id by encoding it into the magic number at send time. After positions close, it aggregates by DEAL_POSITION_ID to avoid partial-close double counting, and reports per-setup wins/losses plus net P/L including swap and commission. Beyond raw win rate, the report adds a Wilson score lower bound and compares it to the breakeven rate implied by the reward ratio. This keeps early samples honest and prevents “trusted” labels based on a handful of trades. Key constraints: registration order becomes a data format, new setups must be appended, and stacked entries into o... 👉 Read | Signals | @mql5dev

Open in Telegram
Views8,349−17%vs avg
Forwards8
Reactions12
Comments—

Views growth

Hours after publication

Show as table
Hours after publicationViews
0 h0
1 h2,078
9 h8,349
  1. After 1 hour2,078
  2. Total to date8,349

More from MQL5 Algo Trading

  1. 01
    Views16.6K
    Forwards9
    Reactions—
    Comments—
  2. 02
    Views13.3K
    Forwards7
    Reactions5
    Comments—
  3. 03
    Views12.5K
    Forwards5
    Reactions34
    Comments—
  4. 04
    Views12K
    Forwards6
    Reactions40
    Comments—
  5. 05
    Views11.9K
    Forwards4
    Reactions16
    Comments—

All posts of MQL5 Algo Trading