add support for EURCAD implementations ...
This commit is contained in:
@@ -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 XCHStartegyEURCADLongConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyEURCADShortConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
bool IsFiltered(
|
||||||
|
XCHStrategyConditions &conditions //
|
||||||
|
)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
bool result = false;
|
||||||
|
|
||||||
|
//
|
||||||
|
result =
|
||||||
|
//
|
||||||
|
false
|
||||||
|
//
|
||||||
|
;
|
||||||
|
|
||||||
|
//
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
//
|
||||||
@@ -39,6 +39,8 @@
|
|||||||
#include "../Parsers/x-saherelm.xch.nzdusd.short.parser.mq5"
|
#include "../Parsers/x-saherelm.xch.nzdusd.short.parser.mq5"
|
||||||
#include "../Parsers/x-saherelm.xch.usdcad.long.parser.mq5"
|
#include "../Parsers/x-saherelm.xch.usdcad.long.parser.mq5"
|
||||||
#include "../Parsers/x-saherelm.xch.usdcad.short.parser.mq5"
|
#include "../Parsers/x-saherelm.xch.usdcad.short.parser.mq5"
|
||||||
|
#include "../Parsers/x-saherelm.xch.eurcad.long.parser.mq5"
|
||||||
|
#include "../Parsers/x-saherelm.xch.eurcad.short.parser.mq5"
|
||||||
#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.long.parser.mq5"
|
||||||
@@ -123,6 +125,11 @@ struct XCHStartegyConditionsParser
|
|||||||
XCHStartegyUSDCADLongConditionsParser _usdcadLongParser;
|
XCHStartegyUSDCADLongConditionsParser _usdcadLongParser;
|
||||||
XCHStartegyUSDCADShortConditionsParser _usdcadShortParser;
|
XCHStartegyUSDCADShortConditionsParser _usdcadShortParser;
|
||||||
|
|
||||||
|
//
|
||||||
|
// EURCAD ...
|
||||||
|
XCHStartegyEURCADLongConditionsParser _eurcadLongParser;
|
||||||
|
XCHStartegyEURCADShortConditionsParser _eurcadShortParser;
|
||||||
|
|
||||||
//
|
//
|
||||||
string GenerateSignalConditions(
|
string GenerateSignalConditions(
|
||||||
XSignal &signal,
|
XSignal &signal,
|
||||||
@@ -895,6 +902,7 @@ struct XCHStartegyConditionsParser
|
|||||||
bool isAUDUSD = _symbolParser.IsAUDUSD(signal.symbol);
|
bool isAUDUSD = _symbolParser.IsAUDUSD(signal.symbol);
|
||||||
bool isNZDUSD = _symbolParser.IsNZDUSD(signal.symbol);
|
bool isNZDUSD = _symbolParser.IsNZDUSD(signal.symbol);
|
||||||
bool isUSDCAD = _symbolParser.IsUSDCAD(signal.symbol);
|
bool isUSDCAD = _symbolParser.IsUSDCAD(signal.symbol);
|
||||||
|
bool isEURCAD = _symbolParser.IsEURCAD(signal.symbol);
|
||||||
bool isDowJones = _symbolParser.IsDowJones(signal.symbol);
|
bool isDowJones = _symbolParser.IsDowJones(signal.symbol);
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -967,6 +975,12 @@ struct XCHStartegyConditionsParser
|
|||||||
result =
|
result =
|
||||||
_usdcadLongParser.IsFiltered(conditions);
|
_usdcadLongParser.IsFiltered(conditions);
|
||||||
}
|
}
|
||||||
|
else if (isEURCAD)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
result =
|
||||||
|
_eurcadLongParser.IsFiltered(conditions);
|
||||||
|
}
|
||||||
else if (isDowJones)
|
else if (isDowJones)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
@@ -1023,6 +1037,10 @@ struct XCHStartegyConditionsParser
|
|||||||
//
|
//
|
||||||
||
|
||
|
||||||
//
|
//
|
||||||
|
_eurcadLongParser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
||
|
||||||
|
//
|
||||||
_dowjonesLongParser.IsFiltered(conditions)
|
_dowjonesLongParser.IsFiltered(conditions)
|
||||||
//
|
//
|
||||||
;
|
;
|
||||||
@@ -1055,6 +1073,7 @@ struct XCHStartegyConditionsParser
|
|||||||
bool isAUDUSD = _symbolParser.IsAUDUSD(signal.symbol);
|
bool isAUDUSD = _symbolParser.IsAUDUSD(signal.symbol);
|
||||||
bool isNZDUSD = _symbolParser.IsNZDUSD(signal.symbol);
|
bool isNZDUSD = _symbolParser.IsNZDUSD(signal.symbol);
|
||||||
bool isUSDCAD = _symbolParser.IsUSDCAD(signal.symbol);
|
bool isUSDCAD = _symbolParser.IsUSDCAD(signal.symbol);
|
||||||
|
bool isEURCAD = _symbolParser.IsEURCAD(signal.symbol);
|
||||||
bool isDowJones = _symbolParser.IsDowJones(signal.symbol);
|
bool isDowJones = _symbolParser.IsDowJones(signal.symbol);
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -1127,6 +1146,12 @@ struct XCHStartegyConditionsParser
|
|||||||
result =
|
result =
|
||||||
_usdcadShortParser.IsFiltered(conditions);
|
_usdcadShortParser.IsFiltered(conditions);
|
||||||
}
|
}
|
||||||
|
else if (isEURCAD)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
result =
|
||||||
|
_eurcadShortParser.IsFiltered(conditions);
|
||||||
|
}
|
||||||
else if (isDowJones)
|
else if (isDowJones)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
@@ -1183,6 +1208,10 @@ struct XCHStartegyConditionsParser
|
|||||||
//
|
//
|
||||||
||
|
||
|
||||||
//
|
//
|
||||||
|
_eurcadShortParser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
||
|
||||||
|
//
|
||||||
_dowjonesShortParser.IsFiltered(conditions)
|
_dowjonesShortParser.IsFiltered(conditions)
|
||||||
//
|
//
|
||||||
;
|
;
|
||||||
|
|||||||
Reference in New Issue
Block a user