prepare 2024 parsers for each asset in amarkets ...

This commit is contained in:
2024-08-24 16:33:26 +03:30
parent 4e1a6f508e
commit 96773553bc
53 changed files with 2394 additions and 28 deletions
@@ -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;
}
};
//
@@ -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;
}
};
//
@@ -27,6 +27,7 @@
// //
#include "./Olds/x-saherelm.xch.amarkets.audusd.olds.long.parser.mq5" #include "./Olds/x-saherelm.xch.amarkets.audusd.olds.long.parser.mq5"
#include "./2019/x-saherelm.xch.amarkets.audusd.2019.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 ... // Conditions Parser ...
@@ -38,6 +39,7 @@ struct XCHStartegyAMarketsAUDUSDLongConditionsParser
// //
XCHStartegyAMarketsAUDUSDOldsLongConditionsParser _oldsParser; XCHStartegyAMarketsAUDUSDOldsLongConditionsParser _oldsParser;
XCHStartegyAMarketsAUDUSD2019LongConditionsParser _2019Parser; XCHStartegyAMarketsAUDUSD2019LongConditionsParser _2019Parser;
XCHStartegyAMarketsAUDUSD2024LongConditionsParser _2024Parser;
// //
bool IsFiltered( bool IsFiltered(
@@ -52,12 +54,25 @@ struct XCHStartegyAMarketsAUDUSDLongConditionsParser
// //
if (!force) if (!force)
{ {
result = _2019Parser.IsFiltered(conditions); //
result =
//
_2024Parser.IsFiltered(conditions)
//
||
//
_2019Parser.IsFiltered(conditions)
//
;
} }
else else
{ {
// //
result = result =
//
_2024Parser.IsFiltered(conditions)
//
||
// //
_2019Parser.IsFiltered(conditions) _2019Parser.IsFiltered(conditions)
// //
@@ -27,6 +27,7 @@
// //
#include "./Olds/x-saherelm.xch.amarkets.audusd.olds.short.parser.mq5" #include "./Olds/x-saherelm.xch.amarkets.audusd.olds.short.parser.mq5"
#include "./2019/x-saherelm.xch.amarkets.audusd.2019.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 ... // Conditions Parser ...
@@ -38,6 +39,7 @@ struct XCHStartegyAMarketsAUDUSDShortConditionsParser
// //
XCHStartegyAMarketsAUDUSDOldsShortConditionsParser _oldsParser; XCHStartegyAMarketsAUDUSDOldsShortConditionsParser _oldsParser;
XCHStartegyAMarketsAUDUSD2019ShortConditionsParser _2019Parser; XCHStartegyAMarketsAUDUSD2019ShortConditionsParser _2019Parser;
XCHStartegyAMarketsAUDUSD2024ShortConditionsParser _2024Parser;
// //
bool IsFiltered( bool IsFiltered(
@@ -52,12 +54,25 @@ struct XCHStartegyAMarketsAUDUSDShortConditionsParser
// //
if (!force) if (!force)
{ {
result = _2019Parser.IsFiltered(conditions); //
result =
//
_2024Parser.IsFiltered(conditions)
//
||
//
_2019Parser.IsFiltered(conditions)
//
;
} }
else else
{ {
// //
result = result =
//
_2024Parser.IsFiltered(conditions)
//
||
// //
_2019Parser.IsFiltered(conditions) _2019Parser.IsFiltered(conditions)
// //
@@ -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;
}
};
//
@@ -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;
}
};
//
@@ -27,6 +27,7 @@
// //
#include "./Olds/x-saherelm.xch.amarkets.us30.olds.long.parser.mq5" #include "./Olds/x-saherelm.xch.amarkets.us30.olds.long.parser.mq5"
#include "./2019/x-saherelm.xch.amarkets.us30.2019.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 ... // Conditions Parser ...
@@ -38,6 +39,7 @@ struct XCHStartegyAMarketsUS30LongConditionsParser
// //
XCHStartegyAMarketsUS30OldsLongConditionsParser _oldsParser; XCHStartegyAMarketsUS30OldsLongConditionsParser _oldsParser;
XCHStartegyAMarketsUS302019LongConditionsParser _2019Parser; XCHStartegyAMarketsUS302019LongConditionsParser _2019Parser;
XCHStartegyAMarketsUS302024LongConditionsParser _2024Parser;
// //
bool IsFiltered( bool IsFiltered(
@@ -52,12 +54,25 @@ struct XCHStartegyAMarketsUS30LongConditionsParser
// //
if (!force) if (!force)
{ {
result = _2019Parser.IsFiltered(conditions); //
result =
//
_2024Parser.IsFiltered(conditions)
//
||
//
_2019Parser.IsFiltered(conditions)
//
;
} }
else else
{ {
// //
result = result =
//
_2024Parser.IsFiltered(conditions)
//
||
// //
_2019Parser.IsFiltered(conditions) _2019Parser.IsFiltered(conditions)
// //
@@ -68,7 +83,6 @@ struct XCHStartegyAMarketsUS30LongConditionsParser
; ;
} }
// //
return result; return result;
} }
@@ -27,6 +27,7 @@
// //
#include "./Olds/x-saherelm.xch.amarkets.us30.olds.short.parser.mq5" #include "./Olds/x-saherelm.xch.amarkets.us30.olds.short.parser.mq5"
#include "./2019/x-saherelm.xch.amarkets.us30.2019.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 ... // Conditions Parser ...
@@ -38,6 +39,7 @@ struct XCHStartegyAMarketsUS30ShortConditionsParser
// //
XCHStartegyAMarketsUS30OldsShortConditionsParser _oldsParser; XCHStartegyAMarketsUS30OldsShortConditionsParser _oldsParser;
XCHStartegyAMarketsUS302019ShortConditionsParser _2019Parser; XCHStartegyAMarketsUS302019ShortConditionsParser _2019Parser;
XCHStartegyAMarketsUS302024ShortConditionsParser _2024Parser;
// //
bool IsFiltered( bool IsFiltered(
@@ -52,12 +54,25 @@ struct XCHStartegyAMarketsUS30ShortConditionsParser
// //
if (!force) if (!force)
{ {
result = _2019Parser.IsFiltered(conditions); //
result =
//
_2024Parser.IsFiltered(conditions)
//
||
//
_2019Parser.IsFiltered(conditions)
//
;
} }
else else
{ {
// //
result = result =
//
_2024Parser.IsFiltered(conditions)
//
||
// //
_2019Parser.IsFiltered(conditions) _2019Parser.IsFiltered(conditions)
// //
@@ -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;
}
};
//
@@ -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;
}
};
//
@@ -27,6 +27,7 @@
// //
#include "./Olds/x-saherelm.xch.amarkets.eurcad.olds.long.parser.mq5" #include "./Olds/x-saherelm.xch.amarkets.eurcad.olds.long.parser.mq5"
#include "./2019/x-saherelm.xch.amarkets.eurcad.2019.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 ... // Conditions Parser ...
@@ -38,6 +39,7 @@ struct XCHStartegyAMarketsEURCADLongConditionsParser
// //
XCHStartegyAMarketsEURCADOldsLongConditionsParser _oldsParser; XCHStartegyAMarketsEURCADOldsLongConditionsParser _oldsParser;
XCHStartegyAMarketsEURCAD2019LongConditionsParser _2019Parser; XCHStartegyAMarketsEURCAD2019LongConditionsParser _2019Parser;
XCHStartegyAMarketsEURCAD2024LongConditionsParser _2024Parser;
// //
bool IsFiltered( bool IsFiltered(
@@ -52,12 +54,25 @@ struct XCHStartegyAMarketsEURCADLongConditionsParser
// //
if (!force) if (!force)
{ {
result = _2019Parser.IsFiltered(conditions); //
result =
//
_2024Parser.IsFiltered(conditions)
//
||
//
_2019Parser.IsFiltered(conditions)
//
;
} }
else else
{ {
// //
result = result =
//
_2024Parser.IsFiltered(conditions)
//
||
// //
_2019Parser.IsFiltered(conditions) _2019Parser.IsFiltered(conditions)
// //
@@ -27,6 +27,7 @@
// //
#include "./Olds/x-saherelm.xch.amarkets.eurcad.olds.short.parser.mq5" #include "./Olds/x-saherelm.xch.amarkets.eurcad.olds.short.parser.mq5"
#include "./2019/x-saherelm.xch.amarkets.eurcad.2019.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 ... // Conditions Parser ...
@@ -38,6 +39,7 @@ struct XCHStartegyAMarketsEURCADShortConditionsParser
// //
XCHStartegyAMarketsEURCADOldsShortConditionsParser _oldsParser; XCHStartegyAMarketsEURCADOldsShortConditionsParser _oldsParser;
XCHStartegyAMarketsEURCAD2019ShortConditionsParser _2019Parser; XCHStartegyAMarketsEURCAD2019ShortConditionsParser _2019Parser;
XCHStartegyAMarketsEURCAD2024ShortConditionsParser _2024Parser;
// //
bool IsFiltered( bool IsFiltered(
@@ -52,12 +54,25 @@ struct XCHStartegyAMarketsEURCADShortConditionsParser
// //
if (!force) if (!force)
{ {
result = _2019Parser.IsFiltered(conditions); //
result =
//
_2024Parser.IsFiltered(conditions)
//
||
//
_2019Parser.IsFiltered(conditions)
//
;
} }
else else
{ {
// //
result = result =
//
_2024Parser.IsFiltered(conditions)
//
||
// //
_2019Parser.IsFiltered(conditions) _2019Parser.IsFiltered(conditions)
// //
@@ -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;
}
};
//
@@ -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;
}
};
//
@@ -27,6 +27,7 @@
// //
#include "./Olds/x-saherelm.xch.amarkets.eurchf.olds.long.parser.mq5" #include "./Olds/x-saherelm.xch.amarkets.eurchf.olds.long.parser.mq5"
#include "./2019/x-saherelm.xch.amarkets.eurchf.2019.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 ... // Conditions Parser ...
@@ -38,6 +39,7 @@ struct XCHStartegyAMarketsEURCHFLongConditionsParser
// //
XCHStartegyAMarketsEURCHFOldsLongConditionsParser _oldsParser; XCHStartegyAMarketsEURCHFOldsLongConditionsParser _oldsParser;
XCHStartegyAMarketsEURCHF2019LongConditionsParser _2019Parser; XCHStartegyAMarketsEURCHF2019LongConditionsParser _2019Parser;
XCHStartegyAMarketsEURCHF2024LongConditionsParser _2024Parser;
// //
bool IsFiltered( bool IsFiltered(
@@ -52,12 +54,25 @@ struct XCHStartegyAMarketsEURCHFLongConditionsParser
// //
if (!force) if (!force)
{ {
result = _2019Parser.IsFiltered(conditions); //
result =
//
_2024Parser.IsFiltered(conditions)
//
||
//
_2019Parser.IsFiltered(conditions)
//
;
} }
else else
{ {
// //
result = result =
//
_2024Parser.IsFiltered(conditions)
//
||
// //
_2019Parser.IsFiltered(conditions) _2019Parser.IsFiltered(conditions)
// //
@@ -27,6 +27,7 @@
// //
#include "./Olds/x-saherelm.xch.amarkets.eurchf.olds.short.parser.mq5" #include "./Olds/x-saherelm.xch.amarkets.eurchf.olds.short.parser.mq5"
#include "./2019/x-saherelm.xch.amarkets.eurchf.2019.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 ... // Conditions Parser ...
@@ -38,6 +39,7 @@ struct XCHStartegyAMarketsEURCHFShortConditionsParser
// //
XCHStartegyAMarketsEURCHFOldsShortConditionsParser _oldsParser; XCHStartegyAMarketsEURCHFOldsShortConditionsParser _oldsParser;
XCHStartegyAMarketsEURCHF2019ShortConditionsParser _2019Parser; XCHStartegyAMarketsEURCHF2019ShortConditionsParser _2019Parser;
XCHStartegyAMarketsEURCHF2024ShortConditionsParser _2024Parser;
// //
bool IsFiltered( bool IsFiltered(
@@ -52,12 +54,25 @@ struct XCHStartegyAMarketsEURCHFShortConditionsParser
// //
if (!force) if (!force)
{ {
result = _2019Parser.IsFiltered(conditions); //
result =
//
_2024Parser.IsFiltered(conditions)
//
||
//
_2019Parser.IsFiltered(conditions)
//
;
} }
else else
{ {
// //
result = result =
//
_2024Parser.IsFiltered(conditions)
//
||
// //
_2019Parser.IsFiltered(conditions) _2019Parser.IsFiltered(conditions)
// //
@@ -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;
}
};
//
@@ -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;
}
};
//
@@ -27,6 +27,7 @@
// //
#include "./Olds/x-saherelm.xch.amarkets.eurgbp.olds.long.parser.mq5" #include "./Olds/x-saherelm.xch.amarkets.eurgbp.olds.long.parser.mq5"
#include "./2019/x-saherelm.xch.amarkets.eurgbp.2019.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 ... // Conditions Parser ...
@@ -38,6 +39,7 @@ struct XCHStartegyAMarketsEURGBPLongConditionsParser
// //
XCHStartegyAMarketsEURGBPOldsLongConditionsParser _oldsParser; XCHStartegyAMarketsEURGBPOldsLongConditionsParser _oldsParser;
XCHStartegyAMarketsEURGBP2019LongConditionsParser _2019Parser; XCHStartegyAMarketsEURGBP2019LongConditionsParser _2019Parser;
XCHStartegyAMarketsEURGBP2024LongConditionsParser _2024Parser;
// //
bool IsFiltered( bool IsFiltered(
@@ -52,12 +54,25 @@ struct XCHStartegyAMarketsEURGBPLongConditionsParser
// //
if (!force) if (!force)
{ {
result = _2019Parser.IsFiltered(conditions); //
result =
//
_2024Parser.IsFiltered(conditions)
//
||
//
_2019Parser.IsFiltered(conditions)
//
;
} }
else else
{ {
// //
result = result =
//
_2024Parser.IsFiltered(conditions)
//
||
// //
_2019Parser.IsFiltered(conditions) _2019Parser.IsFiltered(conditions)
// //
@@ -27,6 +27,7 @@
// //
#include "./Olds/x-saherelm.xch.amarkets.eurgbp.olds.short.parser.mq5" #include "./Olds/x-saherelm.xch.amarkets.eurgbp.olds.short.parser.mq5"
#include "./2019/x-saherelm.xch.amarkets.eurgbp.2019.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 ... // Conditions Parser ...
@@ -38,6 +39,7 @@ struct XCHStartegyAMarketsEURGBPShortConditionsParser
// //
XCHStartegyAMarketsEURGBPOldsShortConditionsParser _oldsParser; XCHStartegyAMarketsEURGBPOldsShortConditionsParser _oldsParser;
XCHStartegyAMarketsEURGBP2019ShortConditionsParser _2019Parser; XCHStartegyAMarketsEURGBP2019ShortConditionsParser _2019Parser;
XCHStartegyAMarketsEURGBP2024ShortConditionsParser _2024Parser;
// //
bool IsFiltered( bool IsFiltered(
@@ -52,12 +54,25 @@ struct XCHStartegyAMarketsEURGBPShortConditionsParser
// //
if (!force) if (!force)
{ {
result = _2019Parser.IsFiltered(conditions); //
result =
//
_2024Parser.IsFiltered(conditions)
//
||
//
_2019Parser.IsFiltered(conditions)
//
;
} }
else else
{ {
// //
result = result =
//
_2024Parser.IsFiltered(conditions)
//
||
// //
_2019Parser.IsFiltered(conditions) _2019Parser.IsFiltered(conditions)
// //
@@ -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;
}
};
//
@@ -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;
}
};
//
@@ -27,6 +27,7 @@
// //
#include "./Olds/x-saherelm.xch.amarkets.eurjpy.olds.long.parser.mq5" #include "./Olds/x-saherelm.xch.amarkets.eurjpy.olds.long.parser.mq5"
#include "./2019/x-saherelm.xch.amarkets.eurjpy.2019.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 ... // Conditions Parser ...
@@ -38,6 +39,7 @@ struct XCHStartegyAMarketsEURJPYLongConditionsParser
// //
XCHStartegyAMarketsEURJPYOldsLongConditionsParser _oldsParser; XCHStartegyAMarketsEURJPYOldsLongConditionsParser _oldsParser;
XCHStartegyAMarketsEURJPY2019LongConditionsParser _2019Parser; XCHStartegyAMarketsEURJPY2019LongConditionsParser _2019Parser;
XCHStartegyAMarketsEURJPY2024LongConditionsParser _2024Parser;
// //
bool IsFiltered( bool IsFiltered(
@@ -52,12 +54,25 @@ struct XCHStartegyAMarketsEURJPYLongConditionsParser
// //
if (!force) if (!force)
{ {
result = _2019Parser.IsFiltered(conditions); //
result =
//
_2024Parser.IsFiltered(conditions)
//
||
//
_2019Parser.IsFiltered(conditions)
//
;
} }
else else
{ {
// //
result = result =
//
_2024Parser.IsFiltered(conditions)
//
||
// //
_2019Parser.IsFiltered(conditions) _2019Parser.IsFiltered(conditions)
// //
@@ -27,6 +27,7 @@
// //
#include "./Olds/x-saherelm.xch.amarkets.eurjpy.olds.short.parser.mq5" #include "./Olds/x-saherelm.xch.amarkets.eurjpy.olds.short.parser.mq5"
#include "./2019/x-saherelm.xch.amarkets.eurjpy.2019.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 ... // Conditions Parser ...
@@ -38,6 +39,7 @@ struct XCHStartegyAMarketsEURJPYShortConditionsParser
// //
XCHStartegyAMarketsEURJPYOldsShortConditionsParser _oldsParser; XCHStartegyAMarketsEURJPYOldsShortConditionsParser _oldsParser;
XCHStartegyAMarketsEURJPY2019ShortConditionsParser _2019Parser; XCHStartegyAMarketsEURJPY2019ShortConditionsParser _2019Parser;
XCHStartegyAMarketsEURJPY2024ShortConditionsParser _2024Parser;
// //
bool IsFiltered( bool IsFiltered(
@@ -52,12 +54,25 @@ struct XCHStartegyAMarketsEURJPYShortConditionsParser
// //
if (!force) if (!force)
{ {
result = _2019Parser.IsFiltered(conditions); //
result =
//
_2024Parser.IsFiltered(conditions)
//
||
//
_2019Parser.IsFiltered(conditions)
//
;
} }
else else
{ {
// //
result = result =
//
_2024Parser.IsFiltered(conditions)
//
||
// //
_2019Parser.IsFiltered(conditions) _2019Parser.IsFiltered(conditions)
// //
@@ -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;
}
};
//
@@ -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;
}
};
//
@@ -27,6 +27,7 @@
// //
#include "./Olds/x-saherelm.xch.amarkets.eurusd.olds.long.parser.mq5" #include "./Olds/x-saherelm.xch.amarkets.eurusd.olds.long.parser.mq5"
#include "./2019/x-saherelm.xch.amarkets.eurusd.2019.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 ... // Conditions Parser ...
@@ -38,6 +39,7 @@ struct XCHStartegyAMarketsEURUSDLongConditionsParser
// //
XCHStartegyAMarketsEURUSDOldsLongConditionsParser _oldsParser; XCHStartegyAMarketsEURUSDOldsLongConditionsParser _oldsParser;
XCHStartegyAMarketsEURUSD2019LongConditionsParser _2019Parser; XCHStartegyAMarketsEURUSD2019LongConditionsParser _2019Parser;
XCHStartegyAMarketsEURUSD2024LongConditionsParser _2024Parser;
// //
bool IsFiltered( bool IsFiltered(
@@ -52,12 +54,25 @@ struct XCHStartegyAMarketsEURUSDLongConditionsParser
// //
if (!force) if (!force)
{ {
result = _2019Parser.IsFiltered(conditions); //
result =
//
_2024Parser.IsFiltered(conditions)
//
||
//
_2019Parser.IsFiltered(conditions)
//
;
} }
else else
{ {
// //
result = result =
//
_2024Parser.IsFiltered(conditions)
//
||
// //
_2019Parser.IsFiltered(conditions) _2019Parser.IsFiltered(conditions)
// //
@@ -27,6 +27,7 @@
// //
#include "./Olds/x-saherelm.xch.amarkets.eurusd.olds.short.parser.mq5" #include "./Olds/x-saherelm.xch.amarkets.eurusd.olds.short.parser.mq5"
#include "./2019/x-saherelm.xch.amarkets.eurusd.2019.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 ... // Conditions Parser ...
@@ -38,6 +39,7 @@ struct XCHStartegyAMarketsEURUSDShortConditionsParser
// //
XCHStartegyAMarketsEURUSDOldsShortConditionsParser _oldsParser; XCHStartegyAMarketsEURUSDOldsShortConditionsParser _oldsParser;
XCHStartegyAMarketsEURUSD2019ShortConditionsParser _2019Parser; XCHStartegyAMarketsEURUSD2019ShortConditionsParser _2019Parser;
XCHStartegyAMarketsEURUSD2024ShortConditionsParser _2024Parser;
// //
bool IsFiltered( bool IsFiltered(
@@ -52,12 +54,25 @@ struct XCHStartegyAMarketsEURUSDShortConditionsParser
// //
if (!force) if (!force)
{ {
result = _2019Parser.IsFiltered(conditions); //
result =
//
_2024Parser.IsFiltered(conditions)
//
||
//
_2019Parser.IsFiltered(conditions)
//
;
} }
else else
{ {
// //
result = result =
//
_2024Parser.IsFiltered(conditions)
//
||
// //
_2019Parser.IsFiltered(conditions) _2019Parser.IsFiltered(conditions)
// //
@@ -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;
}
};
//
@@ -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;
}
};
//
@@ -27,6 +27,7 @@
// //
#include "./Olds/x-saherelm.xch.amarkets.gbpusd.olds.long.parser.mq5" #include "./Olds/x-saherelm.xch.amarkets.gbpusd.olds.long.parser.mq5"
#include "./2019/x-saherelm.xch.amarkets.gbpusd.2019.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 ... // Conditions Parser ...
@@ -38,6 +39,7 @@ struct XCHStartegyAMarketsGBPUSDLongConditionsParser
// //
XCHStartegyAMarketsGBPUSDOldsLongConditionsParser _oldsParser; XCHStartegyAMarketsGBPUSDOldsLongConditionsParser _oldsParser;
XCHStartegyAMarketsGBPUSD2019LongConditionsParser _2019Parser; XCHStartegyAMarketsGBPUSD2019LongConditionsParser _2019Parser;
XCHStartegyAMarketsGBPUSD2024LongConditionsParser _2024Parser;
// //
bool IsFiltered( bool IsFiltered(
@@ -52,12 +54,25 @@ struct XCHStartegyAMarketsGBPUSDLongConditionsParser
// //
if (!force) if (!force)
{ {
result = _2019Parser.IsFiltered(conditions); //
result =
//
_2024Parser.IsFiltered(conditions)
//
||
//
_2019Parser.IsFiltered(conditions)
//
;
} }
else else
{ {
// //
result = result =
//
_2024Parser.IsFiltered(conditions)
//
||
// //
_2019Parser.IsFiltered(conditions) _2019Parser.IsFiltered(conditions)
// //
@@ -27,6 +27,7 @@
// //
#include "./Olds/x-saherelm.xch.amarkets.gbpusd.olds.short.parser.mq5" #include "./Olds/x-saherelm.xch.amarkets.gbpusd.olds.short.parser.mq5"
#include "./2019/x-saherelm.xch.amarkets.gbpusd.2019.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 ... // Conditions Parser ...
@@ -38,6 +39,7 @@ struct XCHStartegyAMarketsGBPUSDShortConditionsParser
// //
XCHStartegyAMarketsGBPUSDOldsShortConditionsParser _oldsParser; XCHStartegyAMarketsGBPUSDOldsShortConditionsParser _oldsParser;
XCHStartegyAMarketsGBPUSD2019ShortConditionsParser _2019Parser; XCHStartegyAMarketsGBPUSD2019ShortConditionsParser _2019Parser;
XCHStartegyAMarketsGBPUSD2024ShortConditionsParser _2024Parser;
// //
bool IsFiltered( bool IsFiltered(
@@ -52,12 +54,25 @@ struct XCHStartegyAMarketsGBPUSDShortConditionsParser
// //
if (!force) if (!force)
{ {
result = _2019Parser.IsFiltered(conditions); //
result =
//
_2024Parser.IsFiltered(conditions)
//
||
//
_2019Parser.IsFiltered(conditions)
//
;
} }
else else
{ {
// //
result = result =
//
_2024Parser.IsFiltered(conditions)
//
||
// //
_2019Parser.IsFiltered(conditions) _2019Parser.IsFiltered(conditions)
// //
@@ -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;
}
};
//
@@ -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;
}
};
//
@@ -27,6 +27,7 @@
// //
#include "./Olds/x-saherelm.xch.amarkets.nzdusd.olds.long.parser.mq5" #include "./Olds/x-saherelm.xch.amarkets.nzdusd.olds.long.parser.mq5"
#include "./2019/x-saherelm.xch.amarkets.nzdusd.2019.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 ... // Conditions Parser ...
@@ -38,6 +39,7 @@ struct XCHStartegyAMarketsNZDUSDLongConditionsParser
// //
XCHStartegyAMarketsNZDUSDOldsLongConditionsParser _oldsParser; XCHStartegyAMarketsNZDUSDOldsLongConditionsParser _oldsParser;
XCHStartegyAMarketsNZDUSD2019LongConditionsParser _2019Parser; XCHStartegyAMarketsNZDUSD2019LongConditionsParser _2019Parser;
XCHStartegyAMarketsNZDUSD2024LongConditionsParser _2024Parser;
// //
bool IsFiltered( bool IsFiltered(
@@ -52,12 +54,25 @@ struct XCHStartegyAMarketsNZDUSDLongConditionsParser
// //
if (!force) if (!force)
{ {
result = _2019Parser.IsFiltered(conditions); //
result =
//
_2024Parser.IsFiltered(conditions)
//
||
//
_2019Parser.IsFiltered(conditions)
//
;
} }
else else
{ {
// //
result = result =
//
_2024Parser.IsFiltered(conditions)
//
||
// //
_2019Parser.IsFiltered(conditions) _2019Parser.IsFiltered(conditions)
// //
@@ -27,6 +27,7 @@
// //
#include "./Olds/x-saherelm.xch.amarkets.nzdusd.olds.short.parser.mq5" #include "./Olds/x-saherelm.xch.amarkets.nzdusd.olds.short.parser.mq5"
#include "./2019/x-saherelm.xch.amarkets.nzdusd.2019.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 ... // Conditions Parser ...
@@ -38,6 +39,7 @@ struct XCHStartegyAMarketsNZDUSDShortConditionsParser
// //
XCHStartegyAMarketsNZDUSDOldsShortConditionsParser _oldsParser; XCHStartegyAMarketsNZDUSDOldsShortConditionsParser _oldsParser;
XCHStartegyAMarketsNZDUSD2019ShortConditionsParser _2019Parser; XCHStartegyAMarketsNZDUSD2019ShortConditionsParser _2019Parser;
XCHStartegyAMarketsNZDUSD2024ShortConditionsParser _2024Parser;
// //
bool IsFiltered( bool IsFiltered(
@@ -52,12 +54,25 @@ struct XCHStartegyAMarketsNZDUSDShortConditionsParser
// //
if (!force) if (!force)
{ {
result = _2019Parser.IsFiltered(conditions); //
result =
//
_2024Parser.IsFiltered(conditions)
//
||
//
_2019Parser.IsFiltered(conditions)
//
;
} }
else else
{ {
// //
result = result =
//
_2024Parser.IsFiltered(conditions)
//
||
// //
_2019Parser.IsFiltered(conditions) _2019Parser.IsFiltered(conditions)
// //
@@ -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;
}
};
//
@@ -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;
}
};
//
@@ -27,6 +27,7 @@
// //
#include "./Olds/x-saherelm.xch.amarkets.usdcad.olds.long.parser.mq5" #include "./Olds/x-saherelm.xch.amarkets.usdcad.olds.long.parser.mq5"
#include "./2019/x-saherelm.xch.amarkets.usdcad.2019.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 ... // Conditions Parser ...
@@ -38,6 +39,7 @@ struct XCHStartegyAMarketsUSDCADLongConditionsParser
// //
XCHStartegyAMarketsUSDCADOldsLongConditionsParser _oldsParser; XCHStartegyAMarketsUSDCADOldsLongConditionsParser _oldsParser;
XCHStartegyAMarketsUSDCAD2019LongConditionsParser _2019Parser; XCHStartegyAMarketsUSDCAD2019LongConditionsParser _2019Parser;
XCHStartegyAMarketsUSDCAD2024LongConditionsParser _2024Parser;
// //
bool IsFiltered( bool IsFiltered(
@@ -52,12 +54,25 @@ struct XCHStartegyAMarketsUSDCADLongConditionsParser
// //
if (!force) if (!force)
{ {
result = _2019Parser.IsFiltered(conditions); //
result =
//
_2024Parser.IsFiltered(conditions)
//
||
//
_2019Parser.IsFiltered(conditions)
//
;
} }
else else
{ {
// //
result = result =
//
_2024Parser.IsFiltered(conditions)
//
||
// //
_2019Parser.IsFiltered(conditions) _2019Parser.IsFiltered(conditions)
// //
@@ -27,6 +27,7 @@
// //
#include "./Olds/x-saherelm.xch.amarkets.usdcad.olds.short.parser.mq5" #include "./Olds/x-saherelm.xch.amarkets.usdcad.olds.short.parser.mq5"
#include "./2019/x-saherelm.xch.amarkets.usdcad.2019.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 ... // Conditions Parser ...
@@ -38,6 +39,7 @@ struct XCHStartegyAMarketsUSDCADShortConditionsParser
// //
XCHStartegyAMarketsUSDCADOldsShortConditionsParser _oldsParser; XCHStartegyAMarketsUSDCADOldsShortConditionsParser _oldsParser;
XCHStartegyAMarketsUSDCAD2019ShortConditionsParser _2019Parser; XCHStartegyAMarketsUSDCAD2019ShortConditionsParser _2019Parser;
XCHStartegyAMarketsUSDCAD2024ShortConditionsParser _2024Parser;
// //
bool IsFiltered( bool IsFiltered(
@@ -52,12 +54,25 @@ struct XCHStartegyAMarketsUSDCADShortConditionsParser
// //
if (!force) if (!force)
{ {
result = _2019Parser.IsFiltered(conditions); //
result =
//
_2024Parser.IsFiltered(conditions)
//
||
//
_2019Parser.IsFiltered(conditions)
//
;
} }
else else
{ {
// //
result = result =
//
_2024Parser.IsFiltered(conditions)
//
||
// //
_2019Parser.IsFiltered(conditions) _2019Parser.IsFiltered(conditions)
// //
@@ -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;
}
};
//
@@ -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;
}
};
//
@@ -27,6 +27,7 @@
// //
#include "./Olds/x-saherelm.xch.amarkets.usdchf.olds.long.parser.mq5" #include "./Olds/x-saherelm.xch.amarkets.usdchf.olds.long.parser.mq5"
#include "./2019/x-saherelm.xch.amarkets.usdchf.2019.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 ... // Conditions Parser ...
@@ -34,10 +35,11 @@ struct XCHStartegyAMarketsUSDCHFLongConditionsParser
{ {
// //
string _version; string _version;
// //
XCHStartegyAMarketsUSDCHFOldsLongConditionsParser _oldsParser; XCHStartegyAMarketsUSDCHFOldsLongConditionsParser _oldsParser;
XCHStartegyAMarketsUSDCHF2019LongConditionsParser _2019Parser; XCHStartegyAMarketsUSDCHF2019LongConditionsParser _2019Parser;
XCHStartegyAMarketsUSDCHF2024LongConditionsParser _2024Parser;
// //
bool IsFiltered( bool IsFiltered(
@@ -52,12 +54,25 @@ struct XCHStartegyAMarketsUSDCHFLongConditionsParser
// //
if (!force) if (!force)
{ {
result = _2019Parser.IsFiltered(conditions); //
result =
//
_2024Parser.IsFiltered(conditions)
//
||
//
_2019Parser.IsFiltered(conditions)
//
;
} }
else else
{ {
// //
result = result =
//
_2024Parser.IsFiltered(conditions)
//
||
// //
_2019Parser.IsFiltered(conditions) _2019Parser.IsFiltered(conditions)
// //
@@ -27,6 +27,7 @@
// //
#include "./Olds/x-saherelm.xch.amarkets.usdchf.olds.short.parser.mq5" #include "./Olds/x-saherelm.xch.amarkets.usdchf.olds.short.parser.mq5"
#include "./2019/x-saherelm.xch.amarkets.usdchf.2019.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 ... // Conditions Parser ...
@@ -38,6 +39,7 @@ struct XCHStartegyAMarketsUSDCHFShortConditionsParser
// //
XCHStartegyAMarketsUSDCHFOldsShortConditionsParser _oldsParser; XCHStartegyAMarketsUSDCHFOldsShortConditionsParser _oldsParser;
XCHStartegyAMarketsUSDCHF2019ShortConditionsParser _2019Parser; XCHStartegyAMarketsUSDCHF2019ShortConditionsParser _2019Parser;
XCHStartegyAMarketsUSDCHF2024ShortConditionsParser _2024Parser;
// //
bool IsFiltered( bool IsFiltered(
@@ -52,12 +54,25 @@ struct XCHStartegyAMarketsUSDCHFShortConditionsParser
// //
if (!force) if (!force)
{ {
result = _2019Parser.IsFiltered(conditions); //
result =
//
_2024Parser.IsFiltered(conditions)
//
||
//
_2019Parser.IsFiltered(conditions)
//
;
} }
else else
{ {
// //
result = result =
//
_2024Parser.IsFiltered(conditions)
//
||
// //
_2019Parser.IsFiltered(conditions) _2019Parser.IsFiltered(conditions)
// //
@@ -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;
}
};
//
@@ -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;
}
};
//
@@ -27,6 +27,7 @@
// //
#include "./Olds/x-saherelm.xch.amarkets.usdjpy.olds.long.parser.mq5" #include "./Olds/x-saherelm.xch.amarkets.usdjpy.olds.long.parser.mq5"
#include "./2019/x-saherelm.xch.amarkets.usdjpy.2019.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 ... // Conditions Parser ...
@@ -38,6 +39,7 @@ struct XCHStartegyAMarketsUSDJPYLongConditionsParser
// //
XCHStartegyAMarketsUSDJPYOldsLongConditionsParser _oldsParser; XCHStartegyAMarketsUSDJPYOldsLongConditionsParser _oldsParser;
XCHStartegyAMarketsUSDJPY2019LongConditionsParser _2019Parser; XCHStartegyAMarketsUSDJPY2019LongConditionsParser _2019Parser;
XCHStartegyAMarketsUSDJPY2024LongConditionsParser _2024Parser;
// //
bool IsFiltered( bool IsFiltered(
@@ -52,12 +54,25 @@ struct XCHStartegyAMarketsUSDJPYLongConditionsParser
// //
if (!force) if (!force)
{ {
result = _2019Parser.IsFiltered(conditions); //
result =
//
_2024Parser.IsFiltered(conditions)
//
||
//
_2019Parser.IsFiltered(conditions)
//
;
} }
else else
{ {
// //
result = result =
//
_2024Parser.IsFiltered(conditions)
//
||
// //
_2019Parser.IsFiltered(conditions) _2019Parser.IsFiltered(conditions)
// //
@@ -27,6 +27,7 @@
// //
#include "./Olds/x-saherelm.xch.amarkets.usdjpy.olds.short.parser.mq5" #include "./Olds/x-saherelm.xch.amarkets.usdjpy.olds.short.parser.mq5"
#include "./2019/x-saherelm.xch.amarkets.usdjpy.2019.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 ... // Conditions Parser ...
@@ -38,6 +39,7 @@ struct XCHStartegyAMarketsUSDJPYShortConditionsParser
// //
XCHStartegyAMarketsUSDJPYOldsShortConditionsParser _oldsParser; XCHStartegyAMarketsUSDJPYOldsShortConditionsParser _oldsParser;
XCHStartegyAMarketsUSDJPY2019ShortConditionsParser _2019Parser; XCHStartegyAMarketsUSDJPY2019ShortConditionsParser _2019Parser;
XCHStartegyAMarketsUSDJPY2024ShortConditionsParser _2024Parser;
// //
bool IsFiltered( bool IsFiltered(
@@ -52,12 +54,25 @@ struct XCHStartegyAMarketsUSDJPYShortConditionsParser
// //
if (!force) if (!force)
{ {
result = _2019Parser.IsFiltered(conditions); //
result =
//
_2024Parser.IsFiltered(conditions)
//
||
//
_2019Parser.IsFiltered(conditions)
//
;
} }
else else
{ {
// //
result = result =
//
_2024Parser.IsFiltered(conditions)
//
||
// //
_2019Parser.IsFiltered(conditions) _2019Parser.IsFiltered(conditions)
// //
@@ -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;
}
};
//
@@ -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;
}
};
//
@@ -27,6 +27,7 @@
// //
#include "./Olds/x-saherelm.xch.amarkets.xauusd.olds.long.parser.mq5" #include "./Olds/x-saherelm.xch.amarkets.xauusd.olds.long.parser.mq5"
#include "./2019/x-saherelm.xch.amarkets.xauusd.2019.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 ... // Conditions Parser ...
@@ -38,6 +39,7 @@ struct XCHStartegyAMarketsXAUUSDLongConditionsParser
// //
XCHStartegyAMarketsXAUUSDOldsLongConditionsParser _oldsParser; XCHStartegyAMarketsXAUUSDOldsLongConditionsParser _oldsParser;
XCHStartegyAMarketsXAUUSD2019LongConditionsParser _2019Parser; XCHStartegyAMarketsXAUUSD2019LongConditionsParser _2019Parser;
XCHStartegyAMarketsXAUUSD2024LongConditionsParser _2024Parser;
// //
bool IsFiltered( bool IsFiltered(
@@ -52,12 +54,25 @@ struct XCHStartegyAMarketsXAUUSDLongConditionsParser
// //
if (!force) if (!force)
{ {
result = _2019Parser.IsFiltered(conditions); //
result =
//
_2024Parser.IsFiltered(conditions)
//
||
//
_2019Parser.IsFiltered(conditions)
//
;
} }
else else
{ {
// //
result = result =
//
_2024Parser.IsFiltered(conditions)
//
||
// //
_2019Parser.IsFiltered(conditions) _2019Parser.IsFiltered(conditions)
// //
@@ -27,6 +27,7 @@
// //
#include "./Olds/x-saherelm.xch.amarkets.xauusd.olds.short.parser.mq5" #include "./Olds/x-saherelm.xch.amarkets.xauusd.olds.short.parser.mq5"
#include "./2019/x-saherelm.xch.amarkets.xauusd.2019.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 ... // Conditions Parser ...
@@ -38,6 +39,7 @@ struct XCHStartegyAMarketsXAUUSDShortConditionsParser
// //
XCHStartegyAMarketsXAUUSDOldsShortConditionsParser _oldsParser; XCHStartegyAMarketsXAUUSDOldsShortConditionsParser _oldsParser;
XCHStartegyAMarketsXAUUSD2019ShortConditionsParser _2019Parser; XCHStartegyAMarketsXAUUSD2019ShortConditionsParser _2019Parser;
XCHStartegyAMarketsXAUUSD2024ShortConditionsParser _2024Parser;
// //
bool IsFiltered( bool IsFiltered(
@@ -52,12 +54,25 @@ struct XCHStartegyAMarketsXAUUSDShortConditionsParser
// //
if (!force) if (!force)
{ {
result = _2019Parser.IsFiltered(conditions); //
result =
//
_2024Parser.IsFiltered(conditions)
//
||
//
_2019Parser.IsFiltered(conditions)
//
;
} }
else else
{ {
// //
result = result =
//
_2024Parser.IsFiltered(conditions)
//
||
// //
_2019Parser.IsFiltered(conditions) _2019Parser.IsFiltered(conditions)
// //
@@ -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;
}
};
//