try to prepare X121 Materials ...
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// SaherElm IT Center MQL5 Strategy Parser Library
|
||||
// ------------------------------------------------
|
||||
// Name: XCHICHWAPStartegyConditionsParser
|
||||
// Name: X121StartegyConditionsParser
|
||||
// Description: provide all conditions parsing
|
||||
// for XCH Strategy ...
|
||||
//
|
||||
@@ -22,48 +22,48 @@
|
||||
|
||||
//
|
||||
// Imports ...
|
||||
#include "../../Strategies/x-saherelm.xch.ichwap.strategy.mq5"
|
||||
#include "../../Strategies/x-saherelm.x121.strategy.mq5"
|
||||
|
||||
//
|
||||
//
|
||||
#include "./Brent/x-saherelm.xch.ichwap.amarkets.brent.long.parser.mq5"
|
||||
#include "./Brent/x-saherelm.xch.ichwap.amarkets.brent.short.parser.mq5"
|
||||
#include "./DowJones/x-saherelm.xch.ichwap.amarkets.us30.long.parser.mq5"
|
||||
#include "./DowJones/x-saherelm.xch.ichwap.amarkets.us30.short.parser.mq5"
|
||||
#include "./EURGBP/x-saherelm.xch.ichwap.amarkets.eurgbp.long.parser.mq5"
|
||||
#include "./EURGBP/x-saherelm.xch.ichwap.amarkets.eurgbp.short.parser.mq5"
|
||||
#include "./EURJPY/x-saherelm.xch.ichwap.amarkets.eurjpy.long.parser.mq5"
|
||||
#include "./EURJPY/x-saherelm.xch.ichwap.amarkets.eurjpy.short.parser.mq5"
|
||||
#include "./EURCHF/x-saherelm.xch.ichwap.amarkets.eurchf.long.parser.mq5"
|
||||
#include "./EURCHF/x-saherelm.xch.ichwap.amarkets.eurchf.short.parser.mq5"
|
||||
#include "./AUDUSD/x-saherelm.xch.ichwap.amarkets.audusd.long.parser.mq5"
|
||||
#include "./AUDUSD/x-saherelm.xch.ichwap.amarkets.audusd.short.parser.mq5"
|
||||
#include "./EURAUD/x-saherelm.xch.ichwap.amarkets.euraud.long.parser.mq5"
|
||||
#include "./EURAUD/x-saherelm.xch.ichwap.amarkets.euraud.short.parser.mq5"
|
||||
#include "./NZDUSD/x-saherelm.xch.ichwap.amarkets.nzdusd.long.parser.mq5"
|
||||
#include "./NZDUSD/x-saherelm.xch.ichwap.amarkets.nzdusd.short.parser.mq5"
|
||||
#include "./EURNZD/x-saherelm.xch.ichwap.amarkets.eurnzd.long.parser.mq5"
|
||||
#include "./EURNZD/x-saherelm.xch.ichwap.amarkets.eurnzd.short.parser.mq5"
|
||||
#include "./USDCAD/x-saherelm.xch.ichwap.amarkets.usdcad.long.parser.mq5"
|
||||
#include "./USDCAD/x-saherelm.xch.ichwap.amarkets.usdcad.short.parser.mq5"
|
||||
#include "./EURCAD/x-saherelm.xch.ichwap.amarkets.eurcad.long.parser.mq5"
|
||||
#include "./EURCAD/x-saherelm.xch.ichwap.amarkets.eurcad.short.parser.mq5"
|
||||
#include "./EURUSD/x-saherelm.xch.ichwap.amarkets.eurusd.long.parser.mq5"
|
||||
#include "./EURUSD/x-saherelm.xch.ichwap.amarkets.eurusd.short.parser.mq5"
|
||||
#include "./USDJPY/x-saherelm.xch.ichwap.amarkets.usdjpy.long.parser.mq5"
|
||||
#include "./USDJPY/x-saherelm.xch.ichwap.amarkets.usdjpy.short.parser.mq5"
|
||||
#include "./USDCHF/x-saherelm.xch.ichwap.amarkets.usdchf.long.parser.mq5"
|
||||
#include "./USDCHF/x-saherelm.xch.ichwap.amarkets.usdchf.short.parser.mq5"
|
||||
#include "./GBPUSD/x-saherelm.xch.ichwap.amarkets.gbpusd.long.parser.mq5"
|
||||
#include "./GBPUSD/x-saherelm.xch.ichwap.amarkets.gbpusd.short.parser.mq5"
|
||||
#include "./XAUUSD/x-saherelm.xch.ichwap.amarkets.xauusd.long.parser.mq5"
|
||||
#include "./XAUUSD/x-saherelm.xch.ichwap.amarkets.xauusd.short.parser.mq5"
|
||||
#include "./XAGUSD/x-saherelm.xch.ichwap.amarkets.xagusd.long.parser.mq5"
|
||||
#include "./XAGUSD/x-saherelm.xch.ichwap.amarkets.xagusd.short.parser.mq5"
|
||||
#include "./Brent/x-saherelm.x121.amarkets.brent.long.parser.mq5"
|
||||
#include "./Brent/x-saherelm.x121.amarkets.brent.short.parser.mq5"
|
||||
#include "./DowJones/x-saherelm.x121.amarkets.us30.long.parser.mq5"
|
||||
#include "./DowJones/x-saherelm.x121.amarkets.us30.short.parser.mq5"
|
||||
#include "./EURGBP/x-saherelm.x121.amarkets.eurgbp.long.parser.mq5"
|
||||
#include "./EURGBP/x-saherelm.x121.amarkets.eurgbp.short.parser.mq5"
|
||||
#include "./EURJPY/x-saherelm.x121.amarkets.eurjpy.long.parser.mq5"
|
||||
#include "./EURJPY/x-saherelm.x121.amarkets.eurjpy.short.parser.mq5"
|
||||
#include "./EURCHF/x-saherelm.x121.amarkets.eurchf.long.parser.mq5"
|
||||
#include "./EURCHF/x-saherelm.x121.amarkets.eurchf.short.parser.mq5"
|
||||
#include "./AUDUSD/x-saherelm.x121.amarkets.audusd.long.parser.mq5"
|
||||
#include "./AUDUSD/x-saherelm.x121.amarkets.audusd.short.parser.mq5"
|
||||
#include "./EURAUD/x-saherelm.x121.amarkets.euraud.long.parser.mq5"
|
||||
#include "./EURAUD/x-saherelm.x121.amarkets.euraud.short.parser.mq5"
|
||||
#include "./NZDUSD/x-saherelm.x121.amarkets.nzdusd.long.parser.mq5"
|
||||
#include "./NZDUSD/x-saherelm.x121.amarkets.nzdusd.short.parser.mq5"
|
||||
#include "./EURNZD/x-saherelm.x121.amarkets.eurnzd.long.parser.mq5"
|
||||
#include "./EURNZD/x-saherelm.x121.amarkets.eurnzd.short.parser.mq5"
|
||||
#include "./USDCAD/x-saherelm.x121.amarkets.usdcad.long.parser.mq5"
|
||||
#include "./USDCAD/x-saherelm.x121.amarkets.usdcad.short.parser.mq5"
|
||||
#include "./EURCAD/x-saherelm.x121.amarkets.eurcad.long.parser.mq5"
|
||||
#include "./EURCAD/x-saherelm.x121.amarkets.eurcad.short.parser.mq5"
|
||||
#include "./EURUSD/x-saherelm.x121.amarkets.eurusd.long.parser.mq5"
|
||||
#include "./EURUSD/x-saherelm.x121.amarkets.eurusd.short.parser.mq5"
|
||||
#include "./USDJPY/x-saherelm.x121.amarkets.usdjpy.long.parser.mq5"
|
||||
#include "./USDJPY/x-saherelm.x121.amarkets.usdjpy.short.parser.mq5"
|
||||
#include "./USDCHF/x-saherelm.x121.amarkets.usdchf.long.parser.mq5"
|
||||
#include "./USDCHF/x-saherelm.x121.amarkets.usdchf.short.parser.mq5"
|
||||
#include "./GBPUSD/x-saherelm.x121.amarkets.gbpusd.long.parser.mq5"
|
||||
#include "./GBPUSD/x-saherelm.x121.amarkets.gbpusd.short.parser.mq5"
|
||||
#include "./XAUUSD/x-saherelm.x121.amarkets.xauusd.long.parser.mq5"
|
||||
#include "./XAUUSD/x-saherelm.x121.amarkets.xauusd.short.parser.mq5"
|
||||
#include "./XAGUSD/x-saherelm.x121.amarkets.xagusd.long.parser.mq5"
|
||||
#include "./XAGUSD/x-saherelm.x121.amarkets.xagusd.short.parser.mq5"
|
||||
|
||||
//
|
||||
// Conditions Parser ...
|
||||
struct XCHICHWAPStartegyAMarketsConditionsParser
|
||||
struct X121StartegyAMarketsConditionsParser
|
||||
{
|
||||
//
|
||||
string _version;
|
||||
@@ -75,93 +75,93 @@ struct XCHICHWAPStartegyAMarketsConditionsParser
|
||||
|
||||
//
|
||||
// EURUSD ...
|
||||
XCHICHWAPStartegyAMarketsEURUSDLongConditionsParser _eurusdLongParser;
|
||||
XCHICHWAPStartegyAMarketsEURUSDShortConditionsParser _eurusdShortParser;
|
||||
X121StartegyAMarketsEURUSDLongConditionsParser _eurusdLongParser;
|
||||
X121StartegyAMarketsEURUSDShortConditionsParser _eurusdShortParser;
|
||||
|
||||
//
|
||||
// GBPUSD ...
|
||||
XCHICHWAPStartegyAMarketsGBPUSDLongConditionsParser _gbpusdLongParser;
|
||||
XCHICHWAPStartegyAMarketsGBPUSDShortConditionsParser _gbpusdShortParser;
|
||||
X121StartegyAMarketsGBPUSDLongConditionsParser _gbpusdLongParser;
|
||||
X121StartegyAMarketsGBPUSDShortConditionsParser _gbpusdShortParser;
|
||||
|
||||
//
|
||||
// EURGBP ...
|
||||
XCHICHWAPStartegyAMarketsEURGBPLongConditionsParser _eurgbpLongParser;
|
||||
XCHICHWAPStartegyAMarketsEURGBPShortConditionsParser _eurgbpShortParser;
|
||||
X121StartegyAMarketsEURGBPLongConditionsParser _eurgbpLongParser;
|
||||
X121StartegyAMarketsEURGBPShortConditionsParser _eurgbpShortParser;
|
||||
|
||||
//
|
||||
// USDJPY ...
|
||||
XCHICHWAPStartegyAMarketsUSDJPYLongConditionsParser _usdjpyLongParser;
|
||||
XCHICHWAPStartegyAMarketsUSDJPYShortConditionsParser _usdjpyShortParser;
|
||||
X121StartegyAMarketsUSDJPYLongConditionsParser _usdjpyLongParser;
|
||||
X121StartegyAMarketsUSDJPYShortConditionsParser _usdjpyShortParser;
|
||||
|
||||
//
|
||||
// EURJPY ...
|
||||
XCHICHWAPStartegyAMarketsEURJPYLongConditionsParser _eurjpyLongParser;
|
||||
XCHICHWAPStartegyAMarketsEURJPYShortConditionsParser _eurjpyShortParser;
|
||||
X121StartegyAMarketsEURJPYLongConditionsParser _eurjpyLongParser;
|
||||
X121StartegyAMarketsEURJPYShortConditionsParser _eurjpyShortParser;
|
||||
|
||||
//
|
||||
// USDCHF ...
|
||||
XCHICHWAPStartegyAMarketsUSDCHFLongConditionsParser _usdchfLongParser;
|
||||
XCHICHWAPStartegyAMarketsUSDCHFShortConditionsParser _usdchfShortParser;
|
||||
X121StartegyAMarketsUSDCHFLongConditionsParser _usdchfLongParser;
|
||||
X121StartegyAMarketsUSDCHFShortConditionsParser _usdchfShortParser;
|
||||
|
||||
//
|
||||
// EURCHF ...
|
||||
XCHICHWAPStartegyAMarketsEURCHFLongConditionsParser _eurchfLongParser;
|
||||
XCHICHWAPStartegyAMarketsEURCHFShortConditionsParser _eurchfShortParser;
|
||||
X121StartegyAMarketsEURCHFLongConditionsParser _eurchfLongParser;
|
||||
X121StartegyAMarketsEURCHFShortConditionsParser _eurchfShortParser;
|
||||
|
||||
//
|
||||
// XAUUSD ...
|
||||
XCHICHWAPStartegyAMarketsXAUUSDLongConditionsParser _xauusdLongParser;
|
||||
XCHICHWAPStartegyAMarketsXAUUSDShortConditionsParser _xauusdShortParser;
|
||||
X121StartegyAMarketsXAUUSDLongConditionsParser _xauusdLongParser;
|
||||
X121StartegyAMarketsXAUUSDShortConditionsParser _xauusdShortParser;
|
||||
|
||||
//
|
||||
// XAGUSD ...
|
||||
XCHICHWAPStartegyAMarketsXAGUSDLongConditionsParser _xagusdLongParser;
|
||||
XCHICHWAPStartegyAMarketsXAGUSDShortConditionsParser _xagusdShortParser;
|
||||
X121StartegyAMarketsXAGUSDLongConditionsParser _xagusdLongParser;
|
||||
X121StartegyAMarketsXAGUSDShortConditionsParser _xagusdShortParser;
|
||||
|
||||
//
|
||||
// AUDUSD ...
|
||||
XCHICHWAPStartegyAMarketsAUDUSDLongConditionsParser _audusdLongParser;
|
||||
XCHICHWAPStartegyAMarketsAUDUSDShortConditionsParser _audusdShortParser;
|
||||
X121StartegyAMarketsAUDUSDLongConditionsParser _audusdLongParser;
|
||||
X121StartegyAMarketsAUDUSDShortConditionsParser _audusdShortParser;
|
||||
|
||||
//
|
||||
// EURAUD ...
|
||||
XCHICHWAPStartegyAMarketsEURAUDLongConditionsParser _euraudLongParser;
|
||||
XCHICHWAPStartegyAMarketsEURAUDShortConditionsParser _euraudShortParser;
|
||||
X121StartegyAMarketsEURAUDLongConditionsParser _euraudLongParser;
|
||||
X121StartegyAMarketsEURAUDShortConditionsParser _euraudShortParser;
|
||||
|
||||
//
|
||||
// NZDUSD ...
|
||||
XCHICHWAPStartegyAMarketsNZDUSDLongConditionsParser _nzdusdLongParser;
|
||||
XCHICHWAPStartegyAMarketsNZDUSDShortConditionsParser _nzdusdShortParser;
|
||||
X121StartegyAMarketsNZDUSDLongConditionsParser _nzdusdLongParser;
|
||||
X121StartegyAMarketsNZDUSDShortConditionsParser _nzdusdShortParser;
|
||||
|
||||
//
|
||||
// EURNZD ...
|
||||
XCHICHWAPStartegyAMarketsEURNZDLongConditionsParser _eurnzdLongParser;
|
||||
XCHICHWAPStartegyAMarketsEURNZDShortConditionsParser _eurnzdShortParser;
|
||||
X121StartegyAMarketsEURNZDLongConditionsParser _eurnzdLongParser;
|
||||
X121StartegyAMarketsEURNZDShortConditionsParser _eurnzdShortParser;
|
||||
|
||||
//
|
||||
// USDCAD ...
|
||||
XCHICHWAPStartegyAMarketsUSDCADLongConditionsParser _usdcadLongParser;
|
||||
XCHICHWAPStartegyAMarketsUSDCADShortConditionsParser _usdcadShortParser;
|
||||
X121StartegyAMarketsUSDCADLongConditionsParser _usdcadLongParser;
|
||||
X121StartegyAMarketsUSDCADShortConditionsParser _usdcadShortParser;
|
||||
|
||||
//
|
||||
// EURCAD ...
|
||||
XCHICHWAPStartegyAMarketsEURCADLongConditionsParser _eurcadLongParser;
|
||||
XCHICHWAPStartegyAMarketsEURCADShortConditionsParser _eurcadShortParser;
|
||||
X121StartegyAMarketsEURCADLongConditionsParser _eurcadLongParser;
|
||||
X121StartegyAMarketsEURCADShortConditionsParser _eurcadShortParser;
|
||||
|
||||
//
|
||||
// DOWJONES ...
|
||||
XCHICHWAPStartegyAMarketsUS30LongConditionsParser _dowjonesLongParser;
|
||||
XCHICHWAPStartegyAMarketsUS30ShortConditionsParser _dowjonesShortParser;
|
||||
X121StartegyAMarketsUS30LongConditionsParser _dowjonesLongParser;
|
||||
X121StartegyAMarketsUS30ShortConditionsParser _dowjonesShortParser;
|
||||
|
||||
//
|
||||
// BRENT ...
|
||||
XCHICHWAPStartegyAMarketsBRENTLongConditionsParser _brentLongParser;
|
||||
XCHICHWAPStartegyAMarketsBRENTShortConditionsParser _brentShortParser;
|
||||
X121StartegyAMarketsBRENTLongConditionsParser _brentLongParser;
|
||||
X121StartegyAMarketsBRENTShortConditionsParser _brentShortParser;
|
||||
|
||||
//
|
||||
bool IsFiltered(
|
||||
XSignal &signal, // Provided Signal
|
||||
XCHStrategyConditions &conditions, // Market Conditions
|
||||
X121StrategyConditions &conditions, // Market Conditions
|
||||
bool force = false //
|
||||
)
|
||||
{
|
||||
@@ -205,7 +205,7 @@ struct XCHICHWAPStartegyAMarketsConditionsParser
|
||||
// Filter Long Signals ...
|
||||
bool IsLongFiltered(
|
||||
XSignal &signal,
|
||||
XCHStrategyConditions &conditions,
|
||||
X121StrategyConditions &conditions,
|
||||
bool force = false //
|
||||
)
|
||||
{
|
||||
@@ -456,7 +456,7 @@ struct XCHICHWAPStartegyAMarketsConditionsParser
|
||||
// Filter Short Signals ...
|
||||
bool IsShortFiltered(
|
||||
XSignal &signal,
|
||||
XCHStrategyConditions &conditions,
|
||||
X121StrategyConditions &conditions,
|
||||
bool force = false //
|
||||
)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user