add temp parsers for XCH Conditions for USDCHF, USDJPY and XAUUSD ...

This commit is contained in:
2024-08-06 00:52:29 +03:30
parent fdcc8c4d25
commit f525465722
7 changed files with 408 additions and 0 deletions
+84
View File
@@ -27,8 +27,14 @@
// //
#include "../Parsers/x-saherelm.xch.eurusd.long.parser.mq5" #include "../Parsers/x-saherelm.xch.eurusd.long.parser.mq5"
#include "../Parsers/x-saherelm.xch.eurusd.short.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.long.parser.mq5"
#include "../Parsers/x-saherelm.xch.gbpusd.short.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 ... // Conditions Parser ...
@@ -51,6 +57,18 @@ struct XCHStartegyConditionsParser
XCHStartegyGBPUSDLongConditionsParser _gbpusdLongParser; XCHStartegyGBPUSDLongConditionsParser _gbpusdLongParser;
XCHStartegyGBPUSDShortConditionsParser _gbpusdShortParser; XCHStartegyGBPUSDShortConditionsParser _gbpusdShortParser;
//
XCHStartegyUSDJPYLongConditionsParser _usdjpyLongParser;
XCHStartegyUSDJPYShortConditionsParser _usdjpyShortParser;
//
XCHStartegyUSDCHFLongConditionsParser _usdchfLongParser;
XCHStartegyUSDCHFShortConditionsParser _usdchfShortParser;
//
XCHStartegyXAUUSDLongConditionsParser _xauusdLongParser;
XCHStartegyXAUUSDShortConditionsParser _xauusdShortParser;
// //
string GenerateSignalConditions(XCHStrategyConditions &conditions) string GenerateSignalConditions(XCHStrategyConditions &conditions)
{ {
@@ -807,6 +825,9 @@ struct XCHStartegyConditionsParser
// //
bool isEURUSD = _symbolParser.IsEURUSD(signal.symbol); bool isEURUSD = _symbolParser.IsEURUSD(signal.symbol);
bool isGBPUSD = _symbolParser.IsGBPUSD(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) if (!force)
@@ -824,6 +845,24 @@ struct XCHStartegyConditionsParser
result = result =
_gbpusdLongParser.IsFiltered(conditions); _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 else
{ {
@@ -836,6 +875,18 @@ struct XCHStartegyConditionsParser
// //
_gbpusdLongParser.IsFiltered(conditions) _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 isEURUSD = _symbolParser.IsEURUSD(signal.symbol);
bool isGBPUSD = _symbolParser.IsGBPUSD(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) if (!force)
@@ -874,6 +928,24 @@ struct XCHStartegyConditionsParser
result = result =
_gbpusdShortParser.IsFiltered(conditions); _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 else
{ {
@@ -886,6 +958,18 @@ struct XCHStartegyConditionsParser
// //
_gbpusdShortParser.IsFiltered(conditions) _gbpusdShortParser.IsFiltered(conditions)
// //
||
//
_usdjpyShortParser.IsFiltered(conditions)
//
||
//
_usdchfShortParser.IsFiltered(conditions)
//
||
//
_xauusdShortParser.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 XCHStartegyUSDCHFLongConditionsParser
{
//
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 XCHStartegyUSDCHFShortConditionsParser
{
//
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 XCHStartegyUSDJPYLongConditionsParser
{
//
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 XCHStartegyUSDJPYShortConditionsParser
{
//
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 XCHStartegyXAUUSDLongConditionsParser
{
//
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 XCHStartegyXAUUSDShortConditionsParser
{
//
string _version;
//
bool IsFiltered(
XCHStrategyConditions &conditions //
)
{
//
bool result = false;
//
result =
//
false
//
;
//
return result;
}
};
//