add temp parsers for XCH Conditions for USDCHF, USDJPY and XAUUSD ...
This commit is contained in:
@@ -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)
|
||||
//
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user