<?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: Kais Bhir</title>
    <description>The latest articles on DEV Community by Kais Bhir (@kais_bhir_0d990fd84c6b2e1).</description>
    <link>https://dev.to/kais_bhir_0d990fd84c6b2e1</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3955322%2Fe9593418-1ed9-4fb3-bf03-ec3792f2a359.jpg</url>
      <title>DEV Community: Kais Bhir</title>
      <link>https://dev.to/kais_bhir_0d990fd84c6b2e1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kais_bhir_0d990fd84c6b2e1"/>
    <language>en</language>
    <item>
      <title>Building a Multi-Timeframe Smart Money Concepts Engine in MQL4 (Months of Work, Thousands of Zones)</title>
      <dc:creator>Kais Bhir</dc:creator>
      <pubDate>Wed, 27 May 2026 23:26:51 +0000</pubDate>
      <link>https://dev.to/kais_bhir_0d990fd84c6b2e1/building-a-multi-timeframe-smart-money-concepts-engine-in-mql4-months-of-work-thousands-of-zones-46pi</link>
      <guid>https://dev.to/kais_bhir_0d990fd84c6b2e1/building-a-multi-timeframe-smart-money-concepts-engine-in-mql4-months-of-work-thousands-of-zones-46pi</guid>
      <description>&lt;h1&gt;
  
  
  Building a Multi-Timeframe Market Structure Engine in MQL4
&lt;/h1&gt;

&lt;p&gt;Over the past few months, I’ve been building a large-scale Smart Money Concepts (SMC) research engine in MQL4 focused on detecting and tracking market structure across multiple timeframes.&lt;/p&gt;

&lt;p&gt;The project evolved from simple Fair Value Gap (FVG) detection into a complete visualization and backtesting system capable of handling:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fair Value Gaps (FVGs)&lt;/li&gt;
&lt;li&gt;Swing Highs / Swing Lows&lt;/li&gt;
&lt;li&gt;Swing Breaks&lt;/li&gt;
&lt;li&gt;Multi-timeframe confluence&lt;/li&gt;
&lt;li&gt;Bullish/Bearish zones&lt;/li&gt;
&lt;li&gt;“Golden Zones” (H4 zones merged with D1 structure)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One of the biggest challenges was engineering a proper zone lifecycle system inside MetaTrader 4:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;zone creation&lt;/li&gt;
&lt;li&gt;extension&lt;/li&gt;
&lt;li&gt;mitigation&lt;/li&gt;
&lt;li&gt;truncation&lt;/li&gt;
&lt;li&gt;invalidation&lt;/li&gt;
&lt;li&gt;object cleanup&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The goal was not simply generating buy/sell signals, but building a framework capable of analyzing which structural patterns remain statistically consistent across thousands of historical market scenarios.&lt;/p&gt;

&lt;p&gt;The project is now evolving toward:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;large-scale backtesting&lt;/li&gt;
&lt;li&gt;CSV-based analytics pipelines&lt;/li&gt;
&lt;li&gt;Python/vectorBT integration&lt;/li&gt;
&lt;li&gt;AI-assisted market pattern research&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Stack
&lt;/h3&gt;

&lt;p&gt;MQL4, Python, Pandas, Plotly, Dash, MetaTrader 4&lt;/p&gt;

</description>
      <category>automation</category>
      <category>forex</category>
      <category>machinelearning</category>
    </item>
  </channel>
</rss>
