Apply X121 XAUUSDb Level 3 Fix ...
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.x121.strategy.mq5"
|
||||||
|
|
||||||
|
//
|
||||||
|
// Conditions Parser ...
|
||||||
|
struct X121StartegyAMarketsXAUUSDOlds2ShortConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
bool IsFiltered(
|
||||||
|
X121StrategyConditions &conditions //
|
||||||
|
)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
bool result = false;
|
||||||
|
|
||||||
|
//
|
||||||
|
result =
|
||||||
|
//
|
||||||
|
false
|
||||||
|
//
|
||||||
|
;
|
||||||
|
|
||||||
|
//
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
//
|
||||||
+188330
-1
File diff suppressed because it is too large
Load Diff
@@ -24,6 +24,7 @@
|
|||||||
// Imports ...
|
// Imports ...
|
||||||
#include "../../../../Strategies/x-saherelm.x121.strategy.mq5"
|
#include "../../../../Strategies/x-saherelm.x121.strategy.mq5"
|
||||||
#include "../Olds/x-saherelm.x121.amarkets.xauusd.olds.1.short.parser.mq5"
|
#include "../Olds/x-saherelm.x121.amarkets.xauusd.olds.1.short.parser.mq5"
|
||||||
|
#include "../Olds/x-saherelm.x121.amarkets.xauusd.olds.2.short.parser.mq5"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Conditions Parser ...
|
// Conditions Parser ...
|
||||||
@@ -32,6 +33,7 @@ struct X121StartegyAMarketsXAUUSDOldsShortConditionsParser
|
|||||||
//
|
//
|
||||||
string _version;
|
string _version;
|
||||||
X121StartegyAMarketsXAUUSDOlds1ShortConditionsParser _olds1Parser;
|
X121StartegyAMarketsXAUUSDOlds1ShortConditionsParser _olds1Parser;
|
||||||
|
X121StartegyAMarketsXAUUSDOlds2ShortConditionsParser _olds1Parser;
|
||||||
|
|
||||||
//
|
//
|
||||||
bool IsFiltered(
|
bool IsFiltered(
|
||||||
@@ -47,6 +49,12 @@ struct X121StartegyAMarketsXAUUSDOldsShortConditionsParser
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
result = _olds2Parser.IsFiltered(conditions);
|
||||||
|
if (result) {
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
result =
|
result =
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user