<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: crescent</title>
    <description>The latest articles on DEV Community by crescent (@crxscent).</description>
    <link>https://dev.to/crxscent</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4274749%2F394f2a28-7cdd-4afc-ba56-9498ea75d895.jpg</url>
      <title>DEV Community: crescent</title>
      <link>https://dev.to/crxscent</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/crxscent"/>
    <language>en</language>
    <item>
      <title>Rebuilding trades from a balance curve skews profit factor: 91 MQL5 signals checked</title>
      <dc:creator>crescent</dc:creator>
      <pubDate>Mon, 30 Nov 2026 16:44:25 +0000</pubDate>
      <link>https://dev.to/crxscent/rebuilding-trades-from-a-balance-curve-skews-profit-factor-91-mql5-signals-checked-5hh6</link>
      <guid>https://dev.to/crxscent/rebuilding-trades-from-a-balance-curve-skews-profit-factor-91-mql5-signals-checked-5hh6</guid>
      <description>&lt;p&gt;I run stratatester.com, a free tool that audits MT5 reports and trading signals. It grades each one from A to F, flags patterns such as grid, martingale and held losers, runs EAs on real Exness bid/ask ticks, and estimates prop-challenge pass odds. Because the tool accepts public MQL5 signal links, I had to answer a question I had been avoiding: how much can you trust a signal's statistics when all you can see is the balance curve?&lt;/p&gt;

&lt;p&gt;The short answer is that the curve is not enough, and the error is not random. It is largest in exactly the strategies people most want to evaluate.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the public page shows
&lt;/h2&gt;

&lt;p&gt;The MQL5 signal page exposes the balance curve without a login. Each step on that curve looks like one closed trade. If you rebuild trades from those steps, you get a trade list, and from that a profit factor.&lt;/p&gt;

&lt;p&gt;The problem is that positions closed in the same second merge into a single step. A losing leg hidden inside a basket can disappear into a net step that looks like a small win or a small loss. Gross profit and gross loss are both computed from those steps, so the profit factor you derive is not the one the trades actually produce.&lt;/p&gt;

&lt;p&gt;The full position list is available through History &amp;gt; Export to CSV, but that needs a login.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checking 91 signals against full exports
&lt;/h2&gt;

&lt;p&gt;I downloaded the full exports for 91 signals and re-audited each one. The trade count matched MQL5's own count on 87 of 91, and profit factor was within 10% on 83 of 91. That sounds good until you look at the misses, because the misses are where the decisions go wrong.&lt;/p&gt;

&lt;p&gt;I also compared 25 signals directly: profit factor computed from the balance curve against the profit factor MQL5 displays. The median ratio was about 1.0. The median hid the rest:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Harmonizer: 5.24 from the curve, 1.95 on MQL5.&lt;/li&gt;
&lt;li&gt;Ethereum Beast: 17.5 from the curve, 6.6 on MQL5.&lt;/li&gt;
&lt;li&gt;Hedgehog: 43 from the curve, 33 on MQL5.&lt;/li&gt;
&lt;li&gt;Quantum Emperor: 2.84 from the curve, 2.06 on MQL5.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The error also runs the other way. Gold Beaver showed 4.86 from the curve and 8.02 on MQL5. Merging can understate a profit factor as easily as it inflates one, depending on which legs are collapsed.&lt;/p&gt;

&lt;h2&gt;
  
  
  The case that changed my process
&lt;/h2&gt;

&lt;p&gt;Quantum Emperor is the one that convinced me. From the balance curve, my audit gave it an A or B. When I audited the full export of 1211 positions, it received an F, with flags for grid structure, lot increases after losses, and a fat loss tail. The structure was simply invisible until the individual positions were visible.&lt;/p&gt;

&lt;p&gt;Grid and averaging baskets are the exact pattern that produces merged steps. Many positions open at different prices and close together when the basket hits its target or stop. A curve sees one step. The position list sees twenty losers and one winner.&lt;/p&gt;

&lt;h2&gt;
  
  
  A toy version of the merge
&lt;/h2&gt;

&lt;p&gt;Five positions; two close in the same second, and one of those is a loss that the curve will hide.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;itertools&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;groupby&lt;/span&gt;

&lt;span class="c1"&gt;# (close_time, profit) sorted by close time&lt;/span&gt;
&lt;span class="n"&gt;positions&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"2026-03-02 10:00:01"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;40.0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"2026-03-02 10:05:00"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;60.0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="c1"&gt;# basket leg, loss&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"2026-03-02 10:05:00"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;30.0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;   &lt;span class="c1"&gt;# same second, win&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"2026-03-02 10:12:44"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;20.0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"2026-03-02 10:30:10"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;50.0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;profit_factor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pnls&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;gross_profit&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;pnls&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;gross_loss&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nb"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;pnls&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;gross_profit&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;gross_loss&lt;/span&gt;

&lt;span class="n"&gt;per_position&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;positions&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="c1"&gt;# Balance-curve view: everything closed in the same second is one step&lt;/span&gt;
&lt;span class="n"&gt;merged&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nb"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;group&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
          &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;group&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;groupby&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;positions&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"per-position PF:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;profit_factor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;per_position&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# 1.5&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"per-step PF:   "&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;profit_factor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;merged&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;         &lt;span class="c1"&gt;# 1.8&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The step at 10:05 nets -60 and +30 into -30, so a loss of 60 is reported as 30. Nothing in the curve tells you that a 60 loss happened at all. Scale this to a grid with dozens of legs per cycle and the distortion stops being small.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I changed
&lt;/h2&gt;

&lt;p&gt;First, link audits now pull MQL5's own trade count and profit factor from the signal page. If my reconstruction differs by more than 15%, the audit flags it.&lt;/p&gt;

&lt;p&gt;Second, when a full position export is known, the audit uses it instead of the curve.&lt;/p&gt;

&lt;p&gt;Third, when only the curve is available, the report says the structure is unknown. It does not guess that a strategy is clean because the curve looks smooth.&lt;/p&gt;

&lt;p&gt;The lesson: a median across signals is the wrong summary here. The signals where the curve misleads you are the ones with baskets, grids and averaging, and those are the ones a careful evaluator most needs to get right. Use per-position data whenever you can, cross-check any curve-derived number against the platform's own statistics, and mark structure as unknown when you cannot see it.&lt;/p&gt;

&lt;p&gt;You can paste a signal link or upload a CSV at &lt;a href="https://stratatester.com/?src=devto" rel="noopener noreferrer"&gt;https://stratatester.com/?src=devto&lt;/a&gt;&lt;/p&gt;

</description>
      <category>trading</category>
      <category>python</category>
      <category>datascience</category>
      <category>algorithms</category>
    </item>
  </channel>
</rss>
