From fe6f69900fd56a9106bb420da10a7c91b8ed9c42 Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Fri, 23 Aug 2024 04:06:30 +0330 Subject: [PATCH] last ... --- Parsers/AMarkets/.gitkeep | 0 ...elm.xch.amarkets.us30.2019.long.parser.mq5 | 54 +++++++++++++++++++ ...lm.xch.amarkets.us30.2019.short.parser.mq5 | 54 +++++++++++++++++++ ...elm.xch.amarkets.us30.olds.long.parser.mq5 | 54 +++++++++++++++++++ ...lm.xch.amarkets.us30.olds.short.parser.mq5 | 54 +++++++++++++++++++ ...saherelm.xch.amarkets.us30.long.parser.mq5 | 35 +++++++++--- ...aherelm.xch.amarkets.us30.short.parser.mq5 | 34 +++++++++--- ...m.xch.amarkets.eurcad.2019.long.parser.mq5 | 54 +++++++++++++++++++ ....xch.amarkets.eurcad.2019.short.parser.mq5 | 54 +++++++++++++++++++ ...m.xch.amarkets.eurcad.olds.long.parser.mq5 | 54 +++++++++++++++++++ ....xch.amarkets.eurcad.olds.short.parser.mq5 | 54 +++++++++++++++++++ ...herelm.xch.amarkets.eurcad.long.parser.mq5 | 34 +++++++++--- ...erelm.xch.amarkets.eurcad.short.parser.mq5 | 34 +++++++++--- ...m.xch.amarkets.eurchf.2019.long.parser.mq5 | 54 +++++++++++++++++++ ....xch.amarkets.eurchf.2019.short.parser.mq5 | 54 +++++++++++++++++++ ...m.xch.amarkets.eurchf.olds.long.parser.mq5 | 54 +++++++++++++++++++ ....xch.amarkets.eurchf.olds.short.parser.mq5 | 54 +++++++++++++++++++ ...herelm.xch.amarkets.eurchf.long.parser.mq5 | 34 +++++++++--- ...erelm.xch.amarkets.eurchf.short.parser.mq5 | 34 +++++++++--- ...herelm.xch.amarkets.eurgbp.long.parser.mq5 | 54 +++++++++++++++++++ ...erelm.xch.amarkets.eurgbp.short.parser.mq5 | 54 +++++++++++++++++++ ...herelm.xch.amarkets.eurgbp.long.parser.mq5 | 54 +++++++++++++++++++ ...erelm.xch.amarkets.eurgbp.short.parser.mq5 | 54 +++++++++++++++++++ ...herelm.xch.amarkets.eurgbp.long.parser.mq5 | 34 +++++++++--- ...erelm.xch.amarkets.eurgbp.short.parser.mq5 | 34 +++++++++--- ...herelm.xch.amarkets.eurjpy.long.parser.mq5 | 54 +++++++++++++++++++ ...erelm.xch.amarkets.eurjpy.short.parser.mq5 | 54 +++++++++++++++++++ ...herelm.xch.amarkets.eurjpy.long.parser.mq5 | 54 +++++++++++++++++++ ...erelm.xch.amarkets.eurjpy.short.parser.mq5 | 54 +++++++++++++++++++ ...herelm.xch.amarkets.eurjpy.long.parser.mq5 | 34 +++++++++--- ...erelm.xch.amarkets.eurjpy.short.parser.mq5 | 34 +++++++++--- ...herelm.xch.amarkets.eurusd.long.parser.mq5 | 54 +++++++++++++++++++ ...erelm.xch.amarkets.eurusd.short.parser.mq5 | 54 +++++++++++++++++++ ...herelm.xch.amarkets.eurusd.long.parser.mq5 | 54 +++++++++++++++++++ ...erelm.xch.amarkets.eurusd.short.parser.mq5 | 54 +++++++++++++++++++ ...herelm.xch.amarkets.eurusd.long.parser.mq5 | 34 +++++++++--- ...erelm.xch.amarkets.eurusd.short.parser.mq5 | 34 +++++++++--- ...herelm.xch.amarkets.gbpusd.long.parser.mq5 | 54 +++++++++++++++++++ ...erelm.xch.amarkets.gbpusd.short.parser.mq5 | 54 +++++++++++++++++++ ...herelm.xch.amarkets.gbpusd.long.parser.mq5 | 54 +++++++++++++++++++ ...erelm.xch.amarkets.gbpusd.short.parser.mq5 | 54 +++++++++++++++++++ ...herelm.xch.amarkets.gbpusd.long.parser.mq5 | 34 +++++++++--- ...erelm.xch.amarkets.gbpusd.short.parser.mq5 | 34 +++++++++--- ...herelm.xch.amarkets.nzdusd.long.parser.mq5 | 54 +++++++++++++++++++ ...erelm.xch.amarkets.nzdusd.short.parser.mq5 | 54 +++++++++++++++++++ ...herelm.xch.amarkets.nzdusd.long.parser.mq5 | 54 +++++++++++++++++++ ...erelm.xch.amarkets.nzdusd.short.parser.mq5 | 54 +++++++++++++++++++ ...herelm.xch.amarkets.nzdusd.long.parser.mq5 | 34 +++++++++--- ...erelm.xch.amarkets.nzdusd.short.parser.mq5 | 34 +++++++++--- ...herelm.xch.amarkets.usdcad.long.parser.mq5 | 54 +++++++++++++++++++ ...erelm.xch.amarkets.usdcad.short.parser.mq5 | 54 +++++++++++++++++++ ...herelm.xch.amarkets.usdcad.long.parser.mq5 | 54 +++++++++++++++++++ ...erelm.xch.amarkets.usdcad.short.parser.mq5 | 54 +++++++++++++++++++ ...herelm.xch.amarkets.usdcad.long.parser.mq5 | 34 +++++++++--- ...erelm.xch.amarkets.usdcad.short.parser.mq5 | 34 +++++++++--- ...herelm.xch.amarkets.usdchf.long.parser.mq5 | 54 +++++++++++++++++++ ...erelm.xch.amarkets.usdchf.short.parser.mq5 | 54 +++++++++++++++++++ ...herelm.xch.amarkets.usdchf.long.parser.mq5 | 54 +++++++++++++++++++ ...erelm.xch.amarkets.usdchf.short.parser.mq5 | 54 +++++++++++++++++++ ...herelm.xch.amarkets.usdchf.long.parser.mq5 | 32 +++++++++-- ...erelm.xch.amarkets.usdchf.short.parser.mq5 | 34 +++++++++--- ...herelm.xch.amarkets.usdjpy.long.parser.mq5 | 54 +++++++++++++++++++ ...erelm.xch.amarkets.usdjpy.short.parser.mq5 | 54 +++++++++++++++++++ ...herelm.xch.amarkets.usdjpy.long.parser.mq5 | 54 +++++++++++++++++++ ...erelm.xch.amarkets.usdjpy.short.parser.mq5 | 54 +++++++++++++++++++ ...herelm.xch.amarkets.usdjpy.long.parser.mq5 | 34 +++++++++--- ...erelm.xch.amarkets.usdjpy.short.parser.mq5 | 34 +++++++++--- ...herelm.xch.amarkets.xauusd.long.parser.mq5 | 54 +++++++++++++++++++ ...erelm.xch.amarkets.xauusd.short.parser.mq5 | 54 +++++++++++++++++++ ...herelm.xch.amarkets.xauusd.long.parser.mq5 | 54 +++++++++++++++++++ ...erelm.xch.amarkets.xauusd.short.parser.mq5 | 54 +++++++++++++++++++ ...herelm.xch.amarkets.xauusd.long.parser.mq5 | 34 +++++++++--- ...erelm.xch.amarkets.xauusd.short.parser.mq5 | 33 ++++++++++-- 73 files changed, 3264 insertions(+), 142 deletions(-) delete mode 100644 Parsers/AMarkets/.gitkeep create mode 100644 Parsers/AMarkets/DowJones/2019/x-saherelm.xch.amarkets.us30.2019.long.parser.mq5 create mode 100644 Parsers/AMarkets/DowJones/2019/x-saherelm.xch.amarkets.us30.2019.short.parser.mq5 create mode 100644 Parsers/AMarkets/DowJones/Olds/x-saherelm.xch.amarkets.us30.olds.long.parser.mq5 create mode 100644 Parsers/AMarkets/DowJones/Olds/x-saherelm.xch.amarkets.us30.olds.short.parser.mq5 create mode 100644 Parsers/AMarkets/EURCAD/2019/x-saherelm.xch.amarkets.eurcad.2019.long.parser.mq5 create mode 100644 Parsers/AMarkets/EURCAD/2019/x-saherelm.xch.amarkets.eurcad.2019.short.parser.mq5 create mode 100644 Parsers/AMarkets/EURCAD/Olds/x-saherelm.xch.amarkets.eurcad.olds.long.parser.mq5 create mode 100644 Parsers/AMarkets/EURCAD/Olds/x-saherelm.xch.amarkets.eurcad.olds.short.parser.mq5 create mode 100644 Parsers/AMarkets/EURCHF/2019/x-saherelm.xch.amarkets.eurchf.2019.long.parser.mq5 create mode 100644 Parsers/AMarkets/EURCHF/2019/x-saherelm.xch.amarkets.eurchf.2019.short.parser.mq5 create mode 100644 Parsers/AMarkets/EURCHF/Olds/x-saherelm.xch.amarkets.eurchf.olds.long.parser.mq5 create mode 100644 Parsers/AMarkets/EURCHF/Olds/x-saherelm.xch.amarkets.eurchf.olds.short.parser.mq5 create mode 100644 Parsers/AMarkets/EURGBP/2019/x-saherelm.xch.amarkets.eurgbp.long.parser.mq5 create mode 100644 Parsers/AMarkets/EURGBP/2019/x-saherelm.xch.amarkets.eurgbp.short.parser.mq5 create mode 100644 Parsers/AMarkets/EURGBP/Olds/x-saherelm.xch.amarkets.eurgbp.long.parser.mq5 create mode 100644 Parsers/AMarkets/EURGBP/Olds/x-saherelm.xch.amarkets.eurgbp.short.parser.mq5 create mode 100644 Parsers/AMarkets/EURJPY/2019/x-saherelm.xch.amarkets.eurjpy.long.parser.mq5 create mode 100644 Parsers/AMarkets/EURJPY/2019/x-saherelm.xch.amarkets.eurjpy.short.parser.mq5 create mode 100644 Parsers/AMarkets/EURJPY/Olds/x-saherelm.xch.amarkets.eurjpy.long.parser.mq5 create mode 100644 Parsers/AMarkets/EURJPY/Olds/x-saherelm.xch.amarkets.eurjpy.short.parser.mq5 create mode 100644 Parsers/AMarkets/EURUSD/2019/x-saherelm.xch.amarkets.eurusd.long.parser.mq5 create mode 100644 Parsers/AMarkets/EURUSD/2019/x-saherelm.xch.amarkets.eurusd.short.parser.mq5 create mode 100644 Parsers/AMarkets/EURUSD/Olds/x-saherelm.xch.amarkets.eurusd.long.parser.mq5 create mode 100644 Parsers/AMarkets/EURUSD/Olds/x-saherelm.xch.amarkets.eurusd.short.parser.mq5 create mode 100644 Parsers/AMarkets/GBPUSD/2019/x-saherelm.xch.amarkets.gbpusd.long.parser.mq5 create mode 100644 Parsers/AMarkets/GBPUSD/2019/x-saherelm.xch.amarkets.gbpusd.short.parser.mq5 create mode 100644 Parsers/AMarkets/GBPUSD/Olds/x-saherelm.xch.amarkets.gbpusd.long.parser.mq5 create mode 100644 Parsers/AMarkets/GBPUSD/Olds/x-saherelm.xch.amarkets.gbpusd.short.parser.mq5 create mode 100644 Parsers/AMarkets/NZDUSD/2019/x-saherelm.xch.amarkets.nzdusd.long.parser.mq5 create mode 100644 Parsers/AMarkets/NZDUSD/2019/x-saherelm.xch.amarkets.nzdusd.short.parser.mq5 create mode 100644 Parsers/AMarkets/NZDUSD/Olds/x-saherelm.xch.amarkets.nzdusd.long.parser.mq5 create mode 100644 Parsers/AMarkets/NZDUSD/Olds/x-saherelm.xch.amarkets.nzdusd.short.parser.mq5 create mode 100644 Parsers/AMarkets/USDCAD/2019/x-saherelm.xch.amarkets.usdcad.long.parser.mq5 create mode 100644 Parsers/AMarkets/USDCAD/2019/x-saherelm.xch.amarkets.usdcad.short.parser.mq5 create mode 100644 Parsers/AMarkets/USDCAD/Olds/x-saherelm.xch.amarkets.usdcad.long.parser.mq5 create mode 100644 Parsers/AMarkets/USDCAD/Olds/x-saherelm.xch.amarkets.usdcad.short.parser.mq5 create mode 100644 Parsers/AMarkets/USDCHF/2019/x-saherelm.xch.amarkets.usdchf.long.parser.mq5 create mode 100644 Parsers/AMarkets/USDCHF/2019/x-saherelm.xch.amarkets.usdchf.short.parser.mq5 create mode 100644 Parsers/AMarkets/USDCHF/Olds/x-saherelm.xch.amarkets.usdchf.long.parser.mq5 create mode 100644 Parsers/AMarkets/USDCHF/Olds/x-saherelm.xch.amarkets.usdchf.short.parser.mq5 create mode 100644 Parsers/AMarkets/USDJPY/2019/x-saherelm.xch.amarkets.usdjpy.long.parser.mq5 create mode 100644 Parsers/AMarkets/USDJPY/2019/x-saherelm.xch.amarkets.usdjpy.short.parser.mq5 create mode 100644 Parsers/AMarkets/USDJPY/Olds/x-saherelm.xch.amarkets.usdjpy.long.parser.mq5 create mode 100644 Parsers/AMarkets/USDJPY/Olds/x-saherelm.xch.amarkets.usdjpy.short.parser.mq5 create mode 100644 Parsers/AMarkets/XAUUSD/2019/x-saherelm.xch.amarkets.xauusd.long.parser.mq5 create mode 100644 Parsers/AMarkets/XAUUSD/2019/x-saherelm.xch.amarkets.xauusd.short.parser.mq5 create mode 100644 Parsers/AMarkets/XAUUSD/Olds/x-saherelm.xch.amarkets.xauusd.long.parser.mq5 create mode 100644 Parsers/AMarkets/XAUUSD/Olds/x-saherelm.xch.amarkets.xauusd.short.parser.mq5 diff --git a/Parsers/AMarkets/.gitkeep b/Parsers/AMarkets/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/Parsers/AMarkets/DowJones/2019/x-saherelm.xch.amarkets.us30.2019.long.parser.mq5 b/Parsers/AMarkets/DowJones/2019/x-saherelm.xch.amarkets.us30.2019.long.parser.mq5 new file mode 100644 index 00000000..7fc5a72d --- /dev/null +++ b/Parsers/AMarkets/DowJones/2019/x-saherelm.xch.amarkets.us30.2019.long.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsUS302019LongConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/DowJones/2019/x-saherelm.xch.amarkets.us30.2019.short.parser.mq5 b/Parsers/AMarkets/DowJones/2019/x-saherelm.xch.amarkets.us30.2019.short.parser.mq5 new file mode 100644 index 00000000..0d07225c --- /dev/null +++ b/Parsers/AMarkets/DowJones/2019/x-saherelm.xch.amarkets.us30.2019.short.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsUS302019ShortConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/DowJones/Olds/x-saherelm.xch.amarkets.us30.olds.long.parser.mq5 b/Parsers/AMarkets/DowJones/Olds/x-saherelm.xch.amarkets.us30.olds.long.parser.mq5 new file mode 100644 index 00000000..10764833 --- /dev/null +++ b/Parsers/AMarkets/DowJones/Olds/x-saherelm.xch.amarkets.us30.olds.long.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsUS30OldsLongConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/DowJones/Olds/x-saherelm.xch.amarkets.us30.olds.short.parser.mq5 b/Parsers/AMarkets/DowJones/Olds/x-saherelm.xch.amarkets.us30.olds.short.parser.mq5 new file mode 100644 index 00000000..c8bd1672 --- /dev/null +++ b/Parsers/AMarkets/DowJones/Olds/x-saherelm.xch.amarkets.us30.olds.short.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsUS30OldsShortConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/DowJones/x-saherelm.xch.amarkets.us30.long.parser.mq5 b/Parsers/AMarkets/DowJones/x-saherelm.xch.amarkets.us30.long.parser.mq5 index 932bd7b7..1dc46a96 100644 --- a/Parsers/AMarkets/DowJones/x-saherelm.xch.amarkets.us30.long.parser.mq5 +++ b/Parsers/AMarkets/DowJones/x-saherelm.xch.amarkets.us30.long.parser.mq5 @@ -24,27 +24,50 @@ // Imports ... #include "../../../Strategies/x-saherelm.xch.strategy.mq5" +// +#include "./Olds/x-saherelm.xch.amarkets.us30.olds.long.parser.mq5" +#include "./2019/x-saherelm.xch.amarkets.us30.2019.long.parser.mq5" + // // Conditions Parser ... struct XCHStartegyAMarketsUS30LongConditionsParser { // string _version; - + + // + XCHStartegyAMarketsUS30OldsLongConditionsParser _oldsParser; + XCHStartegyAMarketsUS302019LongConditionsParser _2019Parser; + // bool IsFiltered( - XCHStrategyConditions &conditions // + XSignal &signal, + XCHStrategyConditions &conditions, + bool force = true // ) { // bool result = false; // - result = + if (!force) + { + result = _2019Parser.IsFiltered(conditions); + } + else + { // - false - // - ; + result = + // + _2019Parser.IsFiltered(conditions) + // + || + // + _oldsParser.IsFiltered(conditions) + // + ; + } + // return result; diff --git a/Parsers/AMarkets/DowJones/x-saherelm.xch.amarkets.us30.short.parser.mq5 b/Parsers/AMarkets/DowJones/x-saherelm.xch.amarkets.us30.short.parser.mq5 index 3fc91921..b5a2e9a0 100644 --- a/Parsers/AMarkets/DowJones/x-saherelm.xch.amarkets.us30.short.parser.mq5 +++ b/Parsers/AMarkets/DowJones/x-saherelm.xch.amarkets.us30.short.parser.mq5 @@ -24,27 +24,49 @@ // Imports ... #include "../../../Strategies/x-saherelm.xch.strategy.mq5" +// +#include "./Olds/x-saherelm.xch.amarkets.us30.olds.short.parser.mq5" +#include "./2019/x-saherelm.xch.amarkets.us30.2019.short.parser.mq5" + // // Conditions Parser ... struct XCHStartegyAMarketsUS30ShortConditionsParser { // string _version; - + + // + XCHStartegyAMarketsUS30OldsShortConditionsParser _oldsParser; + XCHStartegyAMarketsUS302019ShortConditionsParser _2019Parser; + // bool IsFiltered( - XCHStrategyConditions &conditions // + XSignal &signal, + XCHStrategyConditions &conditions, + bool force = true // ) { // bool result = false; // - result = + if (!force) + { + result = _2019Parser.IsFiltered(conditions); + } + else + { // - false - // - ; + result = + // + _2019Parser.IsFiltered(conditions) + // + || + // + _oldsParser.IsFiltered(conditions) + // + ; + } // return result; diff --git a/Parsers/AMarkets/EURCAD/2019/x-saherelm.xch.amarkets.eurcad.2019.long.parser.mq5 b/Parsers/AMarkets/EURCAD/2019/x-saherelm.xch.amarkets.eurcad.2019.long.parser.mq5 new file mode 100644 index 00000000..f380639c --- /dev/null +++ b/Parsers/AMarkets/EURCAD/2019/x-saherelm.xch.amarkets.eurcad.2019.long.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsEURCAD2019LongConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/EURCAD/2019/x-saherelm.xch.amarkets.eurcad.2019.short.parser.mq5 b/Parsers/AMarkets/EURCAD/2019/x-saherelm.xch.amarkets.eurcad.2019.short.parser.mq5 new file mode 100644 index 00000000..4d1c1f63 --- /dev/null +++ b/Parsers/AMarkets/EURCAD/2019/x-saherelm.xch.amarkets.eurcad.2019.short.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsEURCAD2019ShortConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/EURCAD/Olds/x-saherelm.xch.amarkets.eurcad.olds.long.parser.mq5 b/Parsers/AMarkets/EURCAD/Olds/x-saherelm.xch.amarkets.eurcad.olds.long.parser.mq5 new file mode 100644 index 00000000..83102459 --- /dev/null +++ b/Parsers/AMarkets/EURCAD/Olds/x-saherelm.xch.amarkets.eurcad.olds.long.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsEURCADOldsLongConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/EURCAD/Olds/x-saherelm.xch.amarkets.eurcad.olds.short.parser.mq5 b/Parsers/AMarkets/EURCAD/Olds/x-saherelm.xch.amarkets.eurcad.olds.short.parser.mq5 new file mode 100644 index 00000000..a4547daf --- /dev/null +++ b/Parsers/AMarkets/EURCAD/Olds/x-saherelm.xch.amarkets.eurcad.olds.short.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsEURCADOldsShortConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/EURCAD/x-saherelm.xch.amarkets.eurcad.long.parser.mq5 b/Parsers/AMarkets/EURCAD/x-saherelm.xch.amarkets.eurcad.long.parser.mq5 index 4f99c03f..6b7e83f6 100644 --- a/Parsers/AMarkets/EURCAD/x-saherelm.xch.amarkets.eurcad.long.parser.mq5 +++ b/Parsers/AMarkets/EURCAD/x-saherelm.xch.amarkets.eurcad.long.parser.mq5 @@ -24,27 +24,49 @@ // Imports ... #include "../../../Strategies/x-saherelm.xch.strategy.mq5" +// +#include "./Olds/x-saherelm.xch.amarkets.eurcad.olds.long.parser.mq5" +#include "./2019/x-saherelm.xch.amarkets.eurcad.2019.long.parser.mq5" + // // Conditions Parser ... struct XCHStartegyAMarketsEURCADLongConditionsParser { // string _version; - + + // + XCHStartegyAMarketsEURCADOldsLongConditionsParser _oldsParser; + XCHStartegyAMarketsEURCAD2019LongConditionsParser _2019Parser; + // bool IsFiltered( - XCHStrategyConditions &conditions // + XSignal &signal, + XCHStrategyConditions &conditions, + bool force = true // ) { // bool result = false; // - result = + if (!force) + { + result = _2019Parser.IsFiltered(conditions); + } + else + { // - false - // - ; + result = + // + _2019Parser.IsFiltered(conditions) + // + || + // + _oldsParser.IsFiltered(conditions) + // + ; + } // return result; diff --git a/Parsers/AMarkets/EURCAD/x-saherelm.xch.amarkets.eurcad.short.parser.mq5 b/Parsers/AMarkets/EURCAD/x-saherelm.xch.amarkets.eurcad.short.parser.mq5 index 52706eb8..651bae58 100644 --- a/Parsers/AMarkets/EURCAD/x-saherelm.xch.amarkets.eurcad.short.parser.mq5 +++ b/Parsers/AMarkets/EURCAD/x-saherelm.xch.amarkets.eurcad.short.parser.mq5 @@ -24,27 +24,49 @@ // Imports ... #include "../../../Strategies/x-saherelm.xch.strategy.mq5" +// +#include "./Olds/x-saherelm.xch.amarkets.eurcad.olds.short.parser.mq5" +#include "./2019/x-saherelm.xch.amarkets.eurcad.2019.short.parser.mq5" + // // Conditions Parser ... struct XCHStartegyAMarketsEURCADShortConditionsParser { // string _version; - + + // + XCHStartegyAMarketsEURCADOldsShortConditionsParser _oldsParser; + XCHStartegyAMarketsEURCAD2019ShortConditionsParser _2019Parser; + // bool IsFiltered( - XCHStrategyConditions &conditions // + XSignal &signal, + XCHStrategyConditions &conditions, + bool force = true // ) { // bool result = false; // - result = + if (!force) + { + result = _2019Parser.IsFiltered(conditions); + } + else + { // - false - // - ; + result = + // + _2019Parser.IsFiltered(conditions) + // + || + // + _oldsParser.IsFiltered(conditions) + // + ; + } // return result; diff --git a/Parsers/AMarkets/EURCHF/2019/x-saherelm.xch.amarkets.eurchf.2019.long.parser.mq5 b/Parsers/AMarkets/EURCHF/2019/x-saherelm.xch.amarkets.eurchf.2019.long.parser.mq5 new file mode 100644 index 00000000..3d0ad190 --- /dev/null +++ b/Parsers/AMarkets/EURCHF/2019/x-saherelm.xch.amarkets.eurchf.2019.long.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsEURCHF2019LongConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/EURCHF/2019/x-saherelm.xch.amarkets.eurchf.2019.short.parser.mq5 b/Parsers/AMarkets/EURCHF/2019/x-saherelm.xch.amarkets.eurchf.2019.short.parser.mq5 new file mode 100644 index 00000000..0d571223 --- /dev/null +++ b/Parsers/AMarkets/EURCHF/2019/x-saherelm.xch.amarkets.eurchf.2019.short.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsEURCHF2019ShortConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/EURCHF/Olds/x-saherelm.xch.amarkets.eurchf.olds.long.parser.mq5 b/Parsers/AMarkets/EURCHF/Olds/x-saherelm.xch.amarkets.eurchf.olds.long.parser.mq5 new file mode 100644 index 00000000..8ad07ab4 --- /dev/null +++ b/Parsers/AMarkets/EURCHF/Olds/x-saherelm.xch.amarkets.eurchf.olds.long.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsEURCHFOldsLongConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/EURCHF/Olds/x-saherelm.xch.amarkets.eurchf.olds.short.parser.mq5 b/Parsers/AMarkets/EURCHF/Olds/x-saherelm.xch.amarkets.eurchf.olds.short.parser.mq5 new file mode 100644 index 00000000..b0d8150d --- /dev/null +++ b/Parsers/AMarkets/EURCHF/Olds/x-saherelm.xch.amarkets.eurchf.olds.short.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsEURCHFOldsShortConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/EURCHF/x-saherelm.xch.amarkets.eurchf.long.parser.mq5 b/Parsers/AMarkets/EURCHF/x-saherelm.xch.amarkets.eurchf.long.parser.mq5 index 5c190b98..3cf82fa0 100644 --- a/Parsers/AMarkets/EURCHF/x-saherelm.xch.amarkets.eurchf.long.parser.mq5 +++ b/Parsers/AMarkets/EURCHF/x-saherelm.xch.amarkets.eurchf.long.parser.mq5 @@ -24,27 +24,49 @@ // Imports ... #include "../../../Strategies/x-saherelm.xch.strategy.mq5" +// +#include "./Olds/x-saherelm.xch.amarkets.eurchf.olds.long.parser.mq5" +#include "./2019/x-saherelm.xch.amarkets.eurchf.2019.long.parser.mq5" + // // Conditions Parser ... struct XCHStartegyAMarketsEURCHFLongConditionsParser { // string _version; - + + // + XCHStartegyAMarketsEURCHFOldsLongConditionsParser _oldsParser; + XCHStartegyAMarketsEURCHF2019LongConditionsParser _2019Parser; + // bool IsFiltered( - XCHStrategyConditions &conditions // + XSignal &signal, + XCHStrategyConditions &conditions, + bool force = true // ) { // bool result = false; // - result = + if (!force) + { + result = _2019Parser.IsFiltered(conditions); + } + else + { // - false - // - ; + result = + // + _2019Parser.IsFiltered(conditions) + // + || + // + _oldsParser.IsFiltered(conditions) + // + ; + } // return result; diff --git a/Parsers/AMarkets/EURCHF/x-saherelm.xch.amarkets.eurchf.short.parser.mq5 b/Parsers/AMarkets/EURCHF/x-saherelm.xch.amarkets.eurchf.short.parser.mq5 index 2a3c22f2..e08dfb4f 100644 --- a/Parsers/AMarkets/EURCHF/x-saherelm.xch.amarkets.eurchf.short.parser.mq5 +++ b/Parsers/AMarkets/EURCHF/x-saherelm.xch.amarkets.eurchf.short.parser.mq5 @@ -24,27 +24,49 @@ // Imports ... #include "../../../Strategies/x-saherelm.xch.strategy.mq5" +// +#include "./Olds/x-saherelm.xch.amarkets.eurchf.olds.short.parser.mq5" +#include "./2019/x-saherelm.xch.amarkets.eurchf.2019.short.parser.mq5" + // // Conditions Parser ... struct XCHStartegyAMarketsEURCHFShortConditionsParser { // string _version; - + + // + XCHStartegyAMarketsEURCHFOldsShortConditionsParser _oldsParser; + XCHStartegyAMarketsEURCHF2019ShortConditionsParser _2019Parser; + // bool IsFiltered( - XCHStrategyConditions &conditions // + XSignal &signal, + XCHStrategyConditions &conditions, + bool force = true // ) { // bool result = false; // - result = + if (!force) + { + result = _2019Parser.IsFiltered(conditions); + } + else + { // - false - // - ; + result = + // + _2019Parser.IsFiltered(conditions) + // + || + // + _oldsParser.IsFiltered(conditions) + // + ; + } // return result; diff --git a/Parsers/AMarkets/EURGBP/2019/x-saherelm.xch.amarkets.eurgbp.long.parser.mq5 b/Parsers/AMarkets/EURGBP/2019/x-saherelm.xch.amarkets.eurgbp.long.parser.mq5 new file mode 100644 index 00000000..96815f96 --- /dev/null +++ b/Parsers/AMarkets/EURGBP/2019/x-saherelm.xch.amarkets.eurgbp.long.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsEURGBPLongConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/EURGBP/2019/x-saherelm.xch.amarkets.eurgbp.short.parser.mq5 b/Parsers/AMarkets/EURGBP/2019/x-saherelm.xch.amarkets.eurgbp.short.parser.mq5 new file mode 100644 index 00000000..47b32d79 --- /dev/null +++ b/Parsers/AMarkets/EURGBP/2019/x-saherelm.xch.amarkets.eurgbp.short.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsEURGBPShortConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/EURGBP/Olds/x-saherelm.xch.amarkets.eurgbp.long.parser.mq5 b/Parsers/AMarkets/EURGBP/Olds/x-saherelm.xch.amarkets.eurgbp.long.parser.mq5 new file mode 100644 index 00000000..96815f96 --- /dev/null +++ b/Parsers/AMarkets/EURGBP/Olds/x-saherelm.xch.amarkets.eurgbp.long.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsEURGBPLongConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/EURGBP/Olds/x-saherelm.xch.amarkets.eurgbp.short.parser.mq5 b/Parsers/AMarkets/EURGBP/Olds/x-saherelm.xch.amarkets.eurgbp.short.parser.mq5 new file mode 100644 index 00000000..47b32d79 --- /dev/null +++ b/Parsers/AMarkets/EURGBP/Olds/x-saherelm.xch.amarkets.eurgbp.short.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsEURGBPShortConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/EURGBP/x-saherelm.xch.amarkets.eurgbp.long.parser.mq5 b/Parsers/AMarkets/EURGBP/x-saherelm.xch.amarkets.eurgbp.long.parser.mq5 index b50969b1..0a2bbd6b 100644 --- a/Parsers/AMarkets/EURGBP/x-saherelm.xch.amarkets.eurgbp.long.parser.mq5 +++ b/Parsers/AMarkets/EURGBP/x-saherelm.xch.amarkets.eurgbp.long.parser.mq5 @@ -24,27 +24,49 @@ // Imports ... #include "../../../Strategies/x-saherelm.xch.strategy.mq5" +// +#include "./Olds/x-saherelm.xch.amarkets.eurgbp.olds.long.parser.mq5" +#include "./2019/x-saherelm.xch.amarkets.eurgbp.2019.long.parser.mq5" + // // Conditions Parser ... struct XCHStartegyAMarketsEURGBPLongConditionsParser { // string _version; - + + // + XCHStartegyAMarketsUS30OldsLongConditionsParser _oldsParser; + XCHStartegyAMarketsUS302019LongConditionsParser _2019Parser; + // bool IsFiltered( - XCHStrategyConditions &conditions // + XSignal &signal, + XCHStrategyConditions &conditions, + bool force = true // ) { // bool result = false; // - result = + if (!force) + { + result = _2019Parser.IsFiltered(conditions); + } + else + { // - false - // - ; + result = + // + _2019Parser.IsFiltered(conditions) + // + || + // + _oldsParser.IsFiltered(conditions) + // + ; + } // return result; diff --git a/Parsers/AMarkets/EURGBP/x-saherelm.xch.amarkets.eurgbp.short.parser.mq5 b/Parsers/AMarkets/EURGBP/x-saherelm.xch.amarkets.eurgbp.short.parser.mq5 index 24973239..723298a6 100644 --- a/Parsers/AMarkets/EURGBP/x-saherelm.xch.amarkets.eurgbp.short.parser.mq5 +++ b/Parsers/AMarkets/EURGBP/x-saherelm.xch.amarkets.eurgbp.short.parser.mq5 @@ -24,27 +24,49 @@ // Imports ... #include "../../../Strategies/x-saherelm.xch.strategy.mq5" +// +#include "./Olds/x-saherelm.xch.amarkets.eurgbp.olds.short.parser.mq5" +#include "./2019/x-saherelm.xch.amarkets.eurgbp.2019.short.parser.mq5" + // // Conditions Parser ... struct XCHStartegyAMarketsEURGBPShortConditionsParser { // string _version; - + + // + XCHStartegyAMarketsUS30OldsShortConditionsParser _oldsParser; + XCHStartegyAMarketsUS302019ShortConditionsParser _2019Parser; + // bool IsFiltered( - XCHStrategyConditions &conditions // + XSignal &signal, + XCHStrategyConditions &conditions, + bool force = true // ) { // bool result = false; // - result = + if (!force) + { + result = _2019Parser.IsFiltered(conditions); + } + else + { // - false - // - ; + result = + // + _2019Parser.IsFiltered(conditions) + // + || + // + _oldsParser.IsFiltered(conditions) + // + ; + } // return result; diff --git a/Parsers/AMarkets/EURJPY/2019/x-saherelm.xch.amarkets.eurjpy.long.parser.mq5 b/Parsers/AMarkets/EURJPY/2019/x-saherelm.xch.amarkets.eurjpy.long.parser.mq5 new file mode 100644 index 00000000..820e87dc --- /dev/null +++ b/Parsers/AMarkets/EURJPY/2019/x-saherelm.xch.amarkets.eurjpy.long.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsEURJPYLongConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/EURJPY/2019/x-saherelm.xch.amarkets.eurjpy.short.parser.mq5 b/Parsers/AMarkets/EURJPY/2019/x-saherelm.xch.amarkets.eurjpy.short.parser.mq5 new file mode 100644 index 00000000..23aa5f8d --- /dev/null +++ b/Parsers/AMarkets/EURJPY/2019/x-saherelm.xch.amarkets.eurjpy.short.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsEURJPYShortConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/EURJPY/Olds/x-saherelm.xch.amarkets.eurjpy.long.parser.mq5 b/Parsers/AMarkets/EURJPY/Olds/x-saherelm.xch.amarkets.eurjpy.long.parser.mq5 new file mode 100644 index 00000000..820e87dc --- /dev/null +++ b/Parsers/AMarkets/EURJPY/Olds/x-saherelm.xch.amarkets.eurjpy.long.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsEURJPYLongConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/EURJPY/Olds/x-saherelm.xch.amarkets.eurjpy.short.parser.mq5 b/Parsers/AMarkets/EURJPY/Olds/x-saherelm.xch.amarkets.eurjpy.short.parser.mq5 new file mode 100644 index 00000000..23aa5f8d --- /dev/null +++ b/Parsers/AMarkets/EURJPY/Olds/x-saherelm.xch.amarkets.eurjpy.short.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsEURJPYShortConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/EURJPY/x-saherelm.xch.amarkets.eurjpy.long.parser.mq5 b/Parsers/AMarkets/EURJPY/x-saherelm.xch.amarkets.eurjpy.long.parser.mq5 index e84eb404..6576ff58 100644 --- a/Parsers/AMarkets/EURJPY/x-saherelm.xch.amarkets.eurjpy.long.parser.mq5 +++ b/Parsers/AMarkets/EURJPY/x-saherelm.xch.amarkets.eurjpy.long.parser.mq5 @@ -24,27 +24,49 @@ // Imports ... #include "../../../Strategies/x-saherelm.xch.strategy.mq5" +// +#include "./Olds/x-saherelm.xch.amarkets.eurjpys.olds.long.parser.mq5" +#include "./2019/x-saherelm.xch.amarkets.eurjpys.2019.long.parser.mq5" + // // Conditions Parser ... struct XCHStartegyAMarketsEURJPYLongConditionsParser { // string _version; - + + // + XCHStartegyAMarketsUS30OldsLongConditionsParser _oldsParser; + XCHStartegyAMarketsUS302019LongConditionsParser _2019Parser; + // bool IsFiltered( - XCHStrategyConditions &conditions // + XSignal &signal, + XCHStrategyConditions &conditions, + bool force = true // ) { // bool result = false; // - result = + if (!force) + { + result = _2019Parser.IsFiltered(conditions); + } + else + { // - false - // - ; + result = + // + _2019Parser.IsFiltered(conditions) + // + || + // + _oldsParser.IsFiltered(conditions) + // + ; + } // return result; diff --git a/Parsers/AMarkets/EURJPY/x-saherelm.xch.amarkets.eurjpy.short.parser.mq5 b/Parsers/AMarkets/EURJPY/x-saherelm.xch.amarkets.eurjpy.short.parser.mq5 index 5c11864a..0a67a423 100644 --- a/Parsers/AMarkets/EURJPY/x-saherelm.xch.amarkets.eurjpy.short.parser.mq5 +++ b/Parsers/AMarkets/EURJPY/x-saherelm.xch.amarkets.eurjpy.short.parser.mq5 @@ -24,27 +24,49 @@ // Imports ... #include "../../../Strategies/x-saherelm.xch.strategy.mq5" +// +#include "./Olds/x-saherelm.xch.amarkets.eurjpys.olds.short.parser.mq5" +#include "./2019/x-saherelm.xch.amarkets.eurjpys.2019.short.parser.mq5" + // // Conditions Parser ... struct XCHStartegyAMarketsEURJPYShortConditionsParser { // string _version; - + + // + XCHStartegyAMarketsUS30OldsShortConditionsParser _oldsParser; + XCHStartegyAMarketsUS302019ShortConditionsParser _2019Parser; + // bool IsFiltered( - XCHStrategyConditions &conditions // + XSignal &signal, + XCHStrategyConditions &conditions, + bool force = true // ) { // bool result = false; // - result = + if (!force) + { + result = _2019Parser.IsFiltered(conditions); + } + else + { // - false - // - ; + result = + // + _2019Parser.IsFiltered(conditions) + // + || + // + _oldsParser.IsFiltered(conditions) + // + ; + } // return result; diff --git a/Parsers/AMarkets/EURUSD/2019/x-saherelm.xch.amarkets.eurusd.long.parser.mq5 b/Parsers/AMarkets/EURUSD/2019/x-saherelm.xch.amarkets.eurusd.long.parser.mq5 new file mode 100644 index 00000000..13ee8c63 --- /dev/null +++ b/Parsers/AMarkets/EURUSD/2019/x-saherelm.xch.amarkets.eurusd.long.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsEURUSDLongConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/EURUSD/2019/x-saherelm.xch.amarkets.eurusd.short.parser.mq5 b/Parsers/AMarkets/EURUSD/2019/x-saherelm.xch.amarkets.eurusd.short.parser.mq5 new file mode 100644 index 00000000..56e73b82 --- /dev/null +++ b/Parsers/AMarkets/EURUSD/2019/x-saherelm.xch.amarkets.eurusd.short.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsEURUSDShortConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/EURUSD/Olds/x-saherelm.xch.amarkets.eurusd.long.parser.mq5 b/Parsers/AMarkets/EURUSD/Olds/x-saherelm.xch.amarkets.eurusd.long.parser.mq5 new file mode 100644 index 00000000..13ee8c63 --- /dev/null +++ b/Parsers/AMarkets/EURUSD/Olds/x-saherelm.xch.amarkets.eurusd.long.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsEURUSDLongConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/EURUSD/Olds/x-saherelm.xch.amarkets.eurusd.short.parser.mq5 b/Parsers/AMarkets/EURUSD/Olds/x-saherelm.xch.amarkets.eurusd.short.parser.mq5 new file mode 100644 index 00000000..56e73b82 --- /dev/null +++ b/Parsers/AMarkets/EURUSD/Olds/x-saherelm.xch.amarkets.eurusd.short.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsEURUSDShortConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/EURUSD/x-saherelm.xch.amarkets.eurusd.long.parser.mq5 b/Parsers/AMarkets/EURUSD/x-saherelm.xch.amarkets.eurusd.long.parser.mq5 index 1cfa7a69..da7739b2 100644 --- a/Parsers/AMarkets/EURUSD/x-saherelm.xch.amarkets.eurusd.long.parser.mq5 +++ b/Parsers/AMarkets/EURUSD/x-saherelm.xch.amarkets.eurusd.long.parser.mq5 @@ -24,27 +24,49 @@ // Imports ... #include "../../../Strategies/x-saherelm.xch.strategy.mq5" +// +#include "./Olds/x-saherelm.xch.amarkets.eurusd.olds.long.parser.mq5" +#include "./2019/x-saherelm.xch.amarkets.eurusd.2019.long.parser.mq5" + // // Conditions Parser ... struct XCHStartegyAMarketsEURUSDLongConditionsParser { // string _version; - + + // + XCHStartegyAMarketsUS30OldsLongConditionsParser _oldsParser; + XCHStartegyAMarketsUS302019LongConditionsParser _2019Parser; + // bool IsFiltered( - XCHStrategyConditions &conditions // + XSignal &signal, + XCHStrategyConditions &conditions, + bool force = true // ) { // bool result = false; // - result = + if (!force) + { + result = _2019Parser.IsFiltered(conditions); + } + else + { // - false - // - ; + result = + // + _2019Parser.IsFiltered(conditions) + // + || + // + _oldsParser.IsFiltered(conditions) + // + ; + } // return result; diff --git a/Parsers/AMarkets/EURUSD/x-saherelm.xch.amarkets.eurusd.short.parser.mq5 b/Parsers/AMarkets/EURUSD/x-saherelm.xch.amarkets.eurusd.short.parser.mq5 index 414af7fb..47d3845e 100644 --- a/Parsers/AMarkets/EURUSD/x-saherelm.xch.amarkets.eurusd.short.parser.mq5 +++ b/Parsers/AMarkets/EURUSD/x-saherelm.xch.amarkets.eurusd.short.parser.mq5 @@ -24,27 +24,49 @@ // Imports ... #include "../../../Strategies/x-saherelm.xch.strategy.mq5" +// +#include "./Olds/x-saherelm.xch.amarkets.eurusd.olds.short.parser.mq5" +#include "./2019/x-saherelm.xch.amarkets.eurusd.2019.short.parser.mq5" + // // Conditions Parser ... struct XCHStartegyAMarketsEURUSDShortConditionsParser { // string _version; - + + // + XCHStartegyAMarketsUS30OldsShortConditionsParser _oldsParser; + XCHStartegyAMarketsUS302019ShortConditionsParser _2019Parser; + // bool IsFiltered( - XCHStrategyConditions &conditions // + XSignal &signal, + XCHStrategyConditions &conditions, + bool force = true // ) { // bool result = false; // - result = + if (!force) + { + result = _2019Parser.IsFiltered(conditions); + } + else + { // - false - // - ; + result = + // + _2019Parser.IsFiltered(conditions) + // + || + // + _oldsParser.IsFiltered(conditions) + // + ; + } // return result; diff --git a/Parsers/AMarkets/GBPUSD/2019/x-saherelm.xch.amarkets.gbpusd.long.parser.mq5 b/Parsers/AMarkets/GBPUSD/2019/x-saherelm.xch.amarkets.gbpusd.long.parser.mq5 new file mode 100644 index 00000000..6a2fa649 --- /dev/null +++ b/Parsers/AMarkets/GBPUSD/2019/x-saherelm.xch.amarkets.gbpusd.long.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsGBPUSDLongConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/GBPUSD/2019/x-saherelm.xch.amarkets.gbpusd.short.parser.mq5 b/Parsers/AMarkets/GBPUSD/2019/x-saherelm.xch.amarkets.gbpusd.short.parser.mq5 new file mode 100644 index 00000000..db048df2 --- /dev/null +++ b/Parsers/AMarkets/GBPUSD/2019/x-saherelm.xch.amarkets.gbpusd.short.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsGBPUSDShortConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/GBPUSD/Olds/x-saherelm.xch.amarkets.gbpusd.long.parser.mq5 b/Parsers/AMarkets/GBPUSD/Olds/x-saherelm.xch.amarkets.gbpusd.long.parser.mq5 new file mode 100644 index 00000000..6a2fa649 --- /dev/null +++ b/Parsers/AMarkets/GBPUSD/Olds/x-saherelm.xch.amarkets.gbpusd.long.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsGBPUSDLongConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/GBPUSD/Olds/x-saherelm.xch.amarkets.gbpusd.short.parser.mq5 b/Parsers/AMarkets/GBPUSD/Olds/x-saherelm.xch.amarkets.gbpusd.short.parser.mq5 new file mode 100644 index 00000000..db048df2 --- /dev/null +++ b/Parsers/AMarkets/GBPUSD/Olds/x-saherelm.xch.amarkets.gbpusd.short.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsGBPUSDShortConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/GBPUSD/x-saherelm.xch.amarkets.gbpusd.long.parser.mq5 b/Parsers/AMarkets/GBPUSD/x-saherelm.xch.amarkets.gbpusd.long.parser.mq5 index 54637ef3..46caf8d2 100644 --- a/Parsers/AMarkets/GBPUSD/x-saherelm.xch.amarkets.gbpusd.long.parser.mq5 +++ b/Parsers/AMarkets/GBPUSD/x-saherelm.xch.amarkets.gbpusd.long.parser.mq5 @@ -24,27 +24,49 @@ // Imports ... #include "../../../Strategies/x-saherelm.xch.strategy.mq5" +// +#include "./Olds/x-saherelm.xch.amarkets.gbpusd.olds.long.parser.mq5" +#include "./2019/x-saherelm.xch.amarkets.gbpusd.2019.long.parser.mq5" + // // Conditions Parser ... struct XCHStartegyAMarketsGBPUSDLongConditionsParser { // string _version; - + + // + XCHStartegyAMarketsUS30OldsLongConditionsParser _oldsParser; + XCHStartegyAMarketsUS302019LongConditionsParser _2019Parser; + // bool IsFiltered( - XCHStrategyConditions &conditions // + XSignal &signal, + XCHStrategyConditions &conditions, + bool force = true // ) { // bool result = false; // - result = + if (!force) + { + result = _2019Parser.IsFiltered(conditions); + } + else + { // - false - // - ; + result = + // + _2019Parser.IsFiltered(conditions) + // + || + // + _oldsParser.IsFiltered(conditions) + // + ; + } // return result; diff --git a/Parsers/AMarkets/GBPUSD/x-saherelm.xch.amarkets.gbpusd.short.parser.mq5 b/Parsers/AMarkets/GBPUSD/x-saherelm.xch.amarkets.gbpusd.short.parser.mq5 index fc121e11..86034ed6 100644 --- a/Parsers/AMarkets/GBPUSD/x-saherelm.xch.amarkets.gbpusd.short.parser.mq5 +++ b/Parsers/AMarkets/GBPUSD/x-saherelm.xch.amarkets.gbpusd.short.parser.mq5 @@ -24,27 +24,49 @@ // Imports ... #include "../../../Strategies/x-saherelm.xch.strategy.mq5" +// +#include "./Olds/x-saherelm.xch.amarkets.gbpusd.olds.short.parser.mq5" +#include "./2019/x-saherelm.xch.amarkets.gbpusd.2019.short.parser.mq5" + // // Conditions Parser ... struct XCHStartegyAMarketsGBPUSDShortConditionsParser { // string _version; - + + // + XCHStartegyAMarketsUS30OldsShortConditionsParser _oldsParser; + XCHStartegyAMarketsUS302019ShortConditionsParser _2019Parser; + // bool IsFiltered( - XCHStrategyConditions &conditions // + XSignal &signal, + XCHStrategyConditions &conditions, + bool force = true // ) { // bool result = false; // - result = + if (!force) + { + result = _2019Parser.IsFiltered(conditions); + } + else + { // - false - // - ; + result = + // + _2019Parser.IsFiltered(conditions) + // + || + // + _oldsParser.IsFiltered(conditions) + // + ; + } // return result; diff --git a/Parsers/AMarkets/NZDUSD/2019/x-saherelm.xch.amarkets.nzdusd.long.parser.mq5 b/Parsers/AMarkets/NZDUSD/2019/x-saherelm.xch.amarkets.nzdusd.long.parser.mq5 new file mode 100644 index 00000000..7d355e77 --- /dev/null +++ b/Parsers/AMarkets/NZDUSD/2019/x-saherelm.xch.amarkets.nzdusd.long.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsNZDUSDLongConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/NZDUSD/2019/x-saherelm.xch.amarkets.nzdusd.short.parser.mq5 b/Parsers/AMarkets/NZDUSD/2019/x-saherelm.xch.amarkets.nzdusd.short.parser.mq5 new file mode 100644 index 00000000..359e6814 --- /dev/null +++ b/Parsers/AMarkets/NZDUSD/2019/x-saherelm.xch.amarkets.nzdusd.short.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsNZDUSDShortConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/NZDUSD/Olds/x-saherelm.xch.amarkets.nzdusd.long.parser.mq5 b/Parsers/AMarkets/NZDUSD/Olds/x-saherelm.xch.amarkets.nzdusd.long.parser.mq5 new file mode 100644 index 00000000..7d355e77 --- /dev/null +++ b/Parsers/AMarkets/NZDUSD/Olds/x-saherelm.xch.amarkets.nzdusd.long.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsNZDUSDLongConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/NZDUSD/Olds/x-saherelm.xch.amarkets.nzdusd.short.parser.mq5 b/Parsers/AMarkets/NZDUSD/Olds/x-saherelm.xch.amarkets.nzdusd.short.parser.mq5 new file mode 100644 index 00000000..359e6814 --- /dev/null +++ b/Parsers/AMarkets/NZDUSD/Olds/x-saherelm.xch.amarkets.nzdusd.short.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsNZDUSDShortConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/NZDUSD/x-saherelm.xch.amarkets.nzdusd.long.parser.mq5 b/Parsers/AMarkets/NZDUSD/x-saherelm.xch.amarkets.nzdusd.long.parser.mq5 index fde476fd..5e0324f2 100644 --- a/Parsers/AMarkets/NZDUSD/x-saherelm.xch.amarkets.nzdusd.long.parser.mq5 +++ b/Parsers/AMarkets/NZDUSD/x-saherelm.xch.amarkets.nzdusd.long.parser.mq5 @@ -24,27 +24,49 @@ // Imports ... #include "../../../Strategies/x-saherelm.xch.strategy.mq5" +// +#include "./Olds/x-saherelm.xch.amarkets.nzdusd.olds.long.parser.mq5" +#include "./2019/x-saherelm.xch.amarkets.nzdusd.2019.long.parser.mq5" + // // Conditions Parser ... struct XCHStartegyAMarketsNZDUSDLongConditionsParser { // string _version; - + + // + XCHStartegyAMarketsUS30OldsLongConditionsParser _oldsParser; + XCHStartegyAMarketsUS302019LongConditionsParser _2019Parser; + // bool IsFiltered( - XCHStrategyConditions &conditions // + XSignal &signal, + XCHStrategyConditions &conditions, + bool force = true // ) { // bool result = false; // - result = + if (!force) + { + result = _2019Parser.IsFiltered(conditions); + } + else + { // - false - // - ; + result = + // + _2019Parser.IsFiltered(conditions) + // + || + // + _oldsParser.IsFiltered(conditions) + // + ; + } // return result; diff --git a/Parsers/AMarkets/NZDUSD/x-saherelm.xch.amarkets.nzdusd.short.parser.mq5 b/Parsers/AMarkets/NZDUSD/x-saherelm.xch.amarkets.nzdusd.short.parser.mq5 index f64e1625..8fbf5aeb 100644 --- a/Parsers/AMarkets/NZDUSD/x-saherelm.xch.amarkets.nzdusd.short.parser.mq5 +++ b/Parsers/AMarkets/NZDUSD/x-saherelm.xch.amarkets.nzdusd.short.parser.mq5 @@ -24,27 +24,49 @@ // Imports ... #include "../../../Strategies/x-saherelm.xch.strategy.mq5" +// +#include "./Olds/x-saherelm.xch.amarkets.nzdusd.olds.short.parser.mq5" +#include "./2019/x-saherelm.xch.amarkets.nzdusd.2019.short.parser.mq5" + // // Conditions Parser ... struct XCHStartegyAMarketsNZDUSDShortConditionsParser { // string _version; - + + // + XCHStartegyAMarketsUS30OldsShortConditionsParser _oldsParser; + XCHStartegyAMarketsUS302019ShortConditionsParser _2019Parser; + // bool IsFiltered( - XCHStrategyConditions &conditions // + XSignal &signal, + XCHStrategyConditions &conditions, + bool force = true // ) { // bool result = false; // - result = + if (!force) + { + result = _2019Parser.IsFiltered(conditions); + } + else + { // - false - // - ; + result = + // + _2019Parser.IsFiltered(conditions) + // + || + // + _oldsParser.IsFiltered(conditions) + // + ; + } // return result; diff --git a/Parsers/AMarkets/USDCAD/2019/x-saherelm.xch.amarkets.usdcad.long.parser.mq5 b/Parsers/AMarkets/USDCAD/2019/x-saherelm.xch.amarkets.usdcad.long.parser.mq5 new file mode 100644 index 00000000..d7c102e0 --- /dev/null +++ b/Parsers/AMarkets/USDCAD/2019/x-saherelm.xch.amarkets.usdcad.long.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsUSDCADLongConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/USDCAD/2019/x-saherelm.xch.amarkets.usdcad.short.parser.mq5 b/Parsers/AMarkets/USDCAD/2019/x-saherelm.xch.amarkets.usdcad.short.parser.mq5 new file mode 100644 index 00000000..27e3ca4f --- /dev/null +++ b/Parsers/AMarkets/USDCAD/2019/x-saherelm.xch.amarkets.usdcad.short.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsUSDCADShortConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/USDCAD/Olds/x-saherelm.xch.amarkets.usdcad.long.parser.mq5 b/Parsers/AMarkets/USDCAD/Olds/x-saherelm.xch.amarkets.usdcad.long.parser.mq5 new file mode 100644 index 00000000..d7c102e0 --- /dev/null +++ b/Parsers/AMarkets/USDCAD/Olds/x-saherelm.xch.amarkets.usdcad.long.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsUSDCADLongConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/USDCAD/Olds/x-saherelm.xch.amarkets.usdcad.short.parser.mq5 b/Parsers/AMarkets/USDCAD/Olds/x-saherelm.xch.amarkets.usdcad.short.parser.mq5 new file mode 100644 index 00000000..27e3ca4f --- /dev/null +++ b/Parsers/AMarkets/USDCAD/Olds/x-saherelm.xch.amarkets.usdcad.short.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsUSDCADShortConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/USDCAD/x-saherelm.xch.amarkets.usdcad.long.parser.mq5 b/Parsers/AMarkets/USDCAD/x-saherelm.xch.amarkets.usdcad.long.parser.mq5 index 4acdde5f..7b9108ab 100644 --- a/Parsers/AMarkets/USDCAD/x-saherelm.xch.amarkets.usdcad.long.parser.mq5 +++ b/Parsers/AMarkets/USDCAD/x-saherelm.xch.amarkets.usdcad.long.parser.mq5 @@ -24,27 +24,49 @@ // Imports ... #include "../../../Strategies/x-saherelm.xch.strategy.mq5" +// +#include "./Olds/x-saherelm.xch.amarkets.usdcad.olds.long.parser.mq5" +#include "./2019/x-saherelm.xch.amarkets.usdcad.2019.long.parser.mq5" + // // Conditions Parser ... struct XCHStartegyAMarketsUSDCADLongConditionsParser { // string _version; - + + // + XCHStartegyAMarketsUS30OldsLongConditionsParser _oldsParser; + XCHStartegyAMarketsUS302019LongConditionsParser _2019Parser; + // bool IsFiltered( - XCHStrategyConditions &conditions // + XSignal &signal, + XCHStrategyConditions &conditions, + bool force = true // ) { // bool result = false; // - result = + if (!force) + { + result = _2019Parser.IsFiltered(conditions); + } + else + { // - false - // - ; + result = + // + _2019Parser.IsFiltered(conditions) + // + || + // + _oldsParser.IsFiltered(conditions) + // + ; + } // return result; diff --git a/Parsers/AMarkets/USDCAD/x-saherelm.xch.amarkets.usdcad.short.parser.mq5 b/Parsers/AMarkets/USDCAD/x-saherelm.xch.amarkets.usdcad.short.parser.mq5 index 236f3d21..8691de52 100644 --- a/Parsers/AMarkets/USDCAD/x-saherelm.xch.amarkets.usdcad.short.parser.mq5 +++ b/Parsers/AMarkets/USDCAD/x-saherelm.xch.amarkets.usdcad.short.parser.mq5 @@ -24,27 +24,49 @@ // Imports ... #include "../../../Strategies/x-saherelm.xch.strategy.mq5" +// +#include "./Olds/x-saherelm.xch.amarkets.usdcad.olds.short.parser.mq5" +#include "./2019/x-saherelm.xch.amarkets.usdcad.2019.short.parser.mq5" + // // Conditions Parser ... struct XCHStartegyAMarketsUSDCADShortConditionsParser { // string _version; - + + // + XCHStartegyAMarketsUS30OldsShortConditionsParser _oldsParser; + XCHStartegyAMarketsUS302019ShortConditionsParser _2019Parser; + // bool IsFiltered( - XCHStrategyConditions &conditions // + XSignal &signal, + XCHStrategyConditions &conditions, + bool force = true // ) { // bool result = false; // - result = + if (!force) + { + result = _2019Parser.IsFiltered(conditions); + } + else + { // - false - // - ; + result = + // + _2019Parser.IsFiltered(conditions) + // + || + // + _oldsParser.IsFiltered(conditions) + // + ; + } // return result; diff --git a/Parsers/AMarkets/USDCHF/2019/x-saherelm.xch.amarkets.usdchf.long.parser.mq5 b/Parsers/AMarkets/USDCHF/2019/x-saherelm.xch.amarkets.usdchf.long.parser.mq5 new file mode 100644 index 00000000..3a80eb18 --- /dev/null +++ b/Parsers/AMarkets/USDCHF/2019/x-saherelm.xch.amarkets.usdchf.long.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsUSDCHFLongConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/USDCHF/2019/x-saherelm.xch.amarkets.usdchf.short.parser.mq5 b/Parsers/AMarkets/USDCHF/2019/x-saherelm.xch.amarkets.usdchf.short.parser.mq5 new file mode 100644 index 00000000..88a9d5c4 --- /dev/null +++ b/Parsers/AMarkets/USDCHF/2019/x-saherelm.xch.amarkets.usdchf.short.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsUSDCHFShortConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/USDCHF/Olds/x-saherelm.xch.amarkets.usdchf.long.parser.mq5 b/Parsers/AMarkets/USDCHF/Olds/x-saherelm.xch.amarkets.usdchf.long.parser.mq5 new file mode 100644 index 00000000..3a80eb18 --- /dev/null +++ b/Parsers/AMarkets/USDCHF/Olds/x-saherelm.xch.amarkets.usdchf.long.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsUSDCHFLongConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/USDCHF/Olds/x-saherelm.xch.amarkets.usdchf.short.parser.mq5 b/Parsers/AMarkets/USDCHF/Olds/x-saherelm.xch.amarkets.usdchf.short.parser.mq5 new file mode 100644 index 00000000..88a9d5c4 --- /dev/null +++ b/Parsers/AMarkets/USDCHF/Olds/x-saherelm.xch.amarkets.usdchf.short.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsUSDCHFShortConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/USDCHF/x-saherelm.xch.amarkets.usdchf.long.parser.mq5 b/Parsers/AMarkets/USDCHF/x-saherelm.xch.amarkets.usdchf.long.parser.mq5 index 13cfa73f..bd020733 100644 --- a/Parsers/AMarkets/USDCHF/x-saherelm.xch.amarkets.usdchf.long.parser.mq5 +++ b/Parsers/AMarkets/USDCHF/x-saherelm.xch.amarkets.usdchf.long.parser.mq5 @@ -24,6 +24,10 @@ // Imports ... #include "../../../Strategies/x-saherelm.xch.strategy.mq5" +// +#include "./Olds/x-saherelm.xch.amarkets.usdchf.olds.long.parser.mq5" +#include "./2019/x-saherelm.xch.amarkets.usdchf.2019.long.parser.mq5" + // // Conditions Parser ... struct XCHStartegyAMarketsUSDCHFLongConditionsParser @@ -31,20 +35,38 @@ struct XCHStartegyAMarketsUSDCHFLongConditionsParser // string _version; + // + XCHStartegyAMarketsUS30OldsLongConditionsParser _oldsParser; + XCHStartegyAMarketsUS302019LongConditionsParser _2019Parser; + // bool IsFiltered( - XCHStrategyConditions &conditions // + XSignal &signal, + XCHStrategyConditions &conditions, + bool force = true // ) { // bool result = false; // - result = + if (!force) + { + result = _2019Parser.IsFiltered(conditions); + } + else + { // - false - // - ; + result = + // + _2019Parser.IsFiltered(conditions) + // + || + // + _oldsParser.IsFiltered(conditions) + // + ; + } // return result; diff --git a/Parsers/AMarkets/USDCHF/x-saherelm.xch.amarkets.usdchf.short.parser.mq5 b/Parsers/AMarkets/USDCHF/x-saherelm.xch.amarkets.usdchf.short.parser.mq5 index 88be0772..3c6f5c56 100644 --- a/Parsers/AMarkets/USDCHF/x-saherelm.xch.amarkets.usdchf.short.parser.mq5 +++ b/Parsers/AMarkets/USDCHF/x-saherelm.xch.amarkets.usdchf.short.parser.mq5 @@ -24,27 +24,49 @@ // Imports ... #include "../../../Strategies/x-saherelm.xch.strategy.mq5" +// +#include "./Olds/x-saherelm.xch.amarkets.usdchf.olds.short.parser.mq5" +#include "./2019/x-saherelm.xch.amarkets.usdchf.2019.short.parser.mq5" + // // Conditions Parser ... struct XCHStartegyAMarketsUSDCHFShortConditionsParser { // string _version; - + + // + XCHStartegyAMarketsUS30OldsShortConditionsParser _oldsParser; + XCHStartegyAMarketsUS302019ShortConditionsParser _2019Parser; + // bool IsFiltered( - XCHStrategyConditions &conditions // + XSignal &signal, + XCHStrategyConditions &conditions, + bool force = true // ) { // bool result = false; // - result = + if (!force) + { + result = _2019Parser.IsFiltered(conditions); + } + else + { // - false - // - ; + result = + // + _2019Parser.IsFiltered(conditions) + // + || + // + _oldsParser.IsFiltered(conditions) + // + ; + } // return result; diff --git a/Parsers/AMarkets/USDJPY/2019/x-saherelm.xch.amarkets.usdjpy.long.parser.mq5 b/Parsers/AMarkets/USDJPY/2019/x-saherelm.xch.amarkets.usdjpy.long.parser.mq5 new file mode 100644 index 00000000..98679f06 --- /dev/null +++ b/Parsers/AMarkets/USDJPY/2019/x-saherelm.xch.amarkets.usdjpy.long.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsUSDJPYLongConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/USDJPY/2019/x-saherelm.xch.amarkets.usdjpy.short.parser.mq5 b/Parsers/AMarkets/USDJPY/2019/x-saherelm.xch.amarkets.usdjpy.short.parser.mq5 new file mode 100644 index 00000000..79df50de --- /dev/null +++ b/Parsers/AMarkets/USDJPY/2019/x-saherelm.xch.amarkets.usdjpy.short.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsUSDJPYShortConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/USDJPY/Olds/x-saherelm.xch.amarkets.usdjpy.long.parser.mq5 b/Parsers/AMarkets/USDJPY/Olds/x-saherelm.xch.amarkets.usdjpy.long.parser.mq5 new file mode 100644 index 00000000..98679f06 --- /dev/null +++ b/Parsers/AMarkets/USDJPY/Olds/x-saherelm.xch.amarkets.usdjpy.long.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsUSDJPYLongConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/USDJPY/Olds/x-saherelm.xch.amarkets.usdjpy.short.parser.mq5 b/Parsers/AMarkets/USDJPY/Olds/x-saherelm.xch.amarkets.usdjpy.short.parser.mq5 new file mode 100644 index 00000000..79df50de --- /dev/null +++ b/Parsers/AMarkets/USDJPY/Olds/x-saherelm.xch.amarkets.usdjpy.short.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsUSDJPYShortConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/USDJPY/x-saherelm.xch.amarkets.usdjpy.long.parser.mq5 b/Parsers/AMarkets/USDJPY/x-saherelm.xch.amarkets.usdjpy.long.parser.mq5 index b7eb06da..0d02b0a9 100644 --- a/Parsers/AMarkets/USDJPY/x-saherelm.xch.amarkets.usdjpy.long.parser.mq5 +++ b/Parsers/AMarkets/USDJPY/x-saherelm.xch.amarkets.usdjpy.long.parser.mq5 @@ -24,27 +24,49 @@ // Imports ... #include "../../../Strategies/x-saherelm.xch.strategy.mq5" +// +#include "./Olds/x-saherelm.xch.amarkets.usdjpy.olds.long.parser.mq5" +#include "./2019/x-saherelm.xch.amarkets.usdjpy.2019.long.parser.mq5" + // // Conditions Parser ... struct XCHStartegyAMarketsUSDJPYLongConditionsParser { // string _version; - + + // + XCHStartegyAMarketsUS30OldsLongConditionsParser _oldsParser; + XCHStartegyAMarketsUS302019LongConditionsParser _2019Parser; + // bool IsFiltered( - XCHStrategyConditions &conditions // + XSignal &signal, + XCHStrategyConditions &conditions, + bool force = true // ) { // bool result = false; // - result = + if (!force) + { + result = _2019Parser.IsFiltered(conditions); + } + else + { // - false - // - ; + result = + // + _2019Parser.IsFiltered(conditions) + // + || + // + _oldsParser.IsFiltered(conditions) + // + ; + } // return result; diff --git a/Parsers/AMarkets/USDJPY/x-saherelm.xch.amarkets.usdjpy.short.parser.mq5 b/Parsers/AMarkets/USDJPY/x-saherelm.xch.amarkets.usdjpy.short.parser.mq5 index 2e2756d3..3bc07af3 100644 --- a/Parsers/AMarkets/USDJPY/x-saherelm.xch.amarkets.usdjpy.short.parser.mq5 +++ b/Parsers/AMarkets/USDJPY/x-saherelm.xch.amarkets.usdjpy.short.parser.mq5 @@ -24,27 +24,49 @@ // Imports ... #include "../../../Strategies/x-saherelm.xch.strategy.mq5" +// +#include "./Olds/x-saherelm.xch.amarkets.usdjpy.olds.short.parser.mq5" +#include "./2019/x-saherelm.xch.amarkets.usdjpy.2019.short.parser.mq5" + // // Conditions Parser ... struct XCHStartegyAMarketsUSDJPYShortConditionsParser { // string _version; - + + // + XCHStartegyAMarketsUS30OldsShortConditionsParser _oldsParser; + XCHStartegyAMarketsUS302019ShortConditionsParser _2019Parser; + // bool IsFiltered( - XCHStrategyConditions &conditions // + XSignal &signal, + XCHStrategyConditions &conditions, + bool force = true // ) { // bool result = false; // - result = + if (!force) + { + result = _2019Parser.IsFiltered(conditions); + } + else + { // - false - // - ; + result = + // + _2019Parser.IsFiltered(conditions) + // + || + // + _oldsParser.IsFiltered(conditions) + // + ; + } // return result; diff --git a/Parsers/AMarkets/XAUUSD/2019/x-saherelm.xch.amarkets.xauusd.long.parser.mq5 b/Parsers/AMarkets/XAUUSD/2019/x-saherelm.xch.amarkets.xauusd.long.parser.mq5 new file mode 100644 index 00000000..ba26aead --- /dev/null +++ b/Parsers/AMarkets/XAUUSD/2019/x-saherelm.xch.amarkets.xauusd.long.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsXAUUSDLongConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/XAUUSD/2019/x-saherelm.xch.amarkets.xauusd.short.parser.mq5 b/Parsers/AMarkets/XAUUSD/2019/x-saherelm.xch.amarkets.xauusd.short.parser.mq5 new file mode 100644 index 00000000..453ca4c0 --- /dev/null +++ b/Parsers/AMarkets/XAUUSD/2019/x-saherelm.xch.amarkets.xauusd.short.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsXAUUSDShortConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/XAUUSD/Olds/x-saherelm.xch.amarkets.xauusd.long.parser.mq5 b/Parsers/AMarkets/XAUUSD/Olds/x-saherelm.xch.amarkets.xauusd.long.parser.mq5 new file mode 100644 index 00000000..ba26aead --- /dev/null +++ b/Parsers/AMarkets/XAUUSD/Olds/x-saherelm.xch.amarkets.xauusd.long.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsXAUUSDLongConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/XAUUSD/Olds/x-saherelm.xch.amarkets.xauusd.short.parser.mq5 b/Parsers/AMarkets/XAUUSD/Olds/x-saherelm.xch.amarkets.xauusd.short.parser.mq5 new file mode 100644 index 00000000..453ca4c0 --- /dev/null +++ b/Parsers/AMarkets/XAUUSD/Olds/x-saherelm.xch.amarkets.xauusd.short.parser.mq5 @@ -0,0 +1,54 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHStartegyConditionsParser +// Description: provide all conditions parsing +// for XCH Strategy ... +// +// +// Maintainer: +// ------------ +// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) +// +////////////////////////////////////////////////////// +// +// Global Properties ... +#property library +#property copyright "Copyright 2023, SaherElm IT Center" +#property link "https://www.saherelm.ir" +#property version "1.00" +#property strict + +// +// Imports ... +#include "../../../../Strategies/x-saherelm.xch.strategy.mq5" + +// +// Conditions Parser ... +struct XCHStartegyAMarketsXAUUSDShortConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/XAUUSD/x-saherelm.xch.amarkets.xauusd.long.parser.mq5 b/Parsers/AMarkets/XAUUSD/x-saherelm.xch.amarkets.xauusd.long.parser.mq5 index 08680c8e..c9c0cd43 100644 --- a/Parsers/AMarkets/XAUUSD/x-saherelm.xch.amarkets.xauusd.long.parser.mq5 +++ b/Parsers/AMarkets/XAUUSD/x-saherelm.xch.amarkets.xauusd.long.parser.mq5 @@ -24,27 +24,49 @@ // Imports ... #include "../../../Strategies/x-saherelm.xch.strategy.mq5" +// +#include "./Olds/x-saherelm.xch.amarkets.xauusd.olds.long.parser.mq5" +#include "./2019/x-saherelm.xch.amarkets.xauusd.2019.long.parser.mq5" + // // Conditions Parser ... struct XCHStartegyAMarketsXAUUSDLongConditionsParser { // string _version; - + + // + XCHStartegyAMarketsUS30OldsLongConditionsParser _oldsParser; + XCHStartegyAMarketsUS302019LongConditionsParser _2019Parser; + // bool IsFiltered( - XCHStrategyConditions &conditions // + XSignal &signal, + XCHStrategyConditions &conditions, + bool force = true // ) { // bool result = false; // - result = + if (!force) + { + result = _2019Parser.IsFiltered(conditions); + } + else + { // - false - // - ; + result = + // + _2019Parser.IsFiltered(conditions) + // + || + // + _oldsParser.IsFiltered(conditions) + // + ; + } // return result; diff --git a/Parsers/AMarkets/XAUUSD/x-saherelm.xch.amarkets.xauusd.short.parser.mq5 b/Parsers/AMarkets/XAUUSD/x-saherelm.xch.amarkets.xauusd.short.parser.mq5 index bbd3ce90..7b235097 100644 --- a/Parsers/AMarkets/XAUUSD/x-saherelm.xch.amarkets.xauusd.short.parser.mq5 +++ b/Parsers/AMarkets/XAUUSD/x-saherelm.xch.amarkets.xauusd.short.parser.mq5 @@ -24,26 +24,49 @@ // Imports ... #include "../../../Strategies/x-saherelm.xch.strategy.mq5" +// +#include "./Olds/x-saherelm.xch.amarkets.xauusd.olds.short.parser.mq5" +#include "./2019/x-saherelm.xch.amarkets.xauusd.2019.short.parser.mq5" + // // Conditions Parser ... struct XCHStartegyAMarketsXAUUSDShortConditionsParser { // string _version; + + // + XCHStartegyAMarketsUS30OldsShortConditionsParser _oldsParser; + XCHStartegyAMarketsUS302019ShortConditionsParser _2019Parser; + // bool IsFiltered( - XCHStrategyConditions &conditions // + XSignal &signal, + XCHStrategyConditions &conditions, + bool force = true // ) { // bool result = false; // - result = + if (!force) + { + result = _2019Parser.IsFiltered(conditions); + } + else + { // - false - // - ; + result = + // + _2019Parser.IsFiltered(conditions) + // + || + // + _oldsParser.IsFiltered(conditions) + // + ; + } // return result;