From 96773553bc663b2928d3542ea4f74d9180cc91d0 Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Sat, 24 Aug 2024 16:33:26 +0330 Subject: [PATCH] prepare 2024 parsers for each asset in amarkets ... --- ...m.xch.amarkets.audusd.2024.long.parser.mq5 | 54 ++ ....xch.amarkets.audusd.2024.short.parser.mq5 | 54 ++ ...herelm.xch.amarkets.audusd.long.parser.mq5 | 17 +- ...erelm.xch.amarkets.audusd.short.parser.mq5 | 17 +- ...elm.xch.amarkets.us30.2024.long.parser.mq5 | 54 ++ ...lm.xch.amarkets.us30.2024.short.parser.mq5 | 54 ++ ...saherelm.xch.amarkets.us30.long.parser.mq5 | 18 +- ...aherelm.xch.amarkets.us30.short.parser.mq5 | 17 +- ...m.xch.amarkets.eurcad.2024.long.parser.mq5 | 54 ++ ....xch.amarkets.eurcad.2024.short.parser.mq5 | 54 ++ ...herelm.xch.amarkets.eurcad.long.parser.mq5 | 17 +- ...erelm.xch.amarkets.eurcad.short.parser.mq5 | 17 +- ...m.xch.amarkets.eurchf.2024.long.parser.mq5 | 54 ++ ....xch.amarkets.eurchf.2024.short.parser.mq5 | 54 ++ ...herelm.xch.amarkets.eurchf.long.parser.mq5 | 17 +- ...erelm.xch.amarkets.eurchf.short.parser.mq5 | 17 +- ...m.xch.amarkets.eurgbp.2024.long.parser.mq5 | 54 ++ ....xch.amarkets.eurgbp.2024.short.parser.mq5 | 54 ++ ...herelm.xch.amarkets.eurgbp.long.parser.mq5 | 17 +- ...erelm.xch.amarkets.eurgbp.short.parser.mq5 | 17 +- ...m.xch.amarkets.eurjpy.2024.long.parser.mq5 | 54 ++ ....xch.amarkets.eurjpy.2024.short.parser.mq5 | 54 ++ ...herelm.xch.amarkets.eurjpy.long.parser.mq5 | 17 +- ...erelm.xch.amarkets.eurjpy.short.parser.mq5 | 17 +- ...m.xch.amarkets.eurusd.2024.long.parser.mq5 | 54 ++ ....xch.amarkets.eurusd.2024.short.parser.mq5 | 54 ++ ...herelm.xch.amarkets.eurusd.long.parser.mq5 | 17 +- ...erelm.xch.amarkets.eurusd.short.parser.mq5 | 17 +- ...m.xch.amarkets.gbpusd.2024.long.parser.mq5 | 54 ++ ....xch.amarkets.gbpusd.2024.short.parser.mq5 | 54 ++ ...herelm.xch.amarkets.gbpusd.long.parser.mq5 | 17 +- ...erelm.xch.amarkets.gbpusd.short.parser.mq5 | 17 +- ...m.xch.amarkets.nzdusd.2024.long.parser.mq5 | 54 ++ ....xch.amarkets.nzdusd.2024.short.parser.mq5 | 54 ++ ...herelm.xch.amarkets.nzdusd.long.parser.mq5 | 17 +- ...erelm.xch.amarkets.nzdusd.short.parser.mq5 | 17 +- ...m.xch.amarkets.usdcad.2024.long.parser.mq5 | 54 ++ ....xch.amarkets.usdcad.2024.short.parser.mq5 | 54 ++ ...herelm.xch.amarkets.usdcad.long.parser.mq5 | 17 +- ...erelm.xch.amarkets.usdcad.short.parser.mq5 | 17 +- ...m.xch.amarkets.usdchf.2024.long.parser.mq5 | 54 ++ ....xch.amarkets.usdchf.2024.short.parser.mq5 | 54 ++ ...herelm.xch.amarkets.usdchf.long.parser.mq5 | 19 +- ...erelm.xch.amarkets.usdchf.short.parser.mq5 | 17 +- ...m.xch.amarkets.usdjpy.2024.long.parser.mq5 | 54 ++ ....xch.amarkets.usdjpy.2024.short.parser.mq5 | 54 ++ ...herelm.xch.amarkets.usdjpy.long.parser.mq5 | 17 +- ...erelm.xch.amarkets.usdjpy.short.parser.mq5 | 17 +- ...m.xch.amarkets.xauusd.2024.long.parser.mq5 | 54 ++ ....xch.amarkets.xauusd.2024.short.parser.mq5 | 54 ++ ...herelm.xch.amarkets.xauusd.long.parser.mq5 | 17 +- ...erelm.xch.amarkets.xauusd.short.parser.mq5 | 17 +- .../x-saherelm.xch.che.amarkets.parser.mq5 | 573 ++++++++++++++++++ 53 files changed, 2394 insertions(+), 28 deletions(-) create mode 100644 Parsers/AMarkets/AUDUSD/2024/x-saherelm.xch.amarkets.audusd.2024.long.parser.mq5 create mode 100644 Parsers/AMarkets/AUDUSD/2024/x-saherelm.xch.amarkets.audusd.2024.short.parser.mq5 create mode 100644 Parsers/AMarkets/DowJones/2024/x-saherelm.xch.amarkets.us30.2024.long.parser.mq5 create mode 100644 Parsers/AMarkets/DowJones/2024/x-saherelm.xch.amarkets.us30.2024.short.parser.mq5 create mode 100644 Parsers/AMarkets/EURCAD/2024/x-saherelm.xch.amarkets.eurcad.2024.long.parser.mq5 create mode 100644 Parsers/AMarkets/EURCAD/2024/x-saherelm.xch.amarkets.eurcad.2024.short.parser.mq5 create mode 100644 Parsers/AMarkets/EURCHF/2024/x-saherelm.xch.amarkets.eurchf.2024.long.parser.mq5 create mode 100644 Parsers/AMarkets/EURCHF/2024/x-saherelm.xch.amarkets.eurchf.2024.short.parser.mq5 create mode 100644 Parsers/AMarkets/EURGBP/2024/x-saherelm.xch.amarkets.eurgbp.2024.long.parser.mq5 create mode 100644 Parsers/AMarkets/EURGBP/2024/x-saherelm.xch.amarkets.eurgbp.2024.short.parser.mq5 create mode 100644 Parsers/AMarkets/EURJPY/2024/x-saherelm.xch.amarkets.eurjpy.2024.long.parser.mq5 create mode 100644 Parsers/AMarkets/EURJPY/2024/x-saherelm.xch.amarkets.eurjpy.2024.short.parser.mq5 create mode 100644 Parsers/AMarkets/EURUSD/2024/x-saherelm.xch.amarkets.eurusd.2024.long.parser.mq5 create mode 100644 Parsers/AMarkets/EURUSD/2024/x-saherelm.xch.amarkets.eurusd.2024.short.parser.mq5 create mode 100644 Parsers/AMarkets/GBPUSD/2024/x-saherelm.xch.amarkets.gbpusd.2024.long.parser.mq5 create mode 100644 Parsers/AMarkets/GBPUSD/2024/x-saherelm.xch.amarkets.gbpusd.2024.short.parser.mq5 create mode 100644 Parsers/AMarkets/NZDUSD/2024/x-saherelm.xch.amarkets.nzdusd.2024.long.parser.mq5 create mode 100644 Parsers/AMarkets/NZDUSD/2024/x-saherelm.xch.amarkets.nzdusd.2024.short.parser.mq5 create mode 100644 Parsers/AMarkets/USDCAD/2024/x-saherelm.xch.amarkets.usdcad.2024.long.parser.mq5 create mode 100644 Parsers/AMarkets/USDCAD/2024/x-saherelm.xch.amarkets.usdcad.2024.short.parser.mq5 create mode 100644 Parsers/AMarkets/USDCHF/2024/x-saherelm.xch.amarkets.usdchf.2024.long.parser.mq5 create mode 100644 Parsers/AMarkets/USDCHF/2024/x-saherelm.xch.amarkets.usdchf.2024.short.parser.mq5 create mode 100644 Parsers/AMarkets/USDJPY/2024/x-saherelm.xch.amarkets.usdjpy.2024.long.parser.mq5 create mode 100644 Parsers/AMarkets/USDJPY/2024/x-saherelm.xch.amarkets.usdjpy.2024.short.parser.mq5 create mode 100644 Parsers/AMarkets/XAUUSD/2024/x-saherelm.xch.amarkets.xauusd.2024.long.parser.mq5 create mode 100644 Parsers/AMarkets/XAUUSD/2024/x-saherelm.xch.amarkets.xauusd.2024.short.parser.mq5 create mode 100644 Parsers/AMarkets/x-saherelm.xch.che.amarkets.parser.mq5 diff --git a/Parsers/AMarkets/AUDUSD/2024/x-saherelm.xch.amarkets.audusd.2024.long.parser.mq5 b/Parsers/AMarkets/AUDUSD/2024/x-saherelm.xch.amarkets.audusd.2024.long.parser.mq5 new file mode 100644 index 00000000..b6d96638 --- /dev/null +++ b/Parsers/AMarkets/AUDUSD/2024/x-saherelm.xch.amarkets.audusd.2024.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 XCHStartegyAMarketsAUDUSD2024LongConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/AUDUSD/2024/x-saherelm.xch.amarkets.audusd.2024.short.parser.mq5 b/Parsers/AMarkets/AUDUSD/2024/x-saherelm.xch.amarkets.audusd.2024.short.parser.mq5 new file mode 100644 index 00000000..201d9f5a --- /dev/null +++ b/Parsers/AMarkets/AUDUSD/2024/x-saherelm.xch.amarkets.audusd.2024.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 XCHStartegyAMarketsAUDUSD2024ShortConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/AMarkets/AUDUSD/x-saherelm.xch.amarkets.audusd.long.parser.mq5 b/Parsers/AMarkets/AUDUSD/x-saherelm.xch.amarkets.audusd.long.parser.mq5 index 87f0e0a1..5e2f9c24 100644 --- a/Parsers/AMarkets/AUDUSD/x-saherelm.xch.amarkets.audusd.long.parser.mq5 +++ b/Parsers/AMarkets/AUDUSD/x-saherelm.xch.amarkets.audusd.long.parser.mq5 @@ -27,6 +27,7 @@ // #include "./Olds/x-saherelm.xch.amarkets.audusd.olds.long.parser.mq5" #include "./2019/x-saherelm.xch.amarkets.audusd.2019.long.parser.mq5" +#include "./2024/x-saherelm.xch.amarkets.audusd.2024.long.parser.mq5" // // Conditions Parser ... @@ -38,6 +39,7 @@ struct XCHStartegyAMarketsAUDUSDLongConditionsParser // XCHStartegyAMarketsAUDUSDOldsLongConditionsParser _oldsParser; XCHStartegyAMarketsAUDUSD2019LongConditionsParser _2019Parser; + XCHStartegyAMarketsAUDUSD2024LongConditionsParser _2024Parser; // bool IsFiltered( @@ -52,12 +54,25 @@ struct XCHStartegyAMarketsAUDUSDLongConditionsParser // if (!force) { - result = _2019Parser.IsFiltered(conditions); + // + result = + // + _2024Parser.IsFiltered(conditions) + // + || + // + _2019Parser.IsFiltered(conditions) + // + ; } else { // result = + // + _2024Parser.IsFiltered(conditions) + // + || // _2019Parser.IsFiltered(conditions) // diff --git a/Parsers/AMarkets/AUDUSD/x-saherelm.xch.amarkets.audusd.short.parser.mq5 b/Parsers/AMarkets/AUDUSD/x-saherelm.xch.amarkets.audusd.short.parser.mq5 index d618f766..486de7ca 100644 --- a/Parsers/AMarkets/AUDUSD/x-saherelm.xch.amarkets.audusd.short.parser.mq5 +++ b/Parsers/AMarkets/AUDUSD/x-saherelm.xch.amarkets.audusd.short.parser.mq5 @@ -27,6 +27,7 @@ // #include "./Olds/x-saherelm.xch.amarkets.audusd.olds.short.parser.mq5" #include "./2019/x-saherelm.xch.amarkets.audusd.2019.short.parser.mq5" +#include "./2024/x-saherelm.xch.amarkets.audusd.2024.short.parser.mq5" // // Conditions Parser ... @@ -38,6 +39,7 @@ struct XCHStartegyAMarketsAUDUSDShortConditionsParser // XCHStartegyAMarketsAUDUSDOldsShortConditionsParser _oldsParser; XCHStartegyAMarketsAUDUSD2019ShortConditionsParser _2019Parser; + XCHStartegyAMarketsAUDUSD2024ShortConditionsParser _2024Parser; // bool IsFiltered( @@ -52,12 +54,25 @@ struct XCHStartegyAMarketsAUDUSDShortConditionsParser // if (!force) { - result = _2019Parser.IsFiltered(conditions); + // + result = + // + _2024Parser.IsFiltered(conditions) + // + || + // + _2019Parser.IsFiltered(conditions) + // + ; } else { // result = + // + _2024Parser.IsFiltered(conditions) + // + || // _2019Parser.IsFiltered(conditions) // diff --git a/Parsers/AMarkets/DowJones/2024/x-saherelm.xch.amarkets.us30.2024.long.parser.mq5 b/Parsers/AMarkets/DowJones/2024/x-saherelm.xch.amarkets.us30.2024.long.parser.mq5 new file mode 100644 index 00000000..4cba3144 --- /dev/null +++ b/Parsers/AMarkets/DowJones/2024/x-saherelm.xch.amarkets.us30.2024.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 XCHStartegyAMarketsUS302024LongConditionsParser +{ + // + 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/2024/x-saherelm.xch.amarkets.us30.2024.short.parser.mq5 b/Parsers/AMarkets/DowJones/2024/x-saherelm.xch.amarkets.us30.2024.short.parser.mq5 new file mode 100644 index 00000000..4515933a --- /dev/null +++ b/Parsers/AMarkets/DowJones/2024/x-saherelm.xch.amarkets.us30.2024.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 XCHStartegyAMarketsUS302024ShortConditionsParser +{ + // + 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 1dc46a96..0dd259a7 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 @@ -27,6 +27,7 @@ // #include "./Olds/x-saherelm.xch.amarkets.us30.olds.long.parser.mq5" #include "./2019/x-saherelm.xch.amarkets.us30.2019.long.parser.mq5" +#include "./2024/x-saherelm.xch.amarkets.us30.2024.long.parser.mq5" // // Conditions Parser ... @@ -38,6 +39,7 @@ struct XCHStartegyAMarketsUS30LongConditionsParser // XCHStartegyAMarketsUS30OldsLongConditionsParser _oldsParser; XCHStartegyAMarketsUS302019LongConditionsParser _2019Parser; + XCHStartegyAMarketsUS302024LongConditionsParser _2024Parser; // bool IsFiltered( @@ -52,12 +54,25 @@ struct XCHStartegyAMarketsUS30LongConditionsParser // if (!force) { - result = _2019Parser.IsFiltered(conditions); + // + result = + // + _2024Parser.IsFiltered(conditions) + // + || + // + _2019Parser.IsFiltered(conditions) + // + ; } else { // result = + // + _2024Parser.IsFiltered(conditions) + // + || // _2019Parser.IsFiltered(conditions) // @@ -68,7 +83,6 @@ struct XCHStartegyAMarketsUS30LongConditionsParser ; } - // 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 b5a2e9a0..896a65cf 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 @@ -27,6 +27,7 @@ // #include "./Olds/x-saherelm.xch.amarkets.us30.olds.short.parser.mq5" #include "./2019/x-saherelm.xch.amarkets.us30.2019.short.parser.mq5" +#include "./2024/x-saherelm.xch.amarkets.us30.2024.short.parser.mq5" // // Conditions Parser ... @@ -38,6 +39,7 @@ struct XCHStartegyAMarketsUS30ShortConditionsParser // XCHStartegyAMarketsUS30OldsShortConditionsParser _oldsParser; XCHStartegyAMarketsUS302019ShortConditionsParser _2019Parser; + XCHStartegyAMarketsUS302024ShortConditionsParser _2024Parser; // bool IsFiltered( @@ -52,12 +54,25 @@ struct XCHStartegyAMarketsUS30ShortConditionsParser // if (!force) { - result = _2019Parser.IsFiltered(conditions); + // + result = + // + _2024Parser.IsFiltered(conditions) + // + || + // + _2019Parser.IsFiltered(conditions) + // + ; } else { // result = + // + _2024Parser.IsFiltered(conditions) + // + || // _2019Parser.IsFiltered(conditions) // diff --git a/Parsers/AMarkets/EURCAD/2024/x-saherelm.xch.amarkets.eurcad.2024.long.parser.mq5 b/Parsers/AMarkets/EURCAD/2024/x-saherelm.xch.amarkets.eurcad.2024.long.parser.mq5 new file mode 100644 index 00000000..c80aaea4 --- /dev/null +++ b/Parsers/AMarkets/EURCAD/2024/x-saherelm.xch.amarkets.eurcad.2024.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 XCHStartegyAMarketsEURCAD2024LongConditionsParser +{ + // + 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/2024/x-saherelm.xch.amarkets.eurcad.2024.short.parser.mq5 b/Parsers/AMarkets/EURCAD/2024/x-saherelm.xch.amarkets.eurcad.2024.short.parser.mq5 new file mode 100644 index 00000000..b328fd3b --- /dev/null +++ b/Parsers/AMarkets/EURCAD/2024/x-saherelm.xch.amarkets.eurcad.2024.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 XCHStartegyAMarketsEURCAD2024ShortConditionsParser +{ + // + 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 6b7e83f6..abe96bd6 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 @@ -27,6 +27,7 @@ // #include "./Olds/x-saherelm.xch.amarkets.eurcad.olds.long.parser.mq5" #include "./2019/x-saherelm.xch.amarkets.eurcad.2019.long.parser.mq5" +#include "./2024/x-saherelm.xch.amarkets.eurcad.2024.long.parser.mq5" // // Conditions Parser ... @@ -38,6 +39,7 @@ struct XCHStartegyAMarketsEURCADLongConditionsParser // XCHStartegyAMarketsEURCADOldsLongConditionsParser _oldsParser; XCHStartegyAMarketsEURCAD2019LongConditionsParser _2019Parser; + XCHStartegyAMarketsEURCAD2024LongConditionsParser _2024Parser; // bool IsFiltered( @@ -52,12 +54,25 @@ struct XCHStartegyAMarketsEURCADLongConditionsParser // if (!force) { - result = _2019Parser.IsFiltered(conditions); + // + result = + // + _2024Parser.IsFiltered(conditions) + // + || + // + _2019Parser.IsFiltered(conditions) + // + ; } else { // result = + // + _2024Parser.IsFiltered(conditions) + // + || // _2019Parser.IsFiltered(conditions) // 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 651bae58..3401fc85 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 @@ -27,6 +27,7 @@ // #include "./Olds/x-saherelm.xch.amarkets.eurcad.olds.short.parser.mq5" #include "./2019/x-saherelm.xch.amarkets.eurcad.2019.short.parser.mq5" +#include "./2024/x-saherelm.xch.amarkets.eurcad.2024.short.parser.mq5" // // Conditions Parser ... @@ -38,6 +39,7 @@ struct XCHStartegyAMarketsEURCADShortConditionsParser // XCHStartegyAMarketsEURCADOldsShortConditionsParser _oldsParser; XCHStartegyAMarketsEURCAD2019ShortConditionsParser _2019Parser; + XCHStartegyAMarketsEURCAD2024ShortConditionsParser _2024Parser; // bool IsFiltered( @@ -52,12 +54,25 @@ struct XCHStartegyAMarketsEURCADShortConditionsParser // if (!force) { - result = _2019Parser.IsFiltered(conditions); + // + result = + // + _2024Parser.IsFiltered(conditions) + // + || + // + _2019Parser.IsFiltered(conditions) + // + ; } else { // result = + // + _2024Parser.IsFiltered(conditions) + // + || // _2019Parser.IsFiltered(conditions) // diff --git a/Parsers/AMarkets/EURCHF/2024/x-saherelm.xch.amarkets.eurchf.2024.long.parser.mq5 b/Parsers/AMarkets/EURCHF/2024/x-saherelm.xch.amarkets.eurchf.2024.long.parser.mq5 new file mode 100644 index 00000000..ccc53088 --- /dev/null +++ b/Parsers/AMarkets/EURCHF/2024/x-saherelm.xch.amarkets.eurchf.2024.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 XCHStartegyAMarketsEURCHF2024LongConditionsParser +{ + // + 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/2024/x-saherelm.xch.amarkets.eurchf.2024.short.parser.mq5 b/Parsers/AMarkets/EURCHF/2024/x-saherelm.xch.amarkets.eurchf.2024.short.parser.mq5 new file mode 100644 index 00000000..707f0298 --- /dev/null +++ b/Parsers/AMarkets/EURCHF/2024/x-saherelm.xch.amarkets.eurchf.2024.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 XCHStartegyAMarketsEURCHF2024ShortConditionsParser +{ + // + 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 3cf82fa0..53d07f8d 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 @@ -27,6 +27,7 @@ // #include "./Olds/x-saherelm.xch.amarkets.eurchf.olds.long.parser.mq5" #include "./2019/x-saherelm.xch.amarkets.eurchf.2019.long.parser.mq5" +#include "./2024/x-saherelm.xch.amarkets.eurchf.2024.long.parser.mq5" // // Conditions Parser ... @@ -38,6 +39,7 @@ struct XCHStartegyAMarketsEURCHFLongConditionsParser // XCHStartegyAMarketsEURCHFOldsLongConditionsParser _oldsParser; XCHStartegyAMarketsEURCHF2019LongConditionsParser _2019Parser; + XCHStartegyAMarketsEURCHF2024LongConditionsParser _2024Parser; // bool IsFiltered( @@ -52,12 +54,25 @@ struct XCHStartegyAMarketsEURCHFLongConditionsParser // if (!force) { - result = _2019Parser.IsFiltered(conditions); + // + result = + // + _2024Parser.IsFiltered(conditions) + // + || + // + _2019Parser.IsFiltered(conditions) + // + ; } else { // result = + // + _2024Parser.IsFiltered(conditions) + // + || // _2019Parser.IsFiltered(conditions) // 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 e08dfb4f..7d9b2b70 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 @@ -27,6 +27,7 @@ // #include "./Olds/x-saherelm.xch.amarkets.eurchf.olds.short.parser.mq5" #include "./2019/x-saherelm.xch.amarkets.eurchf.2019.short.parser.mq5" +#include "./2024/x-saherelm.xch.amarkets.eurchf.2024.short.parser.mq5" // // Conditions Parser ... @@ -38,6 +39,7 @@ struct XCHStartegyAMarketsEURCHFShortConditionsParser // XCHStartegyAMarketsEURCHFOldsShortConditionsParser _oldsParser; XCHStartegyAMarketsEURCHF2019ShortConditionsParser _2019Parser; + XCHStartegyAMarketsEURCHF2024ShortConditionsParser _2024Parser; // bool IsFiltered( @@ -52,12 +54,25 @@ struct XCHStartegyAMarketsEURCHFShortConditionsParser // if (!force) { - result = _2019Parser.IsFiltered(conditions); + // + result = + // + _2024Parser.IsFiltered(conditions) + // + || + // + _2019Parser.IsFiltered(conditions) + // + ; } else { // result = + // + _2024Parser.IsFiltered(conditions) + // + || // _2019Parser.IsFiltered(conditions) // diff --git a/Parsers/AMarkets/EURGBP/2024/x-saherelm.xch.amarkets.eurgbp.2024.long.parser.mq5 b/Parsers/AMarkets/EURGBP/2024/x-saherelm.xch.amarkets.eurgbp.2024.long.parser.mq5 new file mode 100644 index 00000000..970b2d14 --- /dev/null +++ b/Parsers/AMarkets/EURGBP/2024/x-saherelm.xch.amarkets.eurgbp.2024.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 XCHStartegyAMarketsEURGBP2024LongConditionsParser +{ + // + 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/2024/x-saherelm.xch.amarkets.eurgbp.2024.short.parser.mq5 b/Parsers/AMarkets/EURGBP/2024/x-saherelm.xch.amarkets.eurgbp.2024.short.parser.mq5 new file mode 100644 index 00000000..147bb59e --- /dev/null +++ b/Parsers/AMarkets/EURGBP/2024/x-saherelm.xch.amarkets.eurgbp.2024.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 XCHStartegyAMarketsEURGBP2024ShortConditionsParser +{ + // + 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 502b6c5b..c31db5bc 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 @@ -27,6 +27,7 @@ // #include "./Olds/x-saherelm.xch.amarkets.eurgbp.olds.long.parser.mq5" #include "./2019/x-saherelm.xch.amarkets.eurgbp.2019.long.parser.mq5" +#include "./2024/x-saherelm.xch.amarkets.eurgbp.2024.long.parser.mq5" // // Conditions Parser ... @@ -38,6 +39,7 @@ struct XCHStartegyAMarketsEURGBPLongConditionsParser // XCHStartegyAMarketsEURGBPOldsLongConditionsParser _oldsParser; XCHStartegyAMarketsEURGBP2019LongConditionsParser _2019Parser; + XCHStartegyAMarketsEURGBP2024LongConditionsParser _2024Parser; // bool IsFiltered( @@ -52,12 +54,25 @@ struct XCHStartegyAMarketsEURGBPLongConditionsParser // if (!force) { - result = _2019Parser.IsFiltered(conditions); + // + result = + // + _2024Parser.IsFiltered(conditions) + // + || + // + _2019Parser.IsFiltered(conditions) + // + ; } else { // result = + // + _2024Parser.IsFiltered(conditions) + // + || // _2019Parser.IsFiltered(conditions) // 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 50901227..ddd5909a 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 @@ -27,6 +27,7 @@ // #include "./Olds/x-saherelm.xch.amarkets.eurgbp.olds.short.parser.mq5" #include "./2019/x-saherelm.xch.amarkets.eurgbp.2019.short.parser.mq5" +#include "./2024/x-saherelm.xch.amarkets.eurgbp.2024.short.parser.mq5" // // Conditions Parser ... @@ -38,6 +39,7 @@ struct XCHStartegyAMarketsEURGBPShortConditionsParser // XCHStartegyAMarketsEURGBPOldsShortConditionsParser _oldsParser; XCHStartegyAMarketsEURGBP2019ShortConditionsParser _2019Parser; + XCHStartegyAMarketsEURGBP2024ShortConditionsParser _2024Parser; // bool IsFiltered( @@ -52,12 +54,25 @@ struct XCHStartegyAMarketsEURGBPShortConditionsParser // if (!force) { - result = _2019Parser.IsFiltered(conditions); + // + result = + // + _2024Parser.IsFiltered(conditions) + // + || + // + _2019Parser.IsFiltered(conditions) + // + ; } else { // result = + // + _2024Parser.IsFiltered(conditions) + // + || // _2019Parser.IsFiltered(conditions) // diff --git a/Parsers/AMarkets/EURJPY/2024/x-saherelm.xch.amarkets.eurjpy.2024.long.parser.mq5 b/Parsers/AMarkets/EURJPY/2024/x-saherelm.xch.amarkets.eurjpy.2024.long.parser.mq5 new file mode 100644 index 00000000..e3ae9d21 --- /dev/null +++ b/Parsers/AMarkets/EURJPY/2024/x-saherelm.xch.amarkets.eurjpy.2024.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 XCHStartegyAMarketsEURJPY2024LongConditionsParser +{ + // + 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/2024/x-saherelm.xch.amarkets.eurjpy.2024.short.parser.mq5 b/Parsers/AMarkets/EURJPY/2024/x-saherelm.xch.amarkets.eurjpy.2024.short.parser.mq5 new file mode 100644 index 00000000..282b9979 --- /dev/null +++ b/Parsers/AMarkets/EURJPY/2024/x-saherelm.xch.amarkets.eurjpy.2024.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 XCHStartegyAMarketsEURJPY2024ShortConditionsParser +{ + // + 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 ca5f4cd2..b0607946 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 @@ -27,6 +27,7 @@ // #include "./Olds/x-saherelm.xch.amarkets.eurjpy.olds.long.parser.mq5" #include "./2019/x-saherelm.xch.amarkets.eurjpy.2019.long.parser.mq5" +#include "./2024/x-saherelm.xch.amarkets.eurjpy.2024.long.parser.mq5" // // Conditions Parser ... @@ -38,6 +39,7 @@ struct XCHStartegyAMarketsEURJPYLongConditionsParser // XCHStartegyAMarketsEURJPYOldsLongConditionsParser _oldsParser; XCHStartegyAMarketsEURJPY2019LongConditionsParser _2019Parser; + XCHStartegyAMarketsEURJPY2024LongConditionsParser _2024Parser; // bool IsFiltered( @@ -52,12 +54,25 @@ struct XCHStartegyAMarketsEURJPYLongConditionsParser // if (!force) { - result = _2019Parser.IsFiltered(conditions); + // + result = + // + _2024Parser.IsFiltered(conditions) + // + || + // + _2019Parser.IsFiltered(conditions) + // + ; } else { // result = + // + _2024Parser.IsFiltered(conditions) + // + || // _2019Parser.IsFiltered(conditions) // 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 cbda5163..211c82ef 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 @@ -27,6 +27,7 @@ // #include "./Olds/x-saherelm.xch.amarkets.eurjpy.olds.short.parser.mq5" #include "./2019/x-saherelm.xch.amarkets.eurjpy.2019.short.parser.mq5" +#include "./2024/x-saherelm.xch.amarkets.eurjpy.2024.short.parser.mq5" // // Conditions Parser ... @@ -38,6 +39,7 @@ struct XCHStartegyAMarketsEURJPYShortConditionsParser // XCHStartegyAMarketsEURJPYOldsShortConditionsParser _oldsParser; XCHStartegyAMarketsEURJPY2019ShortConditionsParser _2019Parser; + XCHStartegyAMarketsEURJPY2024ShortConditionsParser _2024Parser; // bool IsFiltered( @@ -52,12 +54,25 @@ struct XCHStartegyAMarketsEURJPYShortConditionsParser // if (!force) { - result = _2019Parser.IsFiltered(conditions); + // + result = + // + _2024Parser.IsFiltered(conditions) + // + || + // + _2019Parser.IsFiltered(conditions) + // + ; } else { // result = + // + _2024Parser.IsFiltered(conditions) + // + || // _2019Parser.IsFiltered(conditions) // diff --git a/Parsers/AMarkets/EURUSD/2024/x-saherelm.xch.amarkets.eurusd.2024.long.parser.mq5 b/Parsers/AMarkets/EURUSD/2024/x-saherelm.xch.amarkets.eurusd.2024.long.parser.mq5 new file mode 100644 index 00000000..3108fee1 --- /dev/null +++ b/Parsers/AMarkets/EURUSD/2024/x-saherelm.xch.amarkets.eurusd.2024.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 XCHStartegyAMarketsEURUSD2024LongConditionsParser +{ + // + 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/2024/x-saherelm.xch.amarkets.eurusd.2024.short.parser.mq5 b/Parsers/AMarkets/EURUSD/2024/x-saherelm.xch.amarkets.eurusd.2024.short.parser.mq5 new file mode 100644 index 00000000..3ddacc34 --- /dev/null +++ b/Parsers/AMarkets/EURUSD/2024/x-saherelm.xch.amarkets.eurusd.2024.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 XCHStartegyAMarketsEURUSD2024ShortConditionsParser +{ + // + 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 a62f4e8e..88b5688f 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 @@ -27,6 +27,7 @@ // #include "./Olds/x-saherelm.xch.amarkets.eurusd.olds.long.parser.mq5" #include "./2019/x-saherelm.xch.amarkets.eurusd.2019.long.parser.mq5" +#include "./2024/x-saherelm.xch.amarkets.eurusd.2024.long.parser.mq5" // // Conditions Parser ... @@ -38,6 +39,7 @@ struct XCHStartegyAMarketsEURUSDLongConditionsParser // XCHStartegyAMarketsEURUSDOldsLongConditionsParser _oldsParser; XCHStartegyAMarketsEURUSD2019LongConditionsParser _2019Parser; + XCHStartegyAMarketsEURUSD2024LongConditionsParser _2024Parser; // bool IsFiltered( @@ -52,12 +54,25 @@ struct XCHStartegyAMarketsEURUSDLongConditionsParser // if (!force) { - result = _2019Parser.IsFiltered(conditions); + // + result = + // + _2024Parser.IsFiltered(conditions) + // + || + // + _2019Parser.IsFiltered(conditions) + // + ; } else { // result = + // + _2024Parser.IsFiltered(conditions) + // + || // _2019Parser.IsFiltered(conditions) // 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 a9d05d55..afc6c2f3 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 @@ -27,6 +27,7 @@ // #include "./Olds/x-saherelm.xch.amarkets.eurusd.olds.short.parser.mq5" #include "./2019/x-saherelm.xch.amarkets.eurusd.2019.short.parser.mq5" +#include "./2024/x-saherelm.xch.amarkets.eurusd.2024.short.parser.mq5" // // Conditions Parser ... @@ -38,6 +39,7 @@ struct XCHStartegyAMarketsEURUSDShortConditionsParser // XCHStartegyAMarketsEURUSDOldsShortConditionsParser _oldsParser; XCHStartegyAMarketsEURUSD2019ShortConditionsParser _2019Parser; + XCHStartegyAMarketsEURUSD2024ShortConditionsParser _2024Parser; // bool IsFiltered( @@ -52,12 +54,25 @@ struct XCHStartegyAMarketsEURUSDShortConditionsParser // if (!force) { - result = _2019Parser.IsFiltered(conditions); + // + result = + // + _2024Parser.IsFiltered(conditions) + // + || + // + _2019Parser.IsFiltered(conditions) + // + ; } else { // result = + // + _2024Parser.IsFiltered(conditions) + // + || // _2019Parser.IsFiltered(conditions) // diff --git a/Parsers/AMarkets/GBPUSD/2024/x-saherelm.xch.amarkets.gbpusd.2024.long.parser.mq5 b/Parsers/AMarkets/GBPUSD/2024/x-saherelm.xch.amarkets.gbpusd.2024.long.parser.mq5 new file mode 100644 index 00000000..c1e7dc3a --- /dev/null +++ b/Parsers/AMarkets/GBPUSD/2024/x-saherelm.xch.amarkets.gbpusd.2024.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 XCHStartegyAMarketsGBPUSD2024LongConditionsParser +{ + // + 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/2024/x-saherelm.xch.amarkets.gbpusd.2024.short.parser.mq5 b/Parsers/AMarkets/GBPUSD/2024/x-saherelm.xch.amarkets.gbpusd.2024.short.parser.mq5 new file mode 100644 index 00000000..2e9d1105 --- /dev/null +++ b/Parsers/AMarkets/GBPUSD/2024/x-saherelm.xch.amarkets.gbpusd.2024.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 XCHStartegyAMarketsGBPUSD2024ShortConditionsParser +{ + // + 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 db97ee3e..0e685311 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 @@ -27,6 +27,7 @@ // #include "./Olds/x-saherelm.xch.amarkets.gbpusd.olds.long.parser.mq5" #include "./2019/x-saherelm.xch.amarkets.gbpusd.2019.long.parser.mq5" +#include "./2024/x-saherelm.xch.amarkets.gbpusd.2024.long.parser.mq5" // // Conditions Parser ... @@ -38,6 +39,7 @@ struct XCHStartegyAMarketsGBPUSDLongConditionsParser // XCHStartegyAMarketsGBPUSDOldsLongConditionsParser _oldsParser; XCHStartegyAMarketsGBPUSD2019LongConditionsParser _2019Parser; + XCHStartegyAMarketsGBPUSD2024LongConditionsParser _2024Parser; // bool IsFiltered( @@ -52,12 +54,25 @@ struct XCHStartegyAMarketsGBPUSDLongConditionsParser // if (!force) { - result = _2019Parser.IsFiltered(conditions); + // + result = + // + _2024Parser.IsFiltered(conditions) + // + || + // + _2019Parser.IsFiltered(conditions) + // + ; } else { // result = + // + _2024Parser.IsFiltered(conditions) + // + || // _2019Parser.IsFiltered(conditions) // 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 875f29b1..d566338a 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 @@ -27,6 +27,7 @@ // #include "./Olds/x-saherelm.xch.amarkets.gbpusd.olds.short.parser.mq5" #include "./2019/x-saherelm.xch.amarkets.gbpusd.2019.short.parser.mq5" +#include "./2024/x-saherelm.xch.amarkets.gbpusd.2024.short.parser.mq5" // // Conditions Parser ... @@ -38,6 +39,7 @@ struct XCHStartegyAMarketsGBPUSDShortConditionsParser // XCHStartegyAMarketsGBPUSDOldsShortConditionsParser _oldsParser; XCHStartegyAMarketsGBPUSD2019ShortConditionsParser _2019Parser; + XCHStartegyAMarketsGBPUSD2024ShortConditionsParser _2024Parser; // bool IsFiltered( @@ -52,12 +54,25 @@ struct XCHStartegyAMarketsGBPUSDShortConditionsParser // if (!force) { - result = _2019Parser.IsFiltered(conditions); + // + result = + // + _2024Parser.IsFiltered(conditions) + // + || + // + _2019Parser.IsFiltered(conditions) + // + ; } else { // result = + // + _2024Parser.IsFiltered(conditions) + // + || // _2019Parser.IsFiltered(conditions) // diff --git a/Parsers/AMarkets/NZDUSD/2024/x-saherelm.xch.amarkets.nzdusd.2024.long.parser.mq5 b/Parsers/AMarkets/NZDUSD/2024/x-saherelm.xch.amarkets.nzdusd.2024.long.parser.mq5 new file mode 100644 index 00000000..513db621 --- /dev/null +++ b/Parsers/AMarkets/NZDUSD/2024/x-saherelm.xch.amarkets.nzdusd.2024.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 XCHStartegyAMarketsNZDUSD2024LongConditionsParser +{ + // + 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/2024/x-saherelm.xch.amarkets.nzdusd.2024.short.parser.mq5 b/Parsers/AMarkets/NZDUSD/2024/x-saherelm.xch.amarkets.nzdusd.2024.short.parser.mq5 new file mode 100644 index 00000000..7555fde0 --- /dev/null +++ b/Parsers/AMarkets/NZDUSD/2024/x-saherelm.xch.amarkets.nzdusd.2024.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 XCHStartegyAMarketsNZDUSD2024ShortConditionsParser +{ + // + 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 4403f32f..51f3e555 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 @@ -27,6 +27,7 @@ // #include "./Olds/x-saherelm.xch.amarkets.nzdusd.olds.long.parser.mq5" #include "./2019/x-saherelm.xch.amarkets.nzdusd.2019.long.parser.mq5" +#include "./2024/x-saherelm.xch.amarkets.nzdusd.2024.long.parser.mq5" // // Conditions Parser ... @@ -38,6 +39,7 @@ struct XCHStartegyAMarketsNZDUSDLongConditionsParser // XCHStartegyAMarketsNZDUSDOldsLongConditionsParser _oldsParser; XCHStartegyAMarketsNZDUSD2019LongConditionsParser _2019Parser; + XCHStartegyAMarketsNZDUSD2024LongConditionsParser _2024Parser; // bool IsFiltered( @@ -52,12 +54,25 @@ struct XCHStartegyAMarketsNZDUSDLongConditionsParser // if (!force) { - result = _2019Parser.IsFiltered(conditions); + // + result = + // + _2024Parser.IsFiltered(conditions) + // + || + // + _2019Parser.IsFiltered(conditions) + // + ; } else { // result = + // + _2024Parser.IsFiltered(conditions) + // + || // _2019Parser.IsFiltered(conditions) // 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 7507f9e2..06f2e27d 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 @@ -27,6 +27,7 @@ // #include "./Olds/x-saherelm.xch.amarkets.nzdusd.olds.short.parser.mq5" #include "./2019/x-saherelm.xch.amarkets.nzdusd.2019.short.parser.mq5" +#include "./2024/x-saherelm.xch.amarkets.nzdusd.2024.short.parser.mq5" // // Conditions Parser ... @@ -38,6 +39,7 @@ struct XCHStartegyAMarketsNZDUSDShortConditionsParser // XCHStartegyAMarketsNZDUSDOldsShortConditionsParser _oldsParser; XCHStartegyAMarketsNZDUSD2019ShortConditionsParser _2019Parser; + XCHStartegyAMarketsNZDUSD2024ShortConditionsParser _2024Parser; // bool IsFiltered( @@ -52,12 +54,25 @@ struct XCHStartegyAMarketsNZDUSDShortConditionsParser // if (!force) { - result = _2019Parser.IsFiltered(conditions); + // + result = + // + _2024Parser.IsFiltered(conditions) + // + || + // + _2019Parser.IsFiltered(conditions) + // + ; } else { // result = + // + _2024Parser.IsFiltered(conditions) + // + || // _2019Parser.IsFiltered(conditions) // diff --git a/Parsers/AMarkets/USDCAD/2024/x-saherelm.xch.amarkets.usdcad.2024.long.parser.mq5 b/Parsers/AMarkets/USDCAD/2024/x-saherelm.xch.amarkets.usdcad.2024.long.parser.mq5 new file mode 100644 index 00000000..6b599915 --- /dev/null +++ b/Parsers/AMarkets/USDCAD/2024/x-saherelm.xch.amarkets.usdcad.2024.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 XCHStartegyAMarketsUSDCAD2024LongConditionsParser +{ + // + 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/2024/x-saherelm.xch.amarkets.usdcad.2024.short.parser.mq5 b/Parsers/AMarkets/USDCAD/2024/x-saherelm.xch.amarkets.usdcad.2024.short.parser.mq5 new file mode 100644 index 00000000..b7c31738 --- /dev/null +++ b/Parsers/AMarkets/USDCAD/2024/x-saherelm.xch.amarkets.usdcad.2024.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 XCHStartegyAMarketsUSDCAD2024ShortConditionsParser +{ + // + 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 f6a808de..8ffcff59 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 @@ -27,6 +27,7 @@ // #include "./Olds/x-saherelm.xch.amarkets.usdcad.olds.long.parser.mq5" #include "./2019/x-saherelm.xch.amarkets.usdcad.2019.long.parser.mq5" +#include "./2024/x-saherelm.xch.amarkets.usdcad.2024.long.parser.mq5" // // Conditions Parser ... @@ -38,6 +39,7 @@ struct XCHStartegyAMarketsUSDCADLongConditionsParser // XCHStartegyAMarketsUSDCADOldsLongConditionsParser _oldsParser; XCHStartegyAMarketsUSDCAD2019LongConditionsParser _2019Parser; + XCHStartegyAMarketsUSDCAD2024LongConditionsParser _2024Parser; // bool IsFiltered( @@ -52,12 +54,25 @@ struct XCHStartegyAMarketsUSDCADLongConditionsParser // if (!force) { - result = _2019Parser.IsFiltered(conditions); + // + result = + // + _2024Parser.IsFiltered(conditions) + // + || + // + _2019Parser.IsFiltered(conditions) + // + ; } else { // result = + // + _2024Parser.IsFiltered(conditions) + // + || // _2019Parser.IsFiltered(conditions) // 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 95efbe7b..a4c37ae9 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 @@ -27,6 +27,7 @@ // #include "./Olds/x-saherelm.xch.amarkets.usdcad.olds.short.parser.mq5" #include "./2019/x-saherelm.xch.amarkets.usdcad.2019.short.parser.mq5" +#include "./2024/x-saherelm.xch.amarkets.usdcad.2024.short.parser.mq5" // // Conditions Parser ... @@ -38,6 +39,7 @@ struct XCHStartegyAMarketsUSDCADShortConditionsParser // XCHStartegyAMarketsUSDCADOldsShortConditionsParser _oldsParser; XCHStartegyAMarketsUSDCAD2019ShortConditionsParser _2019Parser; + XCHStartegyAMarketsUSDCAD2024ShortConditionsParser _2024Parser; // bool IsFiltered( @@ -52,12 +54,25 @@ struct XCHStartegyAMarketsUSDCADShortConditionsParser // if (!force) { - result = _2019Parser.IsFiltered(conditions); + // + result = + // + _2024Parser.IsFiltered(conditions) + // + || + // + _2019Parser.IsFiltered(conditions) + // + ; } else { // result = + // + _2024Parser.IsFiltered(conditions) + // + || // _2019Parser.IsFiltered(conditions) // diff --git a/Parsers/AMarkets/USDCHF/2024/x-saherelm.xch.amarkets.usdchf.2024.long.parser.mq5 b/Parsers/AMarkets/USDCHF/2024/x-saherelm.xch.amarkets.usdchf.2024.long.parser.mq5 new file mode 100644 index 00000000..2dc178c9 --- /dev/null +++ b/Parsers/AMarkets/USDCHF/2024/x-saherelm.xch.amarkets.usdchf.2024.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 XCHStartegyAMarketsUSDCHF2024LongConditionsParser +{ + // + 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/2024/x-saherelm.xch.amarkets.usdchf.2024.short.parser.mq5 b/Parsers/AMarkets/USDCHF/2024/x-saherelm.xch.amarkets.usdchf.2024.short.parser.mq5 new file mode 100644 index 00000000..92a70b04 --- /dev/null +++ b/Parsers/AMarkets/USDCHF/2024/x-saherelm.xch.amarkets.usdchf.2024.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 XCHStartegyAMarketsUSDCHF2024ShortConditionsParser +{ + // + 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 530906b1..afc5f870 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 @@ -27,6 +27,7 @@ // #include "./Olds/x-saherelm.xch.amarkets.usdchf.olds.long.parser.mq5" #include "./2019/x-saherelm.xch.amarkets.usdchf.2019.long.parser.mq5" +#include "./2024/x-saherelm.xch.amarkets.usdchf.2024.long.parser.mq5" // // Conditions Parser ... @@ -34,10 +35,11 @@ struct XCHStartegyAMarketsUSDCHFLongConditionsParser { // string _version; - + // XCHStartegyAMarketsUSDCHFOldsLongConditionsParser _oldsParser; XCHStartegyAMarketsUSDCHF2019LongConditionsParser _2019Parser; + XCHStartegyAMarketsUSDCHF2024LongConditionsParser _2024Parser; // bool IsFiltered( @@ -52,12 +54,25 @@ struct XCHStartegyAMarketsUSDCHFLongConditionsParser // if (!force) { - result = _2019Parser.IsFiltered(conditions); + // + result = + // + _2024Parser.IsFiltered(conditions) + // + || + // + _2019Parser.IsFiltered(conditions) + // + ; } else { // result = + // + _2024Parser.IsFiltered(conditions) + // + || // _2019Parser.IsFiltered(conditions) // 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 c7143532..a4dbac13 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 @@ -27,6 +27,7 @@ // #include "./Olds/x-saherelm.xch.amarkets.usdchf.olds.short.parser.mq5" #include "./2019/x-saherelm.xch.amarkets.usdchf.2019.short.parser.mq5" +#include "./2024/x-saherelm.xch.amarkets.usdchf.2024.short.parser.mq5" // // Conditions Parser ... @@ -38,6 +39,7 @@ struct XCHStartegyAMarketsUSDCHFShortConditionsParser // XCHStartegyAMarketsUSDCHFOldsShortConditionsParser _oldsParser; XCHStartegyAMarketsUSDCHF2019ShortConditionsParser _2019Parser; + XCHStartegyAMarketsUSDCHF2024ShortConditionsParser _2024Parser; // bool IsFiltered( @@ -52,12 +54,25 @@ struct XCHStartegyAMarketsUSDCHFShortConditionsParser // if (!force) { - result = _2019Parser.IsFiltered(conditions); + // + result = + // + _2024Parser.IsFiltered(conditions) + // + || + // + _2019Parser.IsFiltered(conditions) + // + ; } else { // result = + // + _2024Parser.IsFiltered(conditions) + // + || // _2019Parser.IsFiltered(conditions) // diff --git a/Parsers/AMarkets/USDJPY/2024/x-saherelm.xch.amarkets.usdjpy.2024.long.parser.mq5 b/Parsers/AMarkets/USDJPY/2024/x-saherelm.xch.amarkets.usdjpy.2024.long.parser.mq5 new file mode 100644 index 00000000..58f240cd --- /dev/null +++ b/Parsers/AMarkets/USDJPY/2024/x-saherelm.xch.amarkets.usdjpy.2024.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 XCHStartegyAMarketsUSDJPY2024LongConditionsParser +{ + // + 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/2024/x-saherelm.xch.amarkets.usdjpy.2024.short.parser.mq5 b/Parsers/AMarkets/USDJPY/2024/x-saherelm.xch.amarkets.usdjpy.2024.short.parser.mq5 new file mode 100644 index 00000000..9de05ceb --- /dev/null +++ b/Parsers/AMarkets/USDJPY/2024/x-saherelm.xch.amarkets.usdjpy.2024.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 XCHStartegyAMarketsUSDJPY2024ShortConditionsParser +{ + // + 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 3a24dd8d..d9e3b0a5 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 @@ -27,6 +27,7 @@ // #include "./Olds/x-saherelm.xch.amarkets.usdjpy.olds.long.parser.mq5" #include "./2019/x-saherelm.xch.amarkets.usdjpy.2019.long.parser.mq5" +#include "./2024/x-saherelm.xch.amarkets.usdjpy.2024.long.parser.mq5" // // Conditions Parser ... @@ -38,6 +39,7 @@ struct XCHStartegyAMarketsUSDJPYLongConditionsParser // XCHStartegyAMarketsUSDJPYOldsLongConditionsParser _oldsParser; XCHStartegyAMarketsUSDJPY2019LongConditionsParser _2019Parser; + XCHStartegyAMarketsUSDJPY2024LongConditionsParser _2024Parser; // bool IsFiltered( @@ -52,12 +54,25 @@ struct XCHStartegyAMarketsUSDJPYLongConditionsParser // if (!force) { - result = _2019Parser.IsFiltered(conditions); + // + result = + // + _2024Parser.IsFiltered(conditions) + // + || + // + _2019Parser.IsFiltered(conditions) + // + ; } else { // result = + // + _2024Parser.IsFiltered(conditions) + // + || // _2019Parser.IsFiltered(conditions) // 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 d5f94a63..7c443278 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 @@ -27,6 +27,7 @@ // #include "./Olds/x-saherelm.xch.amarkets.usdjpy.olds.short.parser.mq5" #include "./2019/x-saherelm.xch.amarkets.usdjpy.2019.short.parser.mq5" +#include "./2024/x-saherelm.xch.amarkets.usdjpy.2024.short.parser.mq5" // // Conditions Parser ... @@ -38,6 +39,7 @@ struct XCHStartegyAMarketsUSDJPYShortConditionsParser // XCHStartegyAMarketsUSDJPYOldsShortConditionsParser _oldsParser; XCHStartegyAMarketsUSDJPY2019ShortConditionsParser _2019Parser; + XCHStartegyAMarketsUSDJPY2024ShortConditionsParser _2024Parser; // bool IsFiltered( @@ -52,12 +54,25 @@ struct XCHStartegyAMarketsUSDJPYShortConditionsParser // if (!force) { - result = _2019Parser.IsFiltered(conditions); + // + result = + // + _2024Parser.IsFiltered(conditions) + // + || + // + _2019Parser.IsFiltered(conditions) + // + ; } else { // result = + // + _2024Parser.IsFiltered(conditions) + // + || // _2019Parser.IsFiltered(conditions) // diff --git a/Parsers/AMarkets/XAUUSD/2024/x-saherelm.xch.amarkets.xauusd.2024.long.parser.mq5 b/Parsers/AMarkets/XAUUSD/2024/x-saherelm.xch.amarkets.xauusd.2024.long.parser.mq5 new file mode 100644 index 00000000..372a21b5 --- /dev/null +++ b/Parsers/AMarkets/XAUUSD/2024/x-saherelm.xch.amarkets.xauusd.2024.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 XCHStartegyAMarketsXAUUSD2024LongConditionsParser +{ + // + 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/2024/x-saherelm.xch.amarkets.xauusd.2024.short.parser.mq5 b/Parsers/AMarkets/XAUUSD/2024/x-saherelm.xch.amarkets.xauusd.2024.short.parser.mq5 new file mode 100644 index 00000000..a30c1d34 --- /dev/null +++ b/Parsers/AMarkets/XAUUSD/2024/x-saherelm.xch.amarkets.xauusd.2024.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 XCHStartegyAMarketsXAUUSD2024ShortConditionsParser +{ + // + 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 631155ef..9a30b7a7 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 @@ -27,6 +27,7 @@ // #include "./Olds/x-saherelm.xch.amarkets.xauusd.olds.long.parser.mq5" #include "./2019/x-saherelm.xch.amarkets.xauusd.2019.long.parser.mq5" +#include "./2024/x-saherelm.xch.amarkets.xauusd.2024.long.parser.mq5" // // Conditions Parser ... @@ -38,6 +39,7 @@ struct XCHStartegyAMarketsXAUUSDLongConditionsParser // XCHStartegyAMarketsXAUUSDOldsLongConditionsParser _oldsParser; XCHStartegyAMarketsXAUUSD2019LongConditionsParser _2019Parser; + XCHStartegyAMarketsXAUUSD2024LongConditionsParser _2024Parser; // bool IsFiltered( @@ -52,12 +54,25 @@ struct XCHStartegyAMarketsXAUUSDLongConditionsParser // if (!force) { - result = _2019Parser.IsFiltered(conditions); + // + result = + // + _2024Parser.IsFiltered(conditions) + // + || + // + _2019Parser.IsFiltered(conditions) + // + ; } else { // result = + // + _2024Parser.IsFiltered(conditions) + // + || // _2019Parser.IsFiltered(conditions) // 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 9793ddaa..6ff9e668 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 @@ -27,6 +27,7 @@ // #include "./Olds/x-saherelm.xch.amarkets.xauusd.olds.short.parser.mq5" #include "./2019/x-saherelm.xch.amarkets.xauusd.2019.short.parser.mq5" +#include "./2024/x-saherelm.xch.amarkets.xauusd.2024.short.parser.mq5" // // Conditions Parser ... @@ -38,6 +39,7 @@ struct XCHStartegyAMarketsXAUUSDShortConditionsParser // XCHStartegyAMarketsXAUUSDOldsShortConditionsParser _oldsParser; XCHStartegyAMarketsXAUUSD2019ShortConditionsParser _2019Parser; + XCHStartegyAMarketsXAUUSD2024ShortConditionsParser _2024Parser; // bool IsFiltered( @@ -52,12 +54,25 @@ struct XCHStartegyAMarketsXAUUSDShortConditionsParser // if (!force) { - result = _2019Parser.IsFiltered(conditions); + // + result = + // + _2024Parser.IsFiltered(conditions) + // + || + // + _2019Parser.IsFiltered(conditions) + // + ; } else { // result = + // + _2024Parser.IsFiltered(conditions) + // + || // _2019Parser.IsFiltered(conditions) // diff --git a/Parsers/AMarkets/x-saherelm.xch.che.amarkets.parser.mq5 b/Parsers/AMarkets/x-saherelm.xch.che.amarkets.parser.mq5 new file mode 100644 index 00000000..a9685f57 --- /dev/null +++ b/Parsers/AMarkets/x-saherelm.xch.che.amarkets.parser.mq5 @@ -0,0 +1,573 @@ +/////////////////////////////////////////////////////// +// +// SaherElm IT Center MQL5 Strategy Parser Library +// ------------------------------------------------ +// Name: XCHCHEStartegyConditionsParser +// 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" + +// +#include "./DowJones/x-saherelm.xch.che.amarkets.us30.long.parser.mq5" +#include "./DowJones/x-saherelm.xch.che.amarkets.us30.short.parser.mq5" +#include "./EURGBP/x-saherelm.xch.che.amarkets.eurgbp.long.parser.mq5" +#include "./EURGBP/x-saherelm.xch.che.amarkets.eurgbp.short.parser.mq5" +#include "./EURJPY/x-saherelm.xch.che.amarkets.eurjpy.long.parser.mq5" +#include "./EURJPY/x-saherelm.xch.che.amarkets.eurjpy.short.parser.mq5" +#include "./EURCHF/x-saherelm.xch.che.amarkets.eurchf.long.parser.mq5" +#include "./EURCHF/x-saherelm.xch.che.amarkets.eurchf.short.parser.mq5" +#include "./AUDUSD/x-saherelm.xch.che.amarkets.audusd.long.parser.mq5" +#include "./AUDUSD/x-saherelm.xch.che.amarkets.audusd.short.parser.mq5" +#include "./NZDUSD/x-saherelm.xch.che.amarkets.nzdusd.long.parser.mq5" +#include "./NZDUSD/x-saherelm.xch.che.amarkets.nzdusd.short.parser.mq5" +#include "./USDCAD/x-saherelm.xch.che.amarkets.usdcad.long.parser.mq5" +#include "./USDCAD/x-saherelm.xch.che.amarkets.usdcad.short.parser.mq5" +#include "./EURCAD/x-saherelm.xch.che.amarkets.eurcad.long.parser.mq5" +#include "./EURCAD/x-saherelm.xch.che.amarkets.eurcad.short.parser.mq5" +#include "./EURUSD/x-saherelm.xch.che.amarkets.eurusd.long.parser.mq5" +#include "./EURUSD/x-saherelm.xch.che.amarkets.eurusd.short.parser.mq5" +#include "./USDJPY/x-saherelm.xch.che.amarkets.usdjpy.long.parser.mq5" +#include "./USDJPY/x-saherelm.xch.che.amarkets.usdjpy.short.parser.mq5" +#include "./USDCHF/x-saherelm.xch.che.amarkets.usdchf.long.parser.mq5" +#include "./USDCHF/x-saherelm.xch.che.amarkets.usdchf.short.parser.mq5" +#include "./GBPUSD/x-saherelm.xch.che.amarkets.gbpusd.long.parser.mq5" +#include "./GBPUSD/x-saherelm.xch.che.amarkets.gbpusd.short.parser.mq5" +#include "./XAUUSD/x-saherelm.xch.che.amarkets.xauusd.long.parser.mq5" +#include "./XAUUSD/x-saherelm.xch.che.amarkets.xauusd.short.parser.mq5" + +// +// Conditions Parser ... +struct XCHCHEStartegyAMarketsConditionsParser +{ + // + string _version; + + // + // Parsers ... + XSymbolParser _symbolParser; + + // + // EURUSD ... + XCHCHEStartegyAMarketsEURUSDLongConditionsParser _eurusdLongParser; + XCHCHEStartegyAMarketsEURUSDShortConditionsParser _eurusdShortParser; + + // + // GBPUSD ... + XCHCHEStartegyAMarketsGBPUSDLongConditionsParser _gbpusdLongParser; + XCHCHEStartegyAMarketsGBPUSDShortConditionsParser _gbpusdShortParser; + + // + // EURGBP ... + XCHCHEStartegyAMarketsEURGBPLongConditionsParser _eurgbpLongParser; + XCHCHEStartegyAMarketsEURGBPShortConditionsParser _eurgbpShortParser; + + // + // USDJPY ... + XCHCHEStartegyAMarketsUSDJPYLongConditionsParser _usdjpyLongParser; + XCHCHEStartegyAMarketsUSDJPYShortConditionsParser _usdjpyShortParser; + + // + // EURJPY ... + XCHCHEStartegyAMarketsEURJPYLongConditionsParser _eurjpyLongParser; + XCHCHEStartegyAMarketsEURJPYShortConditionsParser _eurjpyShortParser; + + // + // USDCHF ... + XCHCHEStartegyAMarketsUSDCHFLongConditionsParser _usdchfLongParser; + XCHCHEStartegyAMarketsUSDCHFShortConditionsParser _usdchfShortParser; + + // + // EURCHF ... + XCHCHEStartegyAMarketsEURCHFLongConditionsParser _eurchfLongParser; + XCHCHEStartegyAMarketsEURCHFShortConditionsParser _eurchfShortParser; + + // + // XAUUSD ... + XCHCHEStartegyAMarketsXAUUSDLongConditionsParser _xauusdLongParser; + XCHCHEStartegyAMarketsXAUUSDShortConditionsParser _xauusdShortParser; + + // + // DOWJONES ... + XCHCHEStartegyAMarketsUS30LongConditionsParser _dowjonesLongParser; + XCHCHEStartegyAMarketsUS30ShortConditionsParser _dowjonesShortParser; + + // + // AUDUSD ... + XCHCHEStartegyAMarketsAUDUSDLongConditionsParser _audusdLongParser; + XCHCHEStartegyAMarketsAUDUSDShortConditionsParser _audusdShortParser; + + // + // NZDUSD ... + XCHCHEStartegyAMarketsNZDUSDLongConditionsParser _nzdusdLongParser; + XCHCHEStartegyAMarketsNZDUSDShortConditionsParser _nzdusdShortParser; + + // + // USDCAD ... + XCHCHEStartegyAMarketsUSDCADLongConditionsParser _usdcadLongParser; + XCHCHEStartegyAMarketsUSDCADShortConditionsParser _usdcadShortParser; + + // + // EURCAD ... + XCHCHEStartegyAMarketsEURCADLongConditionsParser _eurcadLongParser; + XCHCHEStartegyAMarketsEURCADShortConditionsParser _eurcadShortParser; + + // + bool IsFiltered( + XSignal &signal, // Provided Signal + XCHStrategyConditions &conditions, // Market Conditions + bool force = false // + ) + { + // + bool result = false; + + // + // Validate Args ... + if (!signal.IsValid() || !conditions.IsValid()) + { + // + result = true; + return result; + } + + // + bool isLong = IsLong(signal.type); + + // + result = + // + isLong + ? IsLongFiltered( + signal, + conditions, + force // + ) + : IsShortFiltered( + signal, + conditions, + force // + ) + // + ; + + // + return result; + } + + // + // Filter Long Signals ... + bool IsLongFiltered( + XSignal &signal, + XCHStrategyConditions &conditions, + bool force = false // + ) + { + // + bool result = false; + + // + bool isEURUSD = _symbolParser.IsEURUSD(signal.symbol); + bool isGBPUSD = _symbolParser.IsGBPUSD(signal.symbol); + bool isEURGBP = _symbolParser.IsEURGBP(signal.symbol); + bool isXAUUSD = _symbolParser.IsXAUUSD(signal.symbol); + bool isUSDJPY = _symbolParser.IsUSDJPY(signal.symbol); + bool isEURJPY = _symbolParser.IsEURJPY(signal.symbol); + bool isUSDCHF = _symbolParser.IsUSDCHF(signal.symbol); + bool isEURCHF = _symbolParser.IsEURCHF(signal.symbol); + bool isAUDUSD = _symbolParser.IsAUDUSD(signal.symbol); + bool isNZDUSD = _symbolParser.IsNZDUSD(signal.symbol); + bool isUSDCAD = _symbolParser.IsUSDCAD(signal.symbol); + bool isEURCAD = _symbolParser.IsEURCAD(signal.symbol); + bool isDowJones = _symbolParser.IsDowJones(signal.symbol); + + // + bool isEURUSDFiltered = _eurusdLongParser.IsFiltered( + signal, + conditions // + ); + bool isGBPUSDFiltered = _gbpusdLongParser.IsFiltered( + signal, + conditions // + ); + bool isEURGBPFiltered = _eurgbpLongParser.IsFiltered( + signal, + conditions // + ); + bool isUSDJPYFiltered = _usdjpyLongParser.IsFiltered( + signal, + conditions // + ); + bool isEURJPYFiltered = _eurjpyLongParser.IsFiltered( + signal, + conditions // + ); + bool isUSDCHFFiltered = _usdchfLongParser.IsFiltered( + signal, + conditions // + ); + bool isEURCHFFiltered = _eurchfLongParser.IsFiltered( + signal, + conditions // + ); + bool isXAUUSDFiltered = _xauusdLongParser.IsFiltered( + signal, + conditions // + ); + bool isAUDUSDFiltered = _audusdLongParser.IsFiltered( + signal, + conditions // + ); + bool isNZDUSDFiltered = _nzdusdLongParser.IsFiltered( + signal, + conditions // + ); + bool isUSDCADFiltered = _usdcadLongParser.IsFiltered( + signal, + conditions // + ); + bool isEURCADFiltered = _eurcadLongParser.IsFiltered( + signal, + conditions // + ); + bool isDowJonesFiltered = _dowjonesLongParser.IsFiltered( + signal, + conditions // + ); + + // + if (!force) + { + // + if (isEURUSD) + { + result = isEURUSDFiltered; + } + else if (isGBPUSD) + { + result = isGBPUSDFiltered; + } + else if (isEURGBP) + { + result = isEURGBPFiltered; + } + else if (isUSDJPY) + { + result = isUSDJPYFiltered; + } + else if (isEURJPY) + { + result = isEURJPYFiltered; + } + else if (isUSDCHF) + { + result = isUSDCHFFiltered; + } + else if (isEURCHF) + { + result = isEURCHFFiltered; + } + else if (isXAUUSD) + { + result = isXAUUSDFiltered; + } + else if (isAUDUSD) + { + result = isAUDUSDFiltered; + } + else if (isNZDUSD) + { + result = isNZDUSDFiltered; + } + else if (isUSDCAD) + { + result = isUSDCADFiltered; + } + else if (isEURCAD) + { + result = isEURCADFiltered; + } + else if (isDowJones) + { + result = isDowJonesFiltered; + } + } + else + { + // + result = + // + isEURUSDFiltered + // + || + // + isGBPUSDFiltered + // + || + // + isEURGBPFiltered + // + || + // + isUSDJPYFiltered + // + || + // + isEURJPYFiltered + // + || + // + isUSDCHFFiltered + // + || + // + isEURCHFFiltered + // + || + // + isXAUUSDFiltered + // + || + // + isAUDUSDFiltered + // + || + // + isNZDUSDFiltered + // + || + // + isUSDCADFiltered + // + || + // + isEURCADFiltered + // + || + // + isDowJonesFiltered + // + ; + } + + // + return result; + } + + // + // Filter Short Signals ... + bool IsShortFiltered( + XSignal &signal, + XCHStrategyConditions &conditions, + bool force = false // + ) + { + // + bool result = false; + + // + bool isEURUSD = _symbolParser.IsEURUSD(signal.symbol); + bool isGBPUSD = _symbolParser.IsGBPUSD(signal.symbol); + bool isEURGBP = _symbolParser.IsEURGBP(signal.symbol); + bool isXAUUSD = _symbolParser.IsXAUUSD(signal.symbol); + bool isUSDJPY = _symbolParser.IsUSDJPY(signal.symbol); + bool isEURJPY = _symbolParser.IsEURJPY(signal.symbol); + bool isUSDCHF = _symbolParser.IsUSDCHF(signal.symbol); + bool isEURCHF = _symbolParser.IsEURCHF(signal.symbol); + bool isAUDUSD = _symbolParser.IsAUDUSD(signal.symbol); + bool isNZDUSD = _symbolParser.IsNZDUSD(signal.symbol); + bool isUSDCAD = _symbolParser.IsUSDCAD(signal.symbol); + bool isEURCAD = _symbolParser.IsEURCAD(signal.symbol); + bool isDowJones = _symbolParser.IsDowJones(signal.symbol); + + // + bool isEURUSDFiltered = _eurusdShortParser.IsFiltered( + signal, + conditions // + ); + bool isGBPUSDFiltered = _gbpusdShortParser.IsFiltered( + signal, + conditions // + ); + bool isEURGBPFiltered = _eurgbpShortParser.IsFiltered( + signal, + conditions // + ); + bool isUSDJPYFiltered = _usdjpyShortParser.IsFiltered( + signal, + conditions // + ); + bool isEURJPYFiltered = _eurjpyShortParser.IsFiltered( + signal, + conditions // + ); + bool isUSDCHFFiltered = _usdchfShortParser.IsFiltered( + signal, + conditions // + ); + bool isEURCHFFiltered = _eurchfShortParser.IsFiltered( + signal, + conditions // + ); + bool isXAUUSDFiltered = _xauusdShortParser.IsFiltered( + signal, + conditions // + ); + bool isAUDUSDFiltered = _audusdShortParser.IsFiltered( + signal, + conditions // + ); + bool isNZDUSDFiltered = _nzdusdShortParser.IsFiltered( + signal, + conditions // + ); + bool isUSDCADFiltered = _usdcadShortParser.IsFiltered( + signal, + conditions // + ); + bool isEURCADFiltered = _eurcadShortParser.IsFiltered( + signal, + conditions // + ); + bool isDowJonesFiltered = _dowjonesShortParser.IsFiltered( + signal, + conditions // + ); + + // + if (!force) + { + // + if (isEURUSD) + { + result = isEURUSDFiltered; + } + else if (isGBPUSD) + { + result = isGBPUSDFiltered; + } + else if (isEURGBP) + { + result = isEURGBPFiltered; + } + else if (isUSDJPY) + { + result = isUSDJPYFiltered; + } + else if (isEURJPY) + { + result = isEURJPYFiltered; + } + else if (isUSDCHF) + { + result = isUSDCHFFiltered; + } + else if (isEURCHF) + { + result = isEURCHFFiltered; + } + else if (isXAUUSD) + { + result = isXAUUSDFiltered; + } + else if (isAUDUSD) + { + result = isAUDUSDFiltered; + } + else if (isNZDUSD) + { + result = isNZDUSDFiltered; + } + else if (isUSDCAD) + { + result = isUSDCADFiltered; + } + else if (isEURCAD) + { + result = isEURCADFiltered; + } + else if (isDowJones) + { + result = isDowJonesFiltered; + } + } + else + { + // + result = + // + isEURUSDFiltered + // + || + // + isGBPUSDFiltered + // + || + // + isEURGBPFiltered + // + || + // + isUSDJPYFiltered + // + || + // + isEURJPYFiltered + // + || + // + isUSDCHFFiltered + // + || + // + isEURCHFFiltered + // + || + // + isXAUUSDFiltered + // + || + // + isAUDUSDFiltered + // + || + // + isNZDUSDFiltered + // + || + // + isUSDCADFiltered + // + || + // + isEURCADFiltered + // + || + // + isDowJonesFiltered + // + ; + } + + // + return result; + } +}; + +// \ No newline at end of file