{"id":164,"date":"2026-04-23T08:02:53","date_gmt":"2026-04-23T06:02:53","guid":{"rendered":"https:\/\/strony.info\/AdaptiveHybridSystem\/?p=164"},"modified":"2026-04-26T11:28:09","modified_gmt":"2026-04-26T09:28:09","slug":"strategies-detailed-algorithm-descriptions","status":"publish","type":"post","link":"https:\/\/strony.info\/AdaptiveHybridSystem\/2026\/04\/23\/strategies-detailed-algorithm-descriptions\/","title":{"rendered":"Strategies \u2014 Detailed Algorithm Descriptions"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"strategies\">3. Strategies \u2014 Detailed Algorithm Descriptions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">3.1 Smart DI (Directional Index)<\/h3>\n\n\n\n<p><strong>Concept:<\/strong>&nbsp;Measures the dominance of one market direction using the ADX indicator, analysing the difference between the DI+ and DI- lines.<\/p>\n\n\n\n<p><strong>Algorithm \u2014 step by step:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Fetches\u00a0<code>DI+<\/code>\u00a0and\u00a0<code>DI-<\/code>\u00a0values from ADX (buffer 1 \u2014 the previous closed bar, to avoid repainting)<\/li>\n\n\n\n<li>Calculates\u00a0<code>diff = |DI+ - DI-|<\/code><\/li>\n\n\n\n<li>Fetches data for the last closed candle on\u00a0<code>Inp_Strat_TF<\/code><\/li>\n\n\n\n<li>Calculates candle body size:\u00a0<code>body = |close - open| \/ _Point<\/code><\/li>\n\n\n\n<li><strong>If Impulse\/Muzzle Mode is active:<\/strong>\u00a0the minimum candle body requirement rises from\u00a0<code>Inp_Strat_Min_Candle_Body<\/code>\u00a0to\u00a0<code>Inp_Muzzle_Min_Candle_Body<\/code>\u00a0(default 150 pts instead of 2 pts) \u2014\u00a0<strong>the strategy\u2019s characteristics change during an impulse<\/strong><\/li>\n\n\n\n<li><strong>BUY signal:<\/strong>\u00a0<code>DI+ > DI-<\/code>\u00a0AND\u00a0<code>diff > Min_DI_Diff<\/code>\u00a0AND\u00a0<code>DI- &lt; Max_Opposite_DI<\/code><\/li>\n\n\n\n<li><strong>SELL signal:<\/strong>\u00a0<code>DI- > DI+<\/code>\u00a0AND\u00a0<code>diff > Min_DI_Diff<\/code>\u00a0AND\u00a0<code>DI+ &lt; Max_Opposite_DI<\/code><\/li>\n<\/ol>\n\n\n\n<p><strong>Log:<\/strong>&nbsp;<code>\"Smart DI BUY\"<\/code>&nbsp;\/&nbsp;<code>\"Smart DI SELL\"<\/code><\/p>\n\n\n\n<p><strong>Key property:<\/strong>&nbsp;The&nbsp;<code>Inp_Strat_Max_Opposite_DI<\/code>&nbsp;parameter limits opposition strength \u2014 even when DI+ dominates, an overly strong DI- blocks the signal. It acts as a built-in trend quality filter.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3.2 MTF Point System (Multi-TimeFrame)<\/h3>\n\n\n\n<p><strong>Concept:<\/strong>&nbsp;Scores trend alignment across 4 independent timeframes using EMA5\/EMA7 crossovers. Each timeframe earns one point; a minimum score threshold is required.<\/p>\n\n\n\n<p><strong>Algorithm \u2014 step by step:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>On each of the 4 timeframes (<code>TF1, TF2, TF3, TF4<\/code>), fetches EMA5 and EMA7<\/li>\n\n\n\n<li><strong>BUY point:<\/strong>\u00a0EMA5 > EMA7 on that TF \u2192 score++<\/li>\n\n\n\n<li><strong>SELL point:<\/strong>\u00a0EMA5 &lt; EMA7 on that TF \u2192 score++<\/li>\n\n\n\n<li>If\u00a0<code>score >= Inp_MTF_Min_Score<\/code>\u00a0(default 3 out of 4) \u2192 signal is active<\/li>\n<\/ol>\n\n\n\n<p><strong>Check condition:<\/strong>&nbsp;On every new bar of&nbsp;<code>Inp_MTF_TF1<\/code>&nbsp;(the fastest TF)<\/p>\n\n\n\n<p><strong>Log:<\/strong>&nbsp;<code>\"MTF BUY\"<\/code>&nbsp;\/&nbsp;<code>\"MTF SELL\"<\/code><\/p>\n\n\n\n<p><strong>Philosophy:<\/strong>&nbsp;The system does not require perfect alignment \u2014 even 3 out of 4 timeframes is sufficient. This provides flexibility in fluid markets where all timeframes rarely agree simultaneously.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3.3 Three Consecutive Candles<\/h3>\n\n\n\n<p><strong>Concept:<\/strong>&nbsp;Detects a mini-trend: 3 consecutive closed candles in the same direction with a minimum body size.<\/p>\n\n\n\n<p><strong>Algorithm \u2014 step by step:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Fetches the last 3 closed candles on\u00a0<code>Inp_Filter_3Candles_TF<\/code><\/li>\n\n\n\n<li>For each candle:\u00a0<code>body = |close - open| \/ _Point<\/code><\/li>\n\n\n\n<li>If any candle\u2019s body &lt;\u00a0<code>Inp_Filter_3Candles_MinBody<\/code>\u00a0\u2192 signal is invalid<\/li>\n\n\n\n<li><strong>BUY:<\/strong>\u00a0all 3 candles are bullish (<code>close > open<\/code>)<\/li>\n\n\n\n<li><strong>SELL:<\/strong>\u00a0all 3 candles are bearish (<code>close &lt; open<\/code>)<\/li>\n<\/ol>\n\n\n\n<p><strong>Log:<\/strong>&nbsp;<code>\"3 Candles BUY\"<\/code>&nbsp;\/&nbsp;<code>\"3 Candles SELL\"<\/code><\/p>\n\n\n\n<p><strong>Strength:<\/strong>&nbsp;Simple, visually intuitive, and highly effective as a validator \u2014 it confirms momentum before Smart DI or MTF fire their signals.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>3. Strategies \u2014 Detailed Algorithm Descriptions 3.1 Smart DI (Directional Index) Concept:&nbsp;Measures the dominance of one market direction using the ADX indicator, analysing the difference between the DI+ and DI- lines. Algorithm \u2014 step by step: Log:&nbsp;&#8220;Smart DI BUY&#8221;&nbsp;\/&nbsp;&#8220;Smart DI SELL&#8221; Key property:&nbsp;The&nbsp;Inp_Strat_Max_Opposite_DI&nbsp;parameter limits opposition strength \u2014 even when DI+ dominates, an overly strong DI- &hellip; <a href=\"https:\/\/strony.info\/AdaptiveHybridSystem\/2026\/04\/23\/strategies-detailed-algorithm-descriptions\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Strategies \u2014 Detailed Algorithm Descriptions<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[7,43,292,287,45,46,283,44,275,294,293,11,286,12,24,285,288,23,290,291,289,284],"class_list":["post-164","post","type-post","status-publish","format-standard","hentry","category-en","tag-adaptivehybridsystem","tag-adx","tag-algorithmictrading","tag-candlepattern","tag-diminus","tag-diplus","tag-directionalindex","tag-ema5ema7","tag-en","tag-filterlogic","tag-marketstructure","tag-metatrader5","tag-momentumdetection","tag-mql5","tag-mtfpointsystem","tag-multitimeframeanalysis","tag-signalvalidation","tag-smartdi","tag-threeconsecutivecandles","tag-tradingstrategies","tag-trenddetection","tag-trendscoring"],"_links":{"self":[{"href":"https:\/\/strony.info\/AdaptiveHybridSystem\/wp-json\/wp\/v2\/posts\/164","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/strony.info\/AdaptiveHybridSystem\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/strony.info\/AdaptiveHybridSystem\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/strony.info\/AdaptiveHybridSystem\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/strony.info\/AdaptiveHybridSystem\/wp-json\/wp\/v2\/comments?post=164"}],"version-history":[{"count":1,"href":"https:\/\/strony.info\/AdaptiveHybridSystem\/wp-json\/wp\/v2\/posts\/164\/revisions"}],"predecessor-version":[{"id":290,"href":"https:\/\/strony.info\/AdaptiveHybridSystem\/wp-json\/wp\/v2\/posts\/164\/revisions\/290"}],"wp:attachment":[{"href":"https:\/\/strony.info\/AdaptiveHybridSystem\/wp-json\/wp\/v2\/media?parent=164"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/strony.info\/AdaptiveHybridSystem\/wp-json\/wp\/v2\/categories?post=164"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/strony.info\/AdaptiveHybridSystem\/wp-json\/wp\/v2\/tags?post=164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}