141 lines
3.9 KiB
Plaintext
141 lines
3.9 KiB
Plaintext
///////////////////////////////////////////////////////
|
|
//
|
|
// 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.che.strategy.mq5"
|
|
|
|
//
|
|
#include "./Olds/x-saherelm.xch.che.amarkets.eurcad.olds.short.parser.mq5"
|
|
#include "./2018/x-saherelm.xch.che.amarkets.eurcad.2018.short.parser.mq5"
|
|
#include "./2019/x-saherelm.xch.che.amarkets.eurcad.2019.short.parser.mq5"
|
|
#include "./2020/x-saherelm.xch.che.amarkets.eurcad.2020.short.parser.mq5"
|
|
#include "./2021/x-saherelm.xch.che.amarkets.eurcad.2021.short.parser.mq5"
|
|
#include "./2022/x-saherelm.xch.che.amarkets.eurcad.2022.short.parser.mq5"
|
|
#include "./2023/x-saherelm.xch.che.amarkets.eurcad.2023.short.parser.mq5"
|
|
#include "./2024/x-saherelm.xch.che.amarkets.eurcad.2024.short.parser.mq5"
|
|
|
|
//
|
|
// Conditions Parser ...
|
|
struct XCHCHEStartegyAMarketsEURCADShortConditionsParser
|
|
{
|
|
//
|
|
string _version;
|
|
|
|
//
|
|
XCHCHEStartegyAMarketsEURCADOldsShortConditionsParser _oldsParser;
|
|
XCHCHEStartegyAMarketsEURCAD2018ShortConditionsParser _2018Parser;
|
|
XCHCHEStartegyAMarketsEURCAD2019ShortConditionsParser _2019Parser;
|
|
XCHCHEStartegyAMarketsEURCAD2020ShortConditionsParser _2020Parser;
|
|
XCHCHEStartegyAMarketsEURCAD2021ShortConditionsParser _2021Parser;
|
|
XCHCHEStartegyAMarketsEURCAD2022ShortConditionsParser _2022Parser;
|
|
XCHCHEStartegyAMarketsEURCAD2023ShortConditionsParser _2023Parser;
|
|
XCHCHEStartegyAMarketsEURCAD2024ShortConditionsParser _2024Parser;
|
|
|
|
//
|
|
bool IsFiltered(
|
|
XSignal &signal,
|
|
XCHStrategyConditions &conditions,
|
|
bool force = true //
|
|
)
|
|
{
|
|
//
|
|
bool result = false;
|
|
|
|
//
|
|
if (!force)
|
|
{
|
|
//
|
|
result =
|
|
//
|
|
_2024Parser.IsFiltered(conditions)
|
|
//
|
|
||
|
|
//
|
|
_2023Parser.IsFiltered(conditions)
|
|
//
|
|
||
|
|
//
|
|
_2022Parser.IsFiltered(conditions)
|
|
//
|
|
||
|
|
//
|
|
_2021Parser.IsFiltered(conditions)
|
|
//
|
|
||
|
|
//
|
|
_2020Parser.IsFiltered(conditions)
|
|
//
|
|
||
|
|
//
|
|
_2019Parser.IsFiltered(conditions)
|
|
//
|
|
||
|
|
//
|
|
_2018Parser.IsFiltered(conditions)
|
|
//
|
|
;
|
|
}
|
|
else
|
|
{
|
|
//
|
|
result =
|
|
//
|
|
_2024Parser.IsFiltered(conditions)
|
|
//
|
|
||
|
|
//
|
|
_2023Parser.IsFiltered(conditions)
|
|
//
|
|
||
|
|
//
|
|
_2022Parser.IsFiltered(conditions)
|
|
//
|
|
||
|
|
//
|
|
_2021Parser.IsFiltered(conditions)
|
|
//
|
|
||
|
|
//
|
|
_2020Parser.IsFiltered(conditions)
|
|
//
|
|
||
|
|
//
|
|
_2019Parser.IsFiltered(conditions)
|
|
//
|
|
||
|
|
//
|
|
_2018Parser.IsFiltered(conditions)
|
|
//
|
|
||
|
|
//
|
|
_oldsParser.IsFiltered(conditions)
|
|
//
|
|
;
|
|
}
|
|
|
|
//
|
|
return result;
|
|
}
|
|
};
|
|
|
|
// |