From c3b95677fe903cf5f65110fc1db722e9810ef591 Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Sat, 24 Aug 2024 19:38:24 +0330 Subject: [PATCH] last ... --- Parsers/x-saherelm.xch.che.parser.mq5 | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/Parsers/x-saherelm.xch.che.parser.mq5 b/Parsers/x-saherelm.xch.che.parser.mq5 index 5173cf94..39d58eb9 100644 --- a/Parsers/x-saherelm.xch.che.parser.mq5 +++ b/Parsers/x-saherelm.xch.che.parser.mq5 @@ -24,6 +24,9 @@ // Imports ... #include "../Strategies/x-saherelm.xch.che.strategy.mq5" +// +#include "./AMarkets/x-saherelm.xch.che.amarkets.parser.mq5" + // // Conditions Parser ... struct XCHCHEStartegyConditionsParser @@ -38,6 +41,9 @@ struct XCHCHEStartegyConditionsParser XSCAccount _account; XMarketParser _marketParser; + // + XCHCHEStartegyAMarketsConditionsParser _amarketsParser; + // string GenerateSignalConditions( XSignal &signal, @@ -992,27 +998,23 @@ struct XCHCHEStartegyConditionsParser bool isAMarkets = _marketParser.IsAMarkets(market); // - // bool isAMarketFiltered = _amarketsParser.IsFiltered( - // signal, - // conditions, - // force // - // ); + bool isAMarketFiltered = _amarketsParser.IsFiltered( + signal, + conditions, + force // + ); // if (!force) { - // result = isAMarketFiltered; + result = isAMarketFiltered; } else { // result = // - // isAMarketFiltered - // // - // || - // - false + isAMarketFiltered // ; }