last ...
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 XCHStartegyAMarketsUS302019LongConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsUS302019ShortConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsUS30OldsLongConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsUS30OldsShortConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
bool IsFiltered(
|
||||||
|
XCHStrategyConditions &conditions //
|
||||||
|
)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
bool result = false;
|
||||||
|
|
||||||
|
//
|
||||||
|
result =
|
||||||
|
//
|
||||||
|
false
|
||||||
|
//
|
||||||
|
;
|
||||||
|
|
||||||
|
//
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
//
|
||||||
@@ -24,27 +24,50 @@
|
|||||||
// Imports ...
|
// Imports ...
|
||||||
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
||||||
|
|
||||||
|
//
|
||||||
|
#include "./Olds/x-saherelm.xch.amarkets.us30.olds.long.parser.mq5"
|
||||||
|
#include "./2019/x-saherelm.xch.amarkets.us30.2019.long.parser.mq5"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Conditions Parser ...
|
// Conditions Parser ...
|
||||||
struct XCHStartegyAMarketsUS30LongConditionsParser
|
struct XCHStartegyAMarketsUS30LongConditionsParser
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
string _version;
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
XCHStartegyAMarketsUS30OldsLongConditionsParser _oldsParser;
|
||||||
|
XCHStartegyAMarketsUS302019LongConditionsParser _2019Parser;
|
||||||
|
|
||||||
//
|
//
|
||||||
bool IsFiltered(
|
bool IsFiltered(
|
||||||
XCHStrategyConditions &conditions //
|
XSignal &signal,
|
||||||
|
XCHStrategyConditions &conditions,
|
||||||
|
bool force = true //
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
//
|
//
|
||||||
result =
|
if (!force)
|
||||||
|
{
|
||||||
|
result = _2019Parser.IsFiltered(conditions);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
//
|
//
|
||||||
false
|
result =
|
||||||
//
|
//
|
||||||
;
|
_2019Parser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
||
|
||||||
|
//
|
||||||
|
_oldsParser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -24,27 +24,49 @@
|
|||||||
// Imports ...
|
// Imports ...
|
||||||
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
||||||
|
|
||||||
|
//
|
||||||
|
#include "./Olds/x-saherelm.xch.amarkets.us30.olds.short.parser.mq5"
|
||||||
|
#include "./2019/x-saherelm.xch.amarkets.us30.2019.short.parser.mq5"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Conditions Parser ...
|
// Conditions Parser ...
|
||||||
struct XCHStartegyAMarketsUS30ShortConditionsParser
|
struct XCHStartegyAMarketsUS30ShortConditionsParser
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
string _version;
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
XCHStartegyAMarketsUS30OldsShortConditionsParser _oldsParser;
|
||||||
|
XCHStartegyAMarketsUS302019ShortConditionsParser _2019Parser;
|
||||||
|
|
||||||
//
|
//
|
||||||
bool IsFiltered(
|
bool IsFiltered(
|
||||||
XCHStrategyConditions &conditions //
|
XSignal &signal,
|
||||||
|
XCHStrategyConditions &conditions,
|
||||||
|
bool force = true //
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
//
|
//
|
||||||
result =
|
if (!force)
|
||||||
|
{
|
||||||
|
result = _2019Parser.IsFiltered(conditions);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
//
|
//
|
||||||
false
|
result =
|
||||||
//
|
//
|
||||||
;
|
_2019Parser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
||
|
||||||
|
//
|
||||||
|
_oldsParser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
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 XCHStartegyAMarketsEURCAD2019LongConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsEURCAD2019ShortConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsEURCADOldsLongConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsEURCADOldsShortConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
bool IsFiltered(
|
||||||
|
XCHStrategyConditions &conditions //
|
||||||
|
)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
bool result = false;
|
||||||
|
|
||||||
|
//
|
||||||
|
result =
|
||||||
|
//
|
||||||
|
false
|
||||||
|
//
|
||||||
|
;
|
||||||
|
|
||||||
|
//
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
//
|
||||||
@@ -24,27 +24,49 @@
|
|||||||
// Imports ...
|
// Imports ...
|
||||||
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
||||||
|
|
||||||
|
//
|
||||||
|
#include "./Olds/x-saherelm.xch.amarkets.eurcad.olds.long.parser.mq5"
|
||||||
|
#include "./2019/x-saherelm.xch.amarkets.eurcad.2019.long.parser.mq5"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Conditions Parser ...
|
// Conditions Parser ...
|
||||||
struct XCHStartegyAMarketsEURCADLongConditionsParser
|
struct XCHStartegyAMarketsEURCADLongConditionsParser
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
string _version;
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
XCHStartegyAMarketsEURCADOldsLongConditionsParser _oldsParser;
|
||||||
|
XCHStartegyAMarketsEURCAD2019LongConditionsParser _2019Parser;
|
||||||
|
|
||||||
//
|
//
|
||||||
bool IsFiltered(
|
bool IsFiltered(
|
||||||
XCHStrategyConditions &conditions //
|
XSignal &signal,
|
||||||
|
XCHStrategyConditions &conditions,
|
||||||
|
bool force = true //
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
//
|
//
|
||||||
result =
|
if (!force)
|
||||||
|
{
|
||||||
|
result = _2019Parser.IsFiltered(conditions);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
//
|
//
|
||||||
false
|
result =
|
||||||
//
|
//
|
||||||
;
|
_2019Parser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
||
|
||||||
|
//
|
||||||
|
_oldsParser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -24,27 +24,49 @@
|
|||||||
// Imports ...
|
// Imports ...
|
||||||
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
||||||
|
|
||||||
|
//
|
||||||
|
#include "./Olds/x-saherelm.xch.amarkets.eurcad.olds.short.parser.mq5"
|
||||||
|
#include "./2019/x-saherelm.xch.amarkets.eurcad.2019.short.parser.mq5"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Conditions Parser ...
|
// Conditions Parser ...
|
||||||
struct XCHStartegyAMarketsEURCADShortConditionsParser
|
struct XCHStartegyAMarketsEURCADShortConditionsParser
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
string _version;
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
XCHStartegyAMarketsEURCADOldsShortConditionsParser _oldsParser;
|
||||||
|
XCHStartegyAMarketsEURCAD2019ShortConditionsParser _2019Parser;
|
||||||
|
|
||||||
//
|
//
|
||||||
bool IsFiltered(
|
bool IsFiltered(
|
||||||
XCHStrategyConditions &conditions //
|
XSignal &signal,
|
||||||
|
XCHStrategyConditions &conditions,
|
||||||
|
bool force = true //
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
//
|
//
|
||||||
result =
|
if (!force)
|
||||||
|
{
|
||||||
|
result = _2019Parser.IsFiltered(conditions);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
//
|
//
|
||||||
false
|
result =
|
||||||
//
|
//
|
||||||
;
|
_2019Parser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
||
|
||||||
|
//
|
||||||
|
_oldsParser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
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 XCHStartegyAMarketsEURCHF2019LongConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsEURCHF2019ShortConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsEURCHFOldsLongConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsEURCHFOldsShortConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
bool IsFiltered(
|
||||||
|
XCHStrategyConditions &conditions //
|
||||||
|
)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
bool result = false;
|
||||||
|
|
||||||
|
//
|
||||||
|
result =
|
||||||
|
//
|
||||||
|
false
|
||||||
|
//
|
||||||
|
;
|
||||||
|
|
||||||
|
//
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
//
|
||||||
@@ -24,27 +24,49 @@
|
|||||||
// Imports ...
|
// Imports ...
|
||||||
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
||||||
|
|
||||||
|
//
|
||||||
|
#include "./Olds/x-saherelm.xch.amarkets.eurchf.olds.long.parser.mq5"
|
||||||
|
#include "./2019/x-saherelm.xch.amarkets.eurchf.2019.long.parser.mq5"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Conditions Parser ...
|
// Conditions Parser ...
|
||||||
struct XCHStartegyAMarketsEURCHFLongConditionsParser
|
struct XCHStartegyAMarketsEURCHFLongConditionsParser
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
string _version;
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
XCHStartegyAMarketsEURCHFOldsLongConditionsParser _oldsParser;
|
||||||
|
XCHStartegyAMarketsEURCHF2019LongConditionsParser _2019Parser;
|
||||||
|
|
||||||
//
|
//
|
||||||
bool IsFiltered(
|
bool IsFiltered(
|
||||||
XCHStrategyConditions &conditions //
|
XSignal &signal,
|
||||||
|
XCHStrategyConditions &conditions,
|
||||||
|
bool force = true //
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
//
|
//
|
||||||
result =
|
if (!force)
|
||||||
|
{
|
||||||
|
result = _2019Parser.IsFiltered(conditions);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
//
|
//
|
||||||
false
|
result =
|
||||||
//
|
//
|
||||||
;
|
_2019Parser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
||
|
||||||
|
//
|
||||||
|
_oldsParser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -24,27 +24,49 @@
|
|||||||
// Imports ...
|
// Imports ...
|
||||||
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
||||||
|
|
||||||
|
//
|
||||||
|
#include "./Olds/x-saherelm.xch.amarkets.eurchf.olds.short.parser.mq5"
|
||||||
|
#include "./2019/x-saherelm.xch.amarkets.eurchf.2019.short.parser.mq5"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Conditions Parser ...
|
// Conditions Parser ...
|
||||||
struct XCHStartegyAMarketsEURCHFShortConditionsParser
|
struct XCHStartegyAMarketsEURCHFShortConditionsParser
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
string _version;
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
XCHStartegyAMarketsEURCHFOldsShortConditionsParser _oldsParser;
|
||||||
|
XCHStartegyAMarketsEURCHF2019ShortConditionsParser _2019Parser;
|
||||||
|
|
||||||
//
|
//
|
||||||
bool IsFiltered(
|
bool IsFiltered(
|
||||||
XCHStrategyConditions &conditions //
|
XSignal &signal,
|
||||||
|
XCHStrategyConditions &conditions,
|
||||||
|
bool force = true //
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
//
|
//
|
||||||
result =
|
if (!force)
|
||||||
|
{
|
||||||
|
result = _2019Parser.IsFiltered(conditions);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
//
|
//
|
||||||
false
|
result =
|
||||||
//
|
//
|
||||||
;
|
_2019Parser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
||
|
||||||
|
//
|
||||||
|
_oldsParser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
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 XCHStartegyAMarketsEURGBPLongConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsEURGBPShortConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsEURGBPLongConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsEURGBPShortConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
bool IsFiltered(
|
||||||
|
XCHStrategyConditions &conditions //
|
||||||
|
)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
bool result = false;
|
||||||
|
|
||||||
|
//
|
||||||
|
result =
|
||||||
|
//
|
||||||
|
false
|
||||||
|
//
|
||||||
|
;
|
||||||
|
|
||||||
|
//
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
//
|
||||||
@@ -24,27 +24,49 @@
|
|||||||
// Imports ...
|
// Imports ...
|
||||||
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
||||||
|
|
||||||
|
//
|
||||||
|
#include "./Olds/x-saherelm.xch.amarkets.eurgbp.olds.long.parser.mq5"
|
||||||
|
#include "./2019/x-saherelm.xch.amarkets.eurgbp.2019.long.parser.mq5"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Conditions Parser ...
|
// Conditions Parser ...
|
||||||
struct XCHStartegyAMarketsEURGBPLongConditionsParser
|
struct XCHStartegyAMarketsEURGBPLongConditionsParser
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
string _version;
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
XCHStartegyAMarketsUS30OldsLongConditionsParser _oldsParser;
|
||||||
|
XCHStartegyAMarketsUS302019LongConditionsParser _2019Parser;
|
||||||
|
|
||||||
//
|
//
|
||||||
bool IsFiltered(
|
bool IsFiltered(
|
||||||
XCHStrategyConditions &conditions //
|
XSignal &signal,
|
||||||
|
XCHStrategyConditions &conditions,
|
||||||
|
bool force = true //
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
//
|
//
|
||||||
result =
|
if (!force)
|
||||||
|
{
|
||||||
|
result = _2019Parser.IsFiltered(conditions);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
//
|
//
|
||||||
false
|
result =
|
||||||
//
|
//
|
||||||
;
|
_2019Parser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
||
|
||||||
|
//
|
||||||
|
_oldsParser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -24,27 +24,49 @@
|
|||||||
// Imports ...
|
// Imports ...
|
||||||
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
||||||
|
|
||||||
|
//
|
||||||
|
#include "./Olds/x-saherelm.xch.amarkets.eurgbp.olds.short.parser.mq5"
|
||||||
|
#include "./2019/x-saherelm.xch.amarkets.eurgbp.2019.short.parser.mq5"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Conditions Parser ...
|
// Conditions Parser ...
|
||||||
struct XCHStartegyAMarketsEURGBPShortConditionsParser
|
struct XCHStartegyAMarketsEURGBPShortConditionsParser
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
string _version;
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
XCHStartegyAMarketsUS30OldsShortConditionsParser _oldsParser;
|
||||||
|
XCHStartegyAMarketsUS302019ShortConditionsParser _2019Parser;
|
||||||
|
|
||||||
//
|
//
|
||||||
bool IsFiltered(
|
bool IsFiltered(
|
||||||
XCHStrategyConditions &conditions //
|
XSignal &signal,
|
||||||
|
XCHStrategyConditions &conditions,
|
||||||
|
bool force = true //
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
//
|
//
|
||||||
result =
|
if (!force)
|
||||||
|
{
|
||||||
|
result = _2019Parser.IsFiltered(conditions);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
//
|
//
|
||||||
false
|
result =
|
||||||
//
|
//
|
||||||
;
|
_2019Parser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
||
|
||||||
|
//
|
||||||
|
_oldsParser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
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 XCHStartegyAMarketsEURJPYLongConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsEURJPYShortConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsEURJPYLongConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsEURJPYShortConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
bool IsFiltered(
|
||||||
|
XCHStrategyConditions &conditions //
|
||||||
|
)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
bool result = false;
|
||||||
|
|
||||||
|
//
|
||||||
|
result =
|
||||||
|
//
|
||||||
|
false
|
||||||
|
//
|
||||||
|
;
|
||||||
|
|
||||||
|
//
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
//
|
||||||
@@ -24,27 +24,49 @@
|
|||||||
// Imports ...
|
// Imports ...
|
||||||
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
||||||
|
|
||||||
|
//
|
||||||
|
#include "./Olds/x-saherelm.xch.amarkets.eurjpys.olds.long.parser.mq5"
|
||||||
|
#include "./2019/x-saherelm.xch.amarkets.eurjpys.2019.long.parser.mq5"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Conditions Parser ...
|
// Conditions Parser ...
|
||||||
struct XCHStartegyAMarketsEURJPYLongConditionsParser
|
struct XCHStartegyAMarketsEURJPYLongConditionsParser
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
string _version;
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
XCHStartegyAMarketsUS30OldsLongConditionsParser _oldsParser;
|
||||||
|
XCHStartegyAMarketsUS302019LongConditionsParser _2019Parser;
|
||||||
|
|
||||||
//
|
//
|
||||||
bool IsFiltered(
|
bool IsFiltered(
|
||||||
XCHStrategyConditions &conditions //
|
XSignal &signal,
|
||||||
|
XCHStrategyConditions &conditions,
|
||||||
|
bool force = true //
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
//
|
//
|
||||||
result =
|
if (!force)
|
||||||
|
{
|
||||||
|
result = _2019Parser.IsFiltered(conditions);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
//
|
//
|
||||||
false
|
result =
|
||||||
//
|
//
|
||||||
;
|
_2019Parser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
||
|
||||||
|
//
|
||||||
|
_oldsParser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -24,27 +24,49 @@
|
|||||||
// Imports ...
|
// Imports ...
|
||||||
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
||||||
|
|
||||||
|
//
|
||||||
|
#include "./Olds/x-saherelm.xch.amarkets.eurjpys.olds.short.parser.mq5"
|
||||||
|
#include "./2019/x-saherelm.xch.amarkets.eurjpys.2019.short.parser.mq5"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Conditions Parser ...
|
// Conditions Parser ...
|
||||||
struct XCHStartegyAMarketsEURJPYShortConditionsParser
|
struct XCHStartegyAMarketsEURJPYShortConditionsParser
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
string _version;
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
XCHStartegyAMarketsUS30OldsShortConditionsParser _oldsParser;
|
||||||
|
XCHStartegyAMarketsUS302019ShortConditionsParser _2019Parser;
|
||||||
|
|
||||||
//
|
//
|
||||||
bool IsFiltered(
|
bool IsFiltered(
|
||||||
XCHStrategyConditions &conditions //
|
XSignal &signal,
|
||||||
|
XCHStrategyConditions &conditions,
|
||||||
|
bool force = true //
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
//
|
//
|
||||||
result =
|
if (!force)
|
||||||
|
{
|
||||||
|
result = _2019Parser.IsFiltered(conditions);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
//
|
//
|
||||||
false
|
result =
|
||||||
//
|
//
|
||||||
;
|
_2019Parser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
||
|
||||||
|
//
|
||||||
|
_oldsParser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
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 XCHStartegyAMarketsEURUSDLongConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsEURUSDShortConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsEURUSDLongConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsEURUSDShortConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
bool IsFiltered(
|
||||||
|
XCHStrategyConditions &conditions //
|
||||||
|
)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
bool result = false;
|
||||||
|
|
||||||
|
//
|
||||||
|
result =
|
||||||
|
//
|
||||||
|
false
|
||||||
|
//
|
||||||
|
;
|
||||||
|
|
||||||
|
//
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
//
|
||||||
@@ -24,27 +24,49 @@
|
|||||||
// Imports ...
|
// Imports ...
|
||||||
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
||||||
|
|
||||||
|
//
|
||||||
|
#include "./Olds/x-saherelm.xch.amarkets.eurusd.olds.long.parser.mq5"
|
||||||
|
#include "./2019/x-saherelm.xch.amarkets.eurusd.2019.long.parser.mq5"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Conditions Parser ...
|
// Conditions Parser ...
|
||||||
struct XCHStartegyAMarketsEURUSDLongConditionsParser
|
struct XCHStartegyAMarketsEURUSDLongConditionsParser
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
string _version;
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
XCHStartegyAMarketsUS30OldsLongConditionsParser _oldsParser;
|
||||||
|
XCHStartegyAMarketsUS302019LongConditionsParser _2019Parser;
|
||||||
|
|
||||||
//
|
//
|
||||||
bool IsFiltered(
|
bool IsFiltered(
|
||||||
XCHStrategyConditions &conditions //
|
XSignal &signal,
|
||||||
|
XCHStrategyConditions &conditions,
|
||||||
|
bool force = true //
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
//
|
//
|
||||||
result =
|
if (!force)
|
||||||
|
{
|
||||||
|
result = _2019Parser.IsFiltered(conditions);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
//
|
//
|
||||||
false
|
result =
|
||||||
//
|
//
|
||||||
;
|
_2019Parser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
||
|
||||||
|
//
|
||||||
|
_oldsParser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -24,27 +24,49 @@
|
|||||||
// Imports ...
|
// Imports ...
|
||||||
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
||||||
|
|
||||||
|
//
|
||||||
|
#include "./Olds/x-saherelm.xch.amarkets.eurusd.olds.short.parser.mq5"
|
||||||
|
#include "./2019/x-saherelm.xch.amarkets.eurusd.2019.short.parser.mq5"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Conditions Parser ...
|
// Conditions Parser ...
|
||||||
struct XCHStartegyAMarketsEURUSDShortConditionsParser
|
struct XCHStartegyAMarketsEURUSDShortConditionsParser
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
string _version;
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
XCHStartegyAMarketsUS30OldsShortConditionsParser _oldsParser;
|
||||||
|
XCHStartegyAMarketsUS302019ShortConditionsParser _2019Parser;
|
||||||
|
|
||||||
//
|
//
|
||||||
bool IsFiltered(
|
bool IsFiltered(
|
||||||
XCHStrategyConditions &conditions //
|
XSignal &signal,
|
||||||
|
XCHStrategyConditions &conditions,
|
||||||
|
bool force = true //
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
//
|
//
|
||||||
result =
|
if (!force)
|
||||||
|
{
|
||||||
|
result = _2019Parser.IsFiltered(conditions);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
//
|
//
|
||||||
false
|
result =
|
||||||
//
|
//
|
||||||
;
|
_2019Parser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
||
|
||||||
|
//
|
||||||
|
_oldsParser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
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 XCHStartegyAMarketsGBPUSDLongConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsGBPUSDShortConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsGBPUSDLongConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsGBPUSDShortConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
bool IsFiltered(
|
||||||
|
XCHStrategyConditions &conditions //
|
||||||
|
)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
bool result = false;
|
||||||
|
|
||||||
|
//
|
||||||
|
result =
|
||||||
|
//
|
||||||
|
false
|
||||||
|
//
|
||||||
|
;
|
||||||
|
|
||||||
|
//
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
//
|
||||||
@@ -24,27 +24,49 @@
|
|||||||
// Imports ...
|
// Imports ...
|
||||||
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
||||||
|
|
||||||
|
//
|
||||||
|
#include "./Olds/x-saherelm.xch.amarkets.gbpusd.olds.long.parser.mq5"
|
||||||
|
#include "./2019/x-saherelm.xch.amarkets.gbpusd.2019.long.parser.mq5"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Conditions Parser ...
|
// Conditions Parser ...
|
||||||
struct XCHStartegyAMarketsGBPUSDLongConditionsParser
|
struct XCHStartegyAMarketsGBPUSDLongConditionsParser
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
string _version;
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
XCHStartegyAMarketsUS30OldsLongConditionsParser _oldsParser;
|
||||||
|
XCHStartegyAMarketsUS302019LongConditionsParser _2019Parser;
|
||||||
|
|
||||||
//
|
//
|
||||||
bool IsFiltered(
|
bool IsFiltered(
|
||||||
XCHStrategyConditions &conditions //
|
XSignal &signal,
|
||||||
|
XCHStrategyConditions &conditions,
|
||||||
|
bool force = true //
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
//
|
//
|
||||||
result =
|
if (!force)
|
||||||
|
{
|
||||||
|
result = _2019Parser.IsFiltered(conditions);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
//
|
//
|
||||||
false
|
result =
|
||||||
//
|
//
|
||||||
;
|
_2019Parser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
||
|
||||||
|
//
|
||||||
|
_oldsParser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -24,27 +24,49 @@
|
|||||||
// Imports ...
|
// Imports ...
|
||||||
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
||||||
|
|
||||||
|
//
|
||||||
|
#include "./Olds/x-saherelm.xch.amarkets.gbpusd.olds.short.parser.mq5"
|
||||||
|
#include "./2019/x-saherelm.xch.amarkets.gbpusd.2019.short.parser.mq5"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Conditions Parser ...
|
// Conditions Parser ...
|
||||||
struct XCHStartegyAMarketsGBPUSDShortConditionsParser
|
struct XCHStartegyAMarketsGBPUSDShortConditionsParser
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
string _version;
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
XCHStartegyAMarketsUS30OldsShortConditionsParser _oldsParser;
|
||||||
|
XCHStartegyAMarketsUS302019ShortConditionsParser _2019Parser;
|
||||||
|
|
||||||
//
|
//
|
||||||
bool IsFiltered(
|
bool IsFiltered(
|
||||||
XCHStrategyConditions &conditions //
|
XSignal &signal,
|
||||||
|
XCHStrategyConditions &conditions,
|
||||||
|
bool force = true //
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
//
|
//
|
||||||
result =
|
if (!force)
|
||||||
|
{
|
||||||
|
result = _2019Parser.IsFiltered(conditions);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
//
|
//
|
||||||
false
|
result =
|
||||||
//
|
//
|
||||||
;
|
_2019Parser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
||
|
||||||
|
//
|
||||||
|
_oldsParser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
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 XCHStartegyAMarketsNZDUSDLongConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsNZDUSDShortConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsNZDUSDLongConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsNZDUSDShortConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
bool IsFiltered(
|
||||||
|
XCHStrategyConditions &conditions //
|
||||||
|
)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
bool result = false;
|
||||||
|
|
||||||
|
//
|
||||||
|
result =
|
||||||
|
//
|
||||||
|
false
|
||||||
|
//
|
||||||
|
;
|
||||||
|
|
||||||
|
//
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
//
|
||||||
@@ -24,27 +24,49 @@
|
|||||||
// Imports ...
|
// Imports ...
|
||||||
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
||||||
|
|
||||||
|
//
|
||||||
|
#include "./Olds/x-saherelm.xch.amarkets.nzdusd.olds.long.parser.mq5"
|
||||||
|
#include "./2019/x-saherelm.xch.amarkets.nzdusd.2019.long.parser.mq5"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Conditions Parser ...
|
// Conditions Parser ...
|
||||||
struct XCHStartegyAMarketsNZDUSDLongConditionsParser
|
struct XCHStartegyAMarketsNZDUSDLongConditionsParser
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
string _version;
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
XCHStartegyAMarketsUS30OldsLongConditionsParser _oldsParser;
|
||||||
|
XCHStartegyAMarketsUS302019LongConditionsParser _2019Parser;
|
||||||
|
|
||||||
//
|
//
|
||||||
bool IsFiltered(
|
bool IsFiltered(
|
||||||
XCHStrategyConditions &conditions //
|
XSignal &signal,
|
||||||
|
XCHStrategyConditions &conditions,
|
||||||
|
bool force = true //
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
//
|
//
|
||||||
result =
|
if (!force)
|
||||||
|
{
|
||||||
|
result = _2019Parser.IsFiltered(conditions);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
//
|
//
|
||||||
false
|
result =
|
||||||
//
|
//
|
||||||
;
|
_2019Parser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
||
|
||||||
|
//
|
||||||
|
_oldsParser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -24,27 +24,49 @@
|
|||||||
// Imports ...
|
// Imports ...
|
||||||
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
||||||
|
|
||||||
|
//
|
||||||
|
#include "./Olds/x-saherelm.xch.amarkets.nzdusd.olds.short.parser.mq5"
|
||||||
|
#include "./2019/x-saherelm.xch.amarkets.nzdusd.2019.short.parser.mq5"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Conditions Parser ...
|
// Conditions Parser ...
|
||||||
struct XCHStartegyAMarketsNZDUSDShortConditionsParser
|
struct XCHStartegyAMarketsNZDUSDShortConditionsParser
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
string _version;
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
XCHStartegyAMarketsUS30OldsShortConditionsParser _oldsParser;
|
||||||
|
XCHStartegyAMarketsUS302019ShortConditionsParser _2019Parser;
|
||||||
|
|
||||||
//
|
//
|
||||||
bool IsFiltered(
|
bool IsFiltered(
|
||||||
XCHStrategyConditions &conditions //
|
XSignal &signal,
|
||||||
|
XCHStrategyConditions &conditions,
|
||||||
|
bool force = true //
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
//
|
//
|
||||||
result =
|
if (!force)
|
||||||
|
{
|
||||||
|
result = _2019Parser.IsFiltered(conditions);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
//
|
//
|
||||||
false
|
result =
|
||||||
//
|
//
|
||||||
;
|
_2019Parser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
||
|
||||||
|
//
|
||||||
|
_oldsParser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
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 XCHStartegyAMarketsUSDCADLongConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsUSDCADShortConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsUSDCADLongConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsUSDCADShortConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
bool IsFiltered(
|
||||||
|
XCHStrategyConditions &conditions //
|
||||||
|
)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
bool result = false;
|
||||||
|
|
||||||
|
//
|
||||||
|
result =
|
||||||
|
//
|
||||||
|
false
|
||||||
|
//
|
||||||
|
;
|
||||||
|
|
||||||
|
//
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
//
|
||||||
@@ -24,27 +24,49 @@
|
|||||||
// Imports ...
|
// Imports ...
|
||||||
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
||||||
|
|
||||||
|
//
|
||||||
|
#include "./Olds/x-saherelm.xch.amarkets.usdcad.olds.long.parser.mq5"
|
||||||
|
#include "./2019/x-saherelm.xch.amarkets.usdcad.2019.long.parser.mq5"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Conditions Parser ...
|
// Conditions Parser ...
|
||||||
struct XCHStartegyAMarketsUSDCADLongConditionsParser
|
struct XCHStartegyAMarketsUSDCADLongConditionsParser
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
string _version;
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
XCHStartegyAMarketsUS30OldsLongConditionsParser _oldsParser;
|
||||||
|
XCHStartegyAMarketsUS302019LongConditionsParser _2019Parser;
|
||||||
|
|
||||||
//
|
//
|
||||||
bool IsFiltered(
|
bool IsFiltered(
|
||||||
XCHStrategyConditions &conditions //
|
XSignal &signal,
|
||||||
|
XCHStrategyConditions &conditions,
|
||||||
|
bool force = true //
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
//
|
//
|
||||||
result =
|
if (!force)
|
||||||
|
{
|
||||||
|
result = _2019Parser.IsFiltered(conditions);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
//
|
//
|
||||||
false
|
result =
|
||||||
//
|
//
|
||||||
;
|
_2019Parser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
||
|
||||||
|
//
|
||||||
|
_oldsParser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -24,27 +24,49 @@
|
|||||||
// Imports ...
|
// Imports ...
|
||||||
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
||||||
|
|
||||||
|
//
|
||||||
|
#include "./Olds/x-saherelm.xch.amarkets.usdcad.olds.short.parser.mq5"
|
||||||
|
#include "./2019/x-saherelm.xch.amarkets.usdcad.2019.short.parser.mq5"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Conditions Parser ...
|
// Conditions Parser ...
|
||||||
struct XCHStartegyAMarketsUSDCADShortConditionsParser
|
struct XCHStartegyAMarketsUSDCADShortConditionsParser
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
string _version;
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
XCHStartegyAMarketsUS30OldsShortConditionsParser _oldsParser;
|
||||||
|
XCHStartegyAMarketsUS302019ShortConditionsParser _2019Parser;
|
||||||
|
|
||||||
//
|
//
|
||||||
bool IsFiltered(
|
bool IsFiltered(
|
||||||
XCHStrategyConditions &conditions //
|
XSignal &signal,
|
||||||
|
XCHStrategyConditions &conditions,
|
||||||
|
bool force = true //
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
//
|
//
|
||||||
result =
|
if (!force)
|
||||||
|
{
|
||||||
|
result = _2019Parser.IsFiltered(conditions);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
//
|
//
|
||||||
false
|
result =
|
||||||
//
|
//
|
||||||
;
|
_2019Parser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
||
|
||||||
|
//
|
||||||
|
_oldsParser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
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 XCHStartegyAMarketsUSDCHFLongConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsUSDCHFShortConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsUSDCHFLongConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsUSDCHFShortConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
bool IsFiltered(
|
||||||
|
XCHStrategyConditions &conditions //
|
||||||
|
)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
bool result = false;
|
||||||
|
|
||||||
|
//
|
||||||
|
result =
|
||||||
|
//
|
||||||
|
false
|
||||||
|
//
|
||||||
|
;
|
||||||
|
|
||||||
|
//
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
//
|
||||||
@@ -24,6 +24,10 @@
|
|||||||
// Imports ...
|
// Imports ...
|
||||||
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
||||||
|
|
||||||
|
//
|
||||||
|
#include "./Olds/x-saherelm.xch.amarkets.usdchf.olds.long.parser.mq5"
|
||||||
|
#include "./2019/x-saherelm.xch.amarkets.usdchf.2019.long.parser.mq5"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Conditions Parser ...
|
// Conditions Parser ...
|
||||||
struct XCHStartegyAMarketsUSDCHFLongConditionsParser
|
struct XCHStartegyAMarketsUSDCHFLongConditionsParser
|
||||||
@@ -31,20 +35,38 @@ struct XCHStartegyAMarketsUSDCHFLongConditionsParser
|
|||||||
//
|
//
|
||||||
string _version;
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
XCHStartegyAMarketsUS30OldsLongConditionsParser _oldsParser;
|
||||||
|
XCHStartegyAMarketsUS302019LongConditionsParser _2019Parser;
|
||||||
|
|
||||||
//
|
//
|
||||||
bool IsFiltered(
|
bool IsFiltered(
|
||||||
XCHStrategyConditions &conditions //
|
XSignal &signal,
|
||||||
|
XCHStrategyConditions &conditions,
|
||||||
|
bool force = true //
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
//
|
//
|
||||||
result =
|
if (!force)
|
||||||
|
{
|
||||||
|
result = _2019Parser.IsFiltered(conditions);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
//
|
//
|
||||||
false
|
result =
|
||||||
//
|
//
|
||||||
;
|
_2019Parser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
||
|
||||||
|
//
|
||||||
|
_oldsParser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -24,27 +24,49 @@
|
|||||||
// Imports ...
|
// Imports ...
|
||||||
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
||||||
|
|
||||||
|
//
|
||||||
|
#include "./Olds/x-saherelm.xch.amarkets.usdchf.olds.short.parser.mq5"
|
||||||
|
#include "./2019/x-saherelm.xch.amarkets.usdchf.2019.short.parser.mq5"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Conditions Parser ...
|
// Conditions Parser ...
|
||||||
struct XCHStartegyAMarketsUSDCHFShortConditionsParser
|
struct XCHStartegyAMarketsUSDCHFShortConditionsParser
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
string _version;
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
XCHStartegyAMarketsUS30OldsShortConditionsParser _oldsParser;
|
||||||
|
XCHStartegyAMarketsUS302019ShortConditionsParser _2019Parser;
|
||||||
|
|
||||||
//
|
//
|
||||||
bool IsFiltered(
|
bool IsFiltered(
|
||||||
XCHStrategyConditions &conditions //
|
XSignal &signal,
|
||||||
|
XCHStrategyConditions &conditions,
|
||||||
|
bool force = true //
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
//
|
//
|
||||||
result =
|
if (!force)
|
||||||
|
{
|
||||||
|
result = _2019Parser.IsFiltered(conditions);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
//
|
//
|
||||||
false
|
result =
|
||||||
//
|
//
|
||||||
;
|
_2019Parser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
||
|
||||||
|
//
|
||||||
|
_oldsParser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
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 XCHStartegyAMarketsUSDJPYLongConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsUSDJPYShortConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsUSDJPYLongConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsUSDJPYShortConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
bool IsFiltered(
|
||||||
|
XCHStrategyConditions &conditions //
|
||||||
|
)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
bool result = false;
|
||||||
|
|
||||||
|
//
|
||||||
|
result =
|
||||||
|
//
|
||||||
|
false
|
||||||
|
//
|
||||||
|
;
|
||||||
|
|
||||||
|
//
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
//
|
||||||
@@ -24,27 +24,49 @@
|
|||||||
// Imports ...
|
// Imports ...
|
||||||
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
||||||
|
|
||||||
|
//
|
||||||
|
#include "./Olds/x-saherelm.xch.amarkets.usdjpy.olds.long.parser.mq5"
|
||||||
|
#include "./2019/x-saherelm.xch.amarkets.usdjpy.2019.long.parser.mq5"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Conditions Parser ...
|
// Conditions Parser ...
|
||||||
struct XCHStartegyAMarketsUSDJPYLongConditionsParser
|
struct XCHStartegyAMarketsUSDJPYLongConditionsParser
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
string _version;
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
XCHStartegyAMarketsUS30OldsLongConditionsParser _oldsParser;
|
||||||
|
XCHStartegyAMarketsUS302019LongConditionsParser _2019Parser;
|
||||||
|
|
||||||
//
|
//
|
||||||
bool IsFiltered(
|
bool IsFiltered(
|
||||||
XCHStrategyConditions &conditions //
|
XSignal &signal,
|
||||||
|
XCHStrategyConditions &conditions,
|
||||||
|
bool force = true //
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
//
|
//
|
||||||
result =
|
if (!force)
|
||||||
|
{
|
||||||
|
result = _2019Parser.IsFiltered(conditions);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
//
|
//
|
||||||
false
|
result =
|
||||||
//
|
//
|
||||||
;
|
_2019Parser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
||
|
||||||
|
//
|
||||||
|
_oldsParser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -24,27 +24,49 @@
|
|||||||
// Imports ...
|
// Imports ...
|
||||||
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
||||||
|
|
||||||
|
//
|
||||||
|
#include "./Olds/x-saherelm.xch.amarkets.usdjpy.olds.short.parser.mq5"
|
||||||
|
#include "./2019/x-saherelm.xch.amarkets.usdjpy.2019.short.parser.mq5"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Conditions Parser ...
|
// Conditions Parser ...
|
||||||
struct XCHStartegyAMarketsUSDJPYShortConditionsParser
|
struct XCHStartegyAMarketsUSDJPYShortConditionsParser
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
string _version;
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
XCHStartegyAMarketsUS30OldsShortConditionsParser _oldsParser;
|
||||||
|
XCHStartegyAMarketsUS302019ShortConditionsParser _2019Parser;
|
||||||
|
|
||||||
//
|
//
|
||||||
bool IsFiltered(
|
bool IsFiltered(
|
||||||
XCHStrategyConditions &conditions //
|
XSignal &signal,
|
||||||
|
XCHStrategyConditions &conditions,
|
||||||
|
bool force = true //
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
//
|
//
|
||||||
result =
|
if (!force)
|
||||||
|
{
|
||||||
|
result = _2019Parser.IsFiltered(conditions);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
//
|
//
|
||||||
false
|
result =
|
||||||
//
|
//
|
||||||
;
|
_2019Parser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
||
|
||||||
|
//
|
||||||
|
_oldsParser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
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 XCHStartegyAMarketsXAUUSDLongConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsXAUUSDShortConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsXAUUSDLongConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
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 XCHStartegyAMarketsXAUUSDShortConditionsParser
|
||||||
|
{
|
||||||
|
//
|
||||||
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
bool IsFiltered(
|
||||||
|
XCHStrategyConditions &conditions //
|
||||||
|
)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
bool result = false;
|
||||||
|
|
||||||
|
//
|
||||||
|
result =
|
||||||
|
//
|
||||||
|
false
|
||||||
|
//
|
||||||
|
;
|
||||||
|
|
||||||
|
//
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
//
|
||||||
@@ -24,27 +24,49 @@
|
|||||||
// Imports ...
|
// Imports ...
|
||||||
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
||||||
|
|
||||||
|
//
|
||||||
|
#include "./Olds/x-saherelm.xch.amarkets.xauusd.olds.long.parser.mq5"
|
||||||
|
#include "./2019/x-saherelm.xch.amarkets.xauusd.2019.long.parser.mq5"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Conditions Parser ...
|
// Conditions Parser ...
|
||||||
struct XCHStartegyAMarketsXAUUSDLongConditionsParser
|
struct XCHStartegyAMarketsXAUUSDLongConditionsParser
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
string _version;
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
XCHStartegyAMarketsUS30OldsLongConditionsParser _oldsParser;
|
||||||
|
XCHStartegyAMarketsUS302019LongConditionsParser _2019Parser;
|
||||||
|
|
||||||
//
|
//
|
||||||
bool IsFiltered(
|
bool IsFiltered(
|
||||||
XCHStrategyConditions &conditions //
|
XSignal &signal,
|
||||||
|
XCHStrategyConditions &conditions,
|
||||||
|
bool force = true //
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
//
|
//
|
||||||
result =
|
if (!force)
|
||||||
|
{
|
||||||
|
result = _2019Parser.IsFiltered(conditions);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
//
|
//
|
||||||
false
|
result =
|
||||||
//
|
//
|
||||||
;
|
_2019Parser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
||
|
||||||
|
//
|
||||||
|
_oldsParser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -24,26 +24,49 @@
|
|||||||
// Imports ...
|
// Imports ...
|
||||||
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
#include "../../../Strategies/x-saherelm.xch.strategy.mq5"
|
||||||
|
|
||||||
|
//
|
||||||
|
#include "./Olds/x-saherelm.xch.amarkets.xauusd.olds.short.parser.mq5"
|
||||||
|
#include "./2019/x-saherelm.xch.amarkets.xauusd.2019.short.parser.mq5"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Conditions Parser ...
|
// Conditions Parser ...
|
||||||
struct XCHStartegyAMarketsXAUUSDShortConditionsParser
|
struct XCHStartegyAMarketsXAUUSDShortConditionsParser
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
string _version;
|
string _version;
|
||||||
|
|
||||||
|
//
|
||||||
|
XCHStartegyAMarketsUS30OldsShortConditionsParser _oldsParser;
|
||||||
|
XCHStartegyAMarketsUS302019ShortConditionsParser _2019Parser;
|
||||||
|
|
||||||
//
|
//
|
||||||
bool IsFiltered(
|
bool IsFiltered(
|
||||||
XCHStrategyConditions &conditions //
|
XSignal &signal,
|
||||||
|
XCHStrategyConditions &conditions,
|
||||||
|
bool force = true //
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
//
|
//
|
||||||
result =
|
if (!force)
|
||||||
|
{
|
||||||
|
result = _2019Parser.IsFiltered(conditions);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
//
|
//
|
||||||
false
|
result =
|
||||||
//
|
//
|
||||||
;
|
_2019Parser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
||
|
||||||
|
//
|
||||||
|
_oldsParser.IsFiltered(conditions)
|
||||||
|
//
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user