diff --git a/Parsers/x-saherelm.xch.parser.mq5 b/Parsers/x-saherelm.xch.parser.mq5 index dcc24425..4e880826 100644 --- a/Parsers/x-saherelm.xch.parser.mq5 +++ b/Parsers/x-saherelm.xch.parser.mq5 @@ -27,8 +27,14 @@ // #include "../Parsers/x-saherelm.xch.eurusd.long.parser.mq5" #include "../Parsers/x-saherelm.xch.eurusd.short.parser.mq5" +#include "../Parsers/x-saherelm.xch.usdjpy.long.parser.mq5" +#include "../Parsers/x-saherelm.xch.usdjpy.short.parser.mq5" +#include "../Parsers/x-saherelm.xch.usdchf.long.parser.mq5" +#include "../Parsers/x-saherelm.xch.usdchf.short.parser.mq5" #include "../Parsers/x-saherelm.xch.gbpusd.long.parser.mq5" #include "../Parsers/x-saherelm.xch.gbpusd.short.parser.mq5" +#include "../Parsers/x-saherelm.xch.xauusd.long.parser.mq5" +#include "../Parsers/x-saherelm.xch.xauusd.short.parser.mq5" // // Conditions Parser ... @@ -51,6 +57,18 @@ struct XCHStartegyConditionsParser XCHStartegyGBPUSDLongConditionsParser _gbpusdLongParser; XCHStartegyGBPUSDShortConditionsParser _gbpusdShortParser; + // + XCHStartegyUSDJPYLongConditionsParser _usdjpyLongParser; + XCHStartegyUSDJPYShortConditionsParser _usdjpyShortParser; + + // + XCHStartegyUSDCHFLongConditionsParser _usdchfLongParser; + XCHStartegyUSDCHFShortConditionsParser _usdchfShortParser; + + // + XCHStartegyXAUUSDLongConditionsParser _xauusdLongParser; + XCHStartegyXAUUSDShortConditionsParser _xauusdShortParser; + // string GenerateSignalConditions(XCHStrategyConditions &conditions) { @@ -807,6 +825,9 @@ struct XCHStartegyConditionsParser // bool isEURUSD = _symbolParser.IsEURUSD(signal.symbol); bool isGBPUSD = _symbolParser.IsGBPUSD(signal.symbol); + bool isXAUUSD = _symbolParser.IsXAUUSD(signal.symbol); + bool isUSDJPY = _symbolParser.IsUSDJPY(signal.symbol); + bool isUSDCHF = _symbolParser.IsUSDCHF(signal.symbol); // if (!force) @@ -824,6 +845,24 @@ struct XCHStartegyConditionsParser result = _gbpusdLongParser.IsFiltered(conditions); } + else if (isUSDJPY) + { + // + result = + _usdjpyLongParser.IsFiltered(conditions); + } + else if (isUSDCHF) + { + // + result = + _usdchfLongParser.IsFiltered(conditions); + } + else if (isXAUUSD) + { + // + result = + _xauusdLongParser.IsFiltered(conditions); + } } else { @@ -836,6 +875,18 @@ struct XCHStartegyConditionsParser // _gbpusdLongParser.IsFiltered(conditions) // + || + // + _usdjpyLongParser.IsFiltered(conditions) + // + || + // + _usdchfLongParser.IsFiltered(conditions) + // + || + // + _xauusdLongParser.IsFiltered(conditions) + // ; } @@ -857,6 +908,9 @@ struct XCHStartegyConditionsParser // bool isEURUSD = _symbolParser.IsEURUSD(signal.symbol); bool isGBPUSD = _symbolParser.IsGBPUSD(signal.symbol); + bool isXAUUSD = _symbolParser.IsXAUUSD(signal.symbol); + bool isUSDJPY = _symbolParser.IsUSDJPY(signal.symbol); + bool isUSDCHF = _symbolParser.IsUSDCHF(signal.symbol); // if (!force) @@ -874,6 +928,24 @@ struct XCHStartegyConditionsParser result = _gbpusdShortParser.IsFiltered(conditions); } + else if (isUSDJPY) + { + // + result = + _usdjpyShortParser.IsFiltered(conditions); + } + else if (isUSDCHF) + { + // + result = + _usdchfShortParser.IsFiltered(conditions); + } + else if (isXAUUSD) + { + // + result = + _xauusdShortParser.IsFiltered(conditions); + } } else { @@ -886,6 +958,18 @@ struct XCHStartegyConditionsParser // _gbpusdShortParser.IsFiltered(conditions) // + || + // + _usdjpyShortParser.IsFiltered(conditions) + // + || + // + _usdchfShortParser.IsFiltered(conditions) + // + || + // + _xauusdShortParser.IsFiltered(conditions) + // ; } diff --git a/Parsers/x-saherelm.xch.usdchf.long.parser.mq5 b/Parsers/x-saherelm.xch.usdchf.long.parser.mq5 new file mode 100644 index 00000000..6bd5dec9 --- /dev/null +++ b/Parsers/x-saherelm.xch.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 XCHStartegyUSDCHFLongConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/x-saherelm.xch.usdchf.short.parser.mq5 b/Parsers/x-saherelm.xch.usdchf.short.parser.mq5 new file mode 100644 index 00000000..399fe24b --- /dev/null +++ b/Parsers/x-saherelm.xch.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 XCHStartegyUSDCHFShortConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/x-saherelm.xch.usdjpy.long.parser.mq5 b/Parsers/x-saherelm.xch.usdjpy.long.parser.mq5 new file mode 100644 index 00000000..0b1c4c47 --- /dev/null +++ b/Parsers/x-saherelm.xch.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 XCHStartegyUSDJPYLongConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/x-saherelm.xch.usdjpy.short.parser.mq5 b/Parsers/x-saherelm.xch.usdjpy.short.parser.mq5 new file mode 100644 index 00000000..f9375f31 --- /dev/null +++ b/Parsers/x-saherelm.xch.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 XCHStartegyUSDJPYShortConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/x-saherelm.xch.xauusd.long.parser.mq5 b/Parsers/x-saherelm.xch.xauusd.long.parser.mq5 new file mode 100644 index 00000000..68e3abc5 --- /dev/null +++ b/Parsers/x-saherelm.xch.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 XCHStartegyXAUUSDLongConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file diff --git a/Parsers/x-saherelm.xch.xauusd.short.parser.mq5 b/Parsers/x-saherelm.xch.xauusd.short.parser.mq5 new file mode 100644 index 00000000..ca2b6207 --- /dev/null +++ b/Parsers/x-saherelm.xch.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 XCHStartegyXAUUSDShortConditionsParser +{ + // + string _version; + + // + bool IsFiltered( + XCHStrategyConditions &conditions // + ) + { + // + bool result = false; + + // + result = + // + false + // + ; + + // + return result; + } +}; + +// \ No newline at end of file