try to prepare X121 Materials ...
This commit is contained in:
@@ -0,0 +1,705 @@
|
||||
///////////////////////////////////////////////////////
|
||||
//
|
||||
// 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"
|
||||
|
||||
//
|
||||
#include "./Brent/x-saherelm.xch.amarkets.brent.long.parser.mq5"
|
||||
#include "./Brent/x-saherelm.xch.amarkets.brent.short.parser.mq5"
|
||||
#include "./DowJones/x-saherelm.xch.amarkets.us30.long.parser.mq5"
|
||||
#include "./DowJones/x-saherelm.xch.amarkets.us30.short.parser.mq5"
|
||||
#include "./EURGBP/x-saherelm.xch.amarkets.eurgbp.long.parser.mq5"
|
||||
#include "./EURGBP/x-saherelm.xch.amarkets.eurgbp.short.parser.mq5"
|
||||
#include "./EURJPY/x-saherelm.xch.amarkets.eurjpy.long.parser.mq5"
|
||||
#include "./EURJPY/x-saherelm.xch.amarkets.eurjpy.short.parser.mq5"
|
||||
#include "./EURCHF/x-saherelm.xch.amarkets.eurchf.long.parser.mq5"
|
||||
#include "./EURCHF/x-saherelm.xch.amarkets.eurchf.short.parser.mq5"
|
||||
#include "./AUDUSD/x-saherelm.xch.amarkets.audusd.long.parser.mq5"
|
||||
#include "./AUDUSD/x-saherelm.xch.amarkets.audusd.short.parser.mq5"
|
||||
#include "./EURAUD/x-saherelm.xch.amarkets.euraud.long.parser.mq5"
|
||||
#include "./EURAUD/x-saherelm.xch.amarkets.euraud.short.parser.mq5"
|
||||
#include "./NZDUSD/x-saherelm.xch.amarkets.nzdusd.long.parser.mq5"
|
||||
#include "./NZDUSD/x-saherelm.xch.amarkets.nzdusd.short.parser.mq5"
|
||||
#include "./EURNZD/x-saherelm.xch.amarkets.eurnzd.long.parser.mq5"
|
||||
#include "./EURNZD/x-saherelm.xch.amarkets.eurnzd.short.parser.mq5"
|
||||
#include "./USDCAD/x-saherelm.xch.amarkets.usdcad.long.parser.mq5"
|
||||
#include "./USDCAD/x-saherelm.xch.amarkets.usdcad.short.parser.mq5"
|
||||
#include "./EURCAD/x-saherelm.xch.amarkets.eurcad.long.parser.mq5"
|
||||
#include "./EURCAD/x-saherelm.xch.amarkets.eurcad.short.parser.mq5"
|
||||
#include "./EURUSD/x-saherelm.xch.amarkets.eurusd.long.parser.mq5"
|
||||
#include "./EURUSD/x-saherelm.xch.amarkets.eurusd.short.parser.mq5"
|
||||
#include "./USDJPY/x-saherelm.xch.amarkets.usdjpy.long.parser.mq5"
|
||||
#include "./USDJPY/x-saherelm.xch.amarkets.usdjpy.short.parser.mq5"
|
||||
#include "./USDCHF/x-saherelm.xch.amarkets.usdchf.long.parser.mq5"
|
||||
#include "./USDCHF/x-saherelm.xch.amarkets.usdchf.short.parser.mq5"
|
||||
#include "./GBPUSD/x-saherelm.xch.amarkets.gbpusd.long.parser.mq5"
|
||||
#include "./GBPUSD/x-saherelm.xch.amarkets.gbpusd.short.parser.mq5"
|
||||
#include "./XAUUSD/x-saherelm.xch.amarkets.xauusd.long.parser.mq5"
|
||||
#include "./XAUUSD/x-saherelm.xch.amarkets.xauusd.short.parser.mq5"
|
||||
#include "./XAGUSD/x-saherelm.xch.amarkets.xagusd.long.parser.mq5"
|
||||
#include "./XAGUSD/x-saherelm.xch.amarkets.xagusd.short.parser.mq5"
|
||||
|
||||
//
|
||||
// Conditions Parser ...
|
||||
struct X121StartegyAMarketsConditionsParser
|
||||
{
|
||||
//
|
||||
string _version;
|
||||
|
||||
//
|
||||
// Parsers ...
|
||||
XSymbolParser _symbolParser;
|
||||
|
||||
//
|
||||
// EURUSD ...
|
||||
X121StartegyAMarketsEURUSDLongConditionsParser _eurusdLongParser;
|
||||
X121StartegyAMarketsEURUSDShortConditionsParser _eurusdShortParser;
|
||||
|
||||
//
|
||||
// GBPUSD ...
|
||||
X121StartegyAMarketsGBPUSDLongConditionsParser _gbpusdLongParser;
|
||||
X121StartegyAMarketsGBPUSDShortConditionsParser _gbpusdShortParser;
|
||||
|
||||
//
|
||||
// EURGBP ...
|
||||
X121StartegyAMarketsEURGBPLongConditionsParser _eurgbpLongParser;
|
||||
X121StartegyAMarketsEURGBPShortConditionsParser _eurgbpShortParser;
|
||||
|
||||
//
|
||||
// USDJPY ...
|
||||
X121StartegyAMarketsUSDJPYLongConditionsParser _usdjpyLongParser;
|
||||
X121StartegyAMarketsUSDJPYShortConditionsParser _usdjpyShortParser;
|
||||
|
||||
//
|
||||
// EURJPY ...
|
||||
X121StartegyAMarketsEURJPYLongConditionsParser _eurjpyLongParser;
|
||||
X121StartegyAMarketsEURJPYShortConditionsParser _eurjpyShortParser;
|
||||
|
||||
//
|
||||
// USDCHF ...
|
||||
X121StartegyAMarketsUSDCHFLongConditionsParser _usdchfLongParser;
|
||||
X121StartegyAMarketsUSDCHFShortConditionsParser _usdchfShortParser;
|
||||
|
||||
//
|
||||
// EURCHF ...
|
||||
X121StartegyAMarketsEURCHFLongConditionsParser _eurchfLongParser;
|
||||
X121StartegyAMarketsEURCHFShortConditionsParser _eurchfShortParser;
|
||||
|
||||
//
|
||||
// XAUUSD ...
|
||||
X121StartegyAMarketsXAUUSDLongConditionsParser _xauusdLongParser;
|
||||
X121StartegyAMarketsXAUUSDShortConditionsParser _xauusdShortParser;
|
||||
|
||||
//
|
||||
// XAGUSD ...
|
||||
X121StartegyAMarketsXAGUSDLongConditionsParser _xagusdLongParser;
|
||||
X121StartegyAMarketsXAGUSDShortConditionsParser _xagusdShortParser;
|
||||
|
||||
//
|
||||
// AUDUSD ...
|
||||
X121StartegyAMarketsAUDUSDLongConditionsParser _audusdLongParser;
|
||||
X121StartegyAMarketsAUDUSDShortConditionsParser _audusdShortParser;
|
||||
|
||||
//
|
||||
// EURAUD ...
|
||||
X121StartegyAMarketsEURAUDLongConditionsParser _euraudLongParser;
|
||||
X121StartegyAMarketsEURAUDShortConditionsParser _euraudShortParser;
|
||||
|
||||
//
|
||||
// NZDUSD ...
|
||||
X121StartegyAMarketsNZDUSDLongConditionsParser _nzdusdLongParser;
|
||||
X121StartegyAMarketsNZDUSDShortConditionsParser _nzdusdShortParser;
|
||||
|
||||
//
|
||||
// EURNZD ...
|
||||
X121StartegyAMarketsEURNZDLongConditionsParser _eurnzdLongParser;
|
||||
X121StartegyAMarketsEURNZDShortConditionsParser _eurnzdShortParser;
|
||||
|
||||
//
|
||||
// USDCAD ...
|
||||
X121StartegyAMarketsUSDCADLongConditionsParser _usdcadLongParser;
|
||||
X121StartegyAMarketsUSDCADShortConditionsParser _usdcadShortParser;
|
||||
|
||||
//
|
||||
// EURCAD ...
|
||||
X121StartegyAMarketsEURCADLongConditionsParser _eurcadLongParser;
|
||||
X121StartegyAMarketsEURCADShortConditionsParser _eurcadShortParser;
|
||||
|
||||
//
|
||||
// DOWJONES ...
|
||||
X121StartegyAMarketsUS30LongConditionsParser _dowjonesLongParser;
|
||||
X121StartegyAMarketsUS30ShortConditionsParser _dowjonesShortParser;
|
||||
|
||||
//
|
||||
// BRENT ...
|
||||
X121StartegyAMarketsBRENTLongConditionsParser _brentLongParser;
|
||||
X121StartegyAMarketsBRENTShortConditionsParser _brentShortParser;
|
||||
|
||||
//
|
||||
bool IsFiltered(
|
||||
XSignal &signal, // Provided Signal
|
||||
X121StrategyConditions &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,
|
||||
X121StrategyConditions &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 isXAGUSD = _symbolParser.IsXAGUSD(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 isEURAUD = _symbolParser.IsEURAUD(signal.symbol);
|
||||
bool isNZDUSD = _symbolParser.IsNZDUSD(signal.symbol);
|
||||
bool isEURNZD = _symbolParser.IsEURNZD(signal.symbol);
|
||||
bool isUSDCAD = _symbolParser.IsUSDCAD(signal.symbol);
|
||||
bool isEURCAD = _symbolParser.IsEURCAD(signal.symbol);
|
||||
bool isBrent = _symbolParser.IsBrent(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 isXAGUSDFiltered = _xagusdLongParser.IsFiltered(
|
||||
signal,
|
||||
conditions //
|
||||
);
|
||||
bool isAUDUSDFiltered = _audusdLongParser.IsFiltered(
|
||||
signal,
|
||||
conditions //
|
||||
);
|
||||
bool isEURAUDFiltered = _euraudLongParser.IsFiltered(
|
||||
signal,
|
||||
conditions //
|
||||
);
|
||||
bool isNZDUSDFiltered = _nzdusdLongParser.IsFiltered(
|
||||
signal,
|
||||
conditions //
|
||||
);
|
||||
bool isEURNZDFiltered = _eurnzdLongParser.IsFiltered(
|
||||
signal,
|
||||
conditions //
|
||||
);
|
||||
bool isUSDCADFiltered = _usdcadLongParser.IsFiltered(
|
||||
signal,
|
||||
conditions //
|
||||
);
|
||||
bool isEURCADFiltered = _eurcadLongParser.IsFiltered(
|
||||
signal,
|
||||
conditions //
|
||||
);
|
||||
bool isDowJonesFiltered = _dowjonesLongParser.IsFiltered(
|
||||
signal,
|
||||
conditions //
|
||||
);
|
||||
bool isBrentFiltered = _brentLongParser.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 (isXAGUSD)
|
||||
{
|
||||
result = isXAGUSDFiltered;
|
||||
}
|
||||
else if (isAUDUSD)
|
||||
{
|
||||
result = isAUDUSDFiltered;
|
||||
}
|
||||
else if (isEURAUD)
|
||||
{
|
||||
result = isEURAUDFiltered;
|
||||
}
|
||||
else if (isNZDUSD)
|
||||
{
|
||||
result = isNZDUSDFiltered;
|
||||
}
|
||||
else if (isEURNZD)
|
||||
{
|
||||
result = isEURNZDFiltered;
|
||||
}
|
||||
else if (isUSDCAD)
|
||||
{
|
||||
result = isUSDCADFiltered;
|
||||
}
|
||||
else if (isEURCAD)
|
||||
{
|
||||
result = isEURCADFiltered;
|
||||
}
|
||||
else if (isBrent)
|
||||
{
|
||||
result = isBrentFiltered;
|
||||
}
|
||||
else if (isDowJones)
|
||||
{
|
||||
result = isDowJonesFiltered;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//
|
||||
result =
|
||||
//
|
||||
isEURUSDFiltered
|
||||
//
|
||||
||
|
||||
//
|
||||
isGBPUSDFiltered
|
||||
//
|
||||
||
|
||||
//
|
||||
isEURGBPFiltered
|
||||
//
|
||||
||
|
||||
//
|
||||
isUSDJPYFiltered
|
||||
//
|
||||
||
|
||||
//
|
||||
isEURJPYFiltered
|
||||
//
|
||||
||
|
||||
//
|
||||
isUSDCHFFiltered
|
||||
//
|
||||
||
|
||||
//
|
||||
isEURCHFFiltered
|
||||
//
|
||||
||
|
||||
//
|
||||
isXAUUSDFiltered
|
||||
//
|
||||
||
|
||||
//
|
||||
isXAGUSDFiltered
|
||||
//
|
||||
||
|
||||
//
|
||||
isAUDUSDFiltered
|
||||
//
|
||||
||
|
||||
//
|
||||
isEURAUDFiltered
|
||||
//
|
||||
||
|
||||
//
|
||||
isNZDUSDFiltered
|
||||
//
|
||||
||
|
||||
//
|
||||
isEURNZDFiltered
|
||||
//
|
||||
||
|
||||
//
|
||||
isUSDCADFiltered
|
||||
//
|
||||
||
|
||||
//
|
||||
isEURCADFiltered
|
||||
//
|
||||
||
|
||||
//
|
||||
isBrentFiltered
|
||||
//
|
||||
||
|
||||
//
|
||||
isDowJonesFiltered
|
||||
//
|
||||
;
|
||||
}
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
// Filter Short Signals ...
|
||||
bool IsShortFiltered(
|
||||
XSignal &signal,
|
||||
X121StrategyConditions &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 isXAGUSD = _symbolParser.IsXAGUSD(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 isEURAUD = _symbolParser.IsEURAUD(signal.symbol);
|
||||
bool isNZDUSD = _symbolParser.IsNZDUSD(signal.symbol);
|
||||
bool isEURNZD = _symbolParser.IsEURNZD(signal.symbol);
|
||||
bool isUSDCAD = _symbolParser.IsUSDCAD(signal.symbol);
|
||||
bool isEURCAD = _symbolParser.IsEURCAD(signal.symbol);
|
||||
bool isBrent = _symbolParser.IsBrent(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 isXAGUSDFiltered = _xagusdShortParser.IsFiltered(
|
||||
signal,
|
||||
conditions //
|
||||
);
|
||||
bool isAUDUSDFiltered = _audusdShortParser.IsFiltered(
|
||||
signal,
|
||||
conditions //
|
||||
);
|
||||
bool isEURAUDFiltered = _euraudShortParser.IsFiltered(
|
||||
signal,
|
||||
conditions //
|
||||
);
|
||||
bool isNZDUSDFiltered = _nzdusdShortParser.IsFiltered(
|
||||
signal,
|
||||
conditions //
|
||||
);
|
||||
bool isEURNZDFiltered = _eurnzdShortParser.IsFiltered(
|
||||
signal,
|
||||
conditions //
|
||||
);
|
||||
bool isUSDCADFiltered = _usdcadShortParser.IsFiltered(
|
||||
signal,
|
||||
conditions //
|
||||
);
|
||||
bool isEURCADFiltered = _eurcadShortParser.IsFiltered(
|
||||
signal,
|
||||
conditions //
|
||||
);
|
||||
bool isBrentFiltered = _brentShortParser.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 (isXAGUSD)
|
||||
{
|
||||
result = isXAGUSDFiltered;
|
||||
}
|
||||
else if (isAUDUSD)
|
||||
{
|
||||
result = isAUDUSDFiltered;
|
||||
}
|
||||
else if (isEURAUD)
|
||||
{
|
||||
result = isEURAUDFiltered;
|
||||
}
|
||||
else if (isNZDUSD)
|
||||
{
|
||||
result = isNZDUSDFiltered;
|
||||
}
|
||||
else if (isEURNZD)
|
||||
{
|
||||
result = isEURNZDFiltered;
|
||||
}
|
||||
else if (isUSDCAD)
|
||||
{
|
||||
result = isUSDCADFiltered;
|
||||
}
|
||||
else if (isEURCAD)
|
||||
{
|
||||
result = isEURCADFiltered;
|
||||
}
|
||||
else if (isBrent)
|
||||
{
|
||||
result = isBrentFiltered;
|
||||
}
|
||||
else if (isDowJones)
|
||||
{
|
||||
result = isDowJonesFiltered;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//
|
||||
result =
|
||||
//
|
||||
isEURUSDFiltered
|
||||
//
|
||||
||
|
||||
//
|
||||
isGBPUSDFiltered
|
||||
//
|
||||
||
|
||||
//
|
||||
isEURGBPFiltered
|
||||
//
|
||||
||
|
||||
//
|
||||
isUSDJPYFiltered
|
||||
//
|
||||
||
|
||||
//
|
||||
isEURJPYFiltered
|
||||
//
|
||||
||
|
||||
//
|
||||
isUSDCHFFiltered
|
||||
//
|
||||
||
|
||||
//
|
||||
isEURCHFFiltered
|
||||
//
|
||||
||
|
||||
//
|
||||
isXAUUSDFiltered
|
||||
//
|
||||
||
|
||||
//
|
||||
isXAGUSDFiltered
|
||||
//
|
||||
||
|
||||
//
|
||||
isAUDUSDFiltered
|
||||
//
|
||||
||
|
||||
//
|
||||
isEURAUDFiltered
|
||||
//
|
||||
||
|
||||
//
|
||||
isNZDUSDFiltered
|
||||
//
|
||||
||
|
||||
//
|
||||
isEURNZDFiltered
|
||||
//
|
||||
||
|
||||
//
|
||||
isUSDCADFiltered
|
||||
//
|
||||
||
|
||||
//
|
||||
isEURCADFiltered
|
||||
//
|
||||
||
|
||||
//
|
||||
isBrentFiltered
|
||||
//
|
||||
||
|
||||
//
|
||||
isDowJonesFiltered
|
||||
//
|
||||
;
|
||||
}
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
};
|
||||
|
||||
//
|
||||
Reference in New Issue
Block a user