Full Backup of X121 V0.1 Source Code ...
This commit is contained in:
+1572
File diff suppressed because it is too large
Load Diff
+1630
File diff suppressed because it is too large
Load Diff
+3672
File diff suppressed because it is too large
Load Diff
+2154
File diff suppressed because it is too large
Load Diff
+2286
File diff suppressed because it is too large
Load Diff
+2643
File diff suppressed because it is too large
Load Diff
+3518
File diff suppressed because it is too large
Load Diff
+3827
File diff suppressed because it is too large
Load Diff
+2105
File diff suppressed because it is too large
Load Diff
+1413
File diff suppressed because it is too large
Load Diff
+3231
File diff suppressed because it is too large
Load Diff
+2395
File diff suppressed because it is too large
Load Diff
+2058
File diff suppressed because it is too large
Load Diff
+2838
File diff suppressed because it is too large
Load Diff
+2721
File diff suppressed because it is too large
Load Diff
+4725
File diff suppressed because it is too large
Load Diff
+1726
File diff suppressed because it is too large
Load Diff
+3072
File diff suppressed because it is too large
Load Diff
+3772
File diff suppressed because it is too large
Load Diff
+2421
File diff suppressed because it is too large
Load Diff
+3949
File diff suppressed because it is too large
Load Diff
+1506
File diff suppressed because it is too large
Load Diff
+4175
File diff suppressed because it is too large
Load Diff
+3677
File diff suppressed because it is too large
Load Diff
+2627
File diff suppressed because it is too large
Load Diff
+635
@@ -0,0 +1,635 @@
|
||||
///////////////////////////////////////////////////////
|
||||
//
|
||||
// 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 XCHStartegyAMarketsEURCAD2024ShortConditionsParser
|
||||
{
|
||||
//
|
||||
string _version;
|
||||
|
||||
//
|
||||
bool IsFiltered(
|
||||
XCHStrategyConditions &conditions //
|
||||
)
|
||||
{
|
||||
//
|
||||
bool result = false;
|
||||
|
||||
//
|
||||
result =
|
||||
//
|
||||
(
|
||||
// Symbol: EURCADb
|
||||
// ---------------
|
||||
// Scores:
|
||||
// ---------------
|
||||
// Bullish: 1.0
|
||||
// Bearish: 74.0
|
||||
// ---------------
|
||||
// Time: 2024.05.03 00:10:02
|
||||
// ---------------
|
||||
//
|
||||
// XPV ...
|
||||
//
|
||||
conditions.pvConditions.isNewVale &&
|
||||
conditions.pvConditions.isNewValeUnderLast &&
|
||||
conditions.pvConditions.isFiboDecreased &&
|
||||
conditions.pvConditions.isCloseUnderFib1 &&
|
||||
conditions.pvConditions.isCloseUnderFib2 &&
|
||||
conditions.pvConditions.isCloseUnderFib3 &&
|
||||
conditions.pvConditions.isCloseUnderFib4 &&
|
||||
conditions.pvConditions.isCloseUnderFib5 &&
|
||||
conditions.pvConditions.isSCLLBearish &&
|
||||
conditions.pvConditions.isMCLLBearish &&
|
||||
conditions.pvConditions.isLCLLBearish &&
|
||||
conditions.pvConditions.isHCLLBearish &&
|
||||
//
|
||||
// XCHM ...
|
||||
//
|
||||
conditions.chmConditions.hasBearishPower &&
|
||||
conditions.chmConditions.isBullishPowerDecreasing &&
|
||||
conditions.chmConditions.isBearishPowerIncreasing &&
|
||||
conditions.chmConditions.isFastUnderSlow &&
|
||||
conditions.chmConditions.isClosedUnderFast &&
|
||||
conditions.chmConditions.isCFastUnderSlow &&
|
||||
conditions.chmConditions.isClosedUnderCFast &&
|
||||
conditions.chmConditions.isSFastUnderSlow &&
|
||||
conditions.chmConditions.isClosedUnderSFast &&
|
||||
conditions.chmConditions.isMFastUnderSlow &&
|
||||
conditions.chmConditions.isClosedUnderMFast &&
|
||||
conditions.chmConditions.isLFastUnderSlow &&
|
||||
conditions.chmConditions.isClosedUnderLFast &&
|
||||
conditions.chmConditions.isHFastOverSlow &&
|
||||
conditions.chmConditions.isClosedUnderHFast &&
|
||||
//
|
||||
// XCHHK ...
|
||||
//
|
||||
conditions.chhkConditions.hasBearishPower &&
|
||||
conditions.chhkConditions.isBearishPowerIncreasing &&
|
||||
conditions.chhkConditions.isCBearish &&
|
||||
conditions.chhkConditions.isCloseUnderCLow &&
|
||||
conditions.chhkConditions.isSBearish &&
|
||||
conditions.chhkConditions.isCloseUnderSLow &&
|
||||
conditions.chhkConditions.isMBearish &&
|
||||
conditions.chhkConditions.isCloseUnderMLow &&
|
||||
conditions.chhkConditions.isLBearish &&
|
||||
conditions.chhkConditions.isCloseUnderLLow &&
|
||||
conditions.chhkConditions.isHBearish &&
|
||||
conditions.chhkConditions.isCloseUnderHLow &&
|
||||
//
|
||||
// XCHTD ...
|
||||
//
|
||||
conditions.chtdConditions.hasBearishPower &&
|
||||
conditions.chtdConditions.isCBearish &&
|
||||
conditions.chtdConditions.isSBearish &&
|
||||
conditions.chtdConditions.isSSwitchedToBearish &&
|
||||
conditions.chtdConditions.isMBearish &&
|
||||
conditions.chtdConditions.isLBearish &&
|
||||
conditions.chtdConditions.isHBearish &&
|
||||
//
|
||||
// XCHCHE ...
|
||||
//
|
||||
conditions.chcheConditions.hasBearishPower &&
|
||||
conditions.chcheConditions.isCBearish &&
|
||||
conditions.chcheConditions.isCStrongBearish &&
|
||||
conditions.chcheConditions.isSBearish &&
|
||||
conditions.chcheConditions.isSStrongBearish &&
|
||||
conditions.chcheConditions.isSSwitchedToBearish &&
|
||||
conditions.chcheConditions.isSStrongSwitchedToBearish &&
|
||||
conditions.chcheConditions.isMBearish &&
|
||||
conditions.chcheConditions.isMStrongBearish &&
|
||||
conditions.chcheConditions.isMStrongSwitchedToBearish &&
|
||||
conditions.chcheConditions.isLBearish &&
|
||||
conditions.chcheConditions.isLStrongBearish &&
|
||||
conditions.chcheConditions.isLStrongSwitchedToBearish &&
|
||||
conditions.chcheConditions.isHBearish &&
|
||||
conditions.chcheConditions.isHStrongBearish &&
|
||||
conditions.chcheConditions.isHStrongSwitchedToBearish &&
|
||||
//
|
||||
// XCHSTR ...
|
||||
//
|
||||
conditions.chstrConditions.hasBearishPower &&
|
||||
conditions.chstrConditions.isBearishPowerUp &&
|
||||
conditions.chstrConditions.isCBearish &&
|
||||
conditions.chstrConditions.isSBearish &&
|
||||
conditions.chstrConditions.isMBearish &&
|
||||
conditions.chstrConditions.isMSwitchedToBearish &&
|
||||
conditions.chstrConditions.isLBearish &&
|
||||
conditions.chstrConditions.isLSwitchedToBearish &&
|
||||
conditions.chstrConditions.isHBearish &&
|
||||
conditions.chstrConditions.isHSwitchedToBearish &&
|
||||
//
|
||||
// XCHVLM ...
|
||||
//
|
||||
conditions.chvlmConditions.hasBearishPower &&
|
||||
conditions.chvlmConditions.isCBearish &&
|
||||
conditions.chvlmConditions.isSBearish &&
|
||||
conditions.chvlmConditions.isMBearish &&
|
||||
conditions.chvlmConditions.isLBearish &&
|
||||
conditions.chvlmConditions.isHBearish &&
|
||||
//
|
||||
// XCHVWAP ...
|
||||
//
|
||||
conditions.chvwapConditions.hasBearishPower &&
|
||||
conditions.chvwapConditions.isSBearish &&
|
||||
conditions.chvwapConditions.isMBearish &&
|
||||
conditions.chvwapConditions.isLBearish &&
|
||||
conditions.chvwapConditions.isHBearish
|
||||
//
|
||||
)
|
||||
//
|
||||
||
|
||||
//
|
||||
(
|
||||
// Symbol: EURCADb
|
||||
// ---------------
|
||||
// Scores:
|
||||
// ---------------
|
||||
// Bullish: 2.0
|
||||
// Bearish: 57.0
|
||||
// ---------------
|
||||
// Time: 2024.05.28 01:05:00
|
||||
// ---------------
|
||||
//
|
||||
// XPV ...
|
||||
//
|
||||
conditions.pvConditions.isCloseUnderFib1 &&
|
||||
conditions.pvConditions.isCloseUnderFib2 &&
|
||||
conditions.pvConditions.isCloseUnderFib3 &&
|
||||
conditions.pvConditions.isCloseUnderFib4 &&
|
||||
conditions.pvConditions.isCloseUnderFib5 &&
|
||||
conditions.pvConditions.isSCBearish &&
|
||||
conditions.pvConditions.isSCHHBearish &&
|
||||
conditions.pvConditions.isSCLLBearish &&
|
||||
conditions.pvConditions.isSCSwitchedToBearish &&
|
||||
conditions.pvConditions.isSCHHSwitchedToBearish &&
|
||||
conditions.pvConditions.isSCLLSwitchedToBeraish &&
|
||||
//
|
||||
// XCHM ...
|
||||
//
|
||||
conditions.chmConditions.hasBearishPower &&
|
||||
conditions.chmConditions.isFastUnderSlow &&
|
||||
conditions.chmConditions.isClosedUnderFast &&
|
||||
conditions.chmConditions.isCFastUnderSlow &&
|
||||
conditions.chmConditions.isClosedUnderCFast &&
|
||||
conditions.chmConditions.isSFastUnderSlow &&
|
||||
conditions.chmConditions.isClosedUnderSFast &&
|
||||
conditions.chmConditions.isMFastUnderSlow &&
|
||||
conditions.chmConditions.isClosedUnderMFast &&
|
||||
conditions.chmConditions.isLFastUnderSlow &&
|
||||
conditions.chmConditions.isClosedUnderLFast &&
|
||||
conditions.chmConditions.isHFastUnderSlow &&
|
||||
conditions.chmConditions.isClosedUnderHFast &&
|
||||
//
|
||||
// XCHHK ...
|
||||
//
|
||||
conditions.chhkConditions.hasBearishPower &&
|
||||
conditions.chhkConditions.isCBearish &&
|
||||
conditions.chhkConditions.isCloseUnderCLow &&
|
||||
conditions.chhkConditions.isSBearish &&
|
||||
conditions.chhkConditions.isCloseUnderSLow &&
|
||||
conditions.chhkConditions.isMBearish &&
|
||||
conditions.chhkConditions.isCloseUnderMLow &&
|
||||
conditions.chhkConditions.isLBearish &&
|
||||
conditions.chhkConditions.isCloseUnderLLow &&
|
||||
conditions.chhkConditions.isHBearish &&
|
||||
conditions.chhkConditions.isCloseUnderHLow &&
|
||||
//
|
||||
// XCHTD ...
|
||||
//
|
||||
conditions.chtdConditions.hasBearishPower &&
|
||||
conditions.chtdConditions.isCBearish &&
|
||||
conditions.chtdConditions.isSBearish &&
|
||||
conditions.chtdConditions.isMBearish &&
|
||||
conditions.chtdConditions.isLBearish &&
|
||||
conditions.chtdConditions.isHBearish &&
|
||||
//
|
||||
// XCHCHE ...
|
||||
//
|
||||
conditions.chcheConditions.hasBearishPower &&
|
||||
conditions.chcheConditions.isCBearish &&
|
||||
conditions.chcheConditions.isCStrongBearish &&
|
||||
conditions.chcheConditions.isSBearish &&
|
||||
conditions.chcheConditions.isSStrongBearish &&
|
||||
conditions.chcheConditions.isMBearish &&
|
||||
conditions.chcheConditions.isMStrongBearish &&
|
||||
conditions.chcheConditions.isLBearish &&
|
||||
conditions.chcheConditions.isLStrongBearish &&
|
||||
conditions.chcheConditions.isHBearish &&
|
||||
conditions.chcheConditions.isHStrongBearish &&
|
||||
//
|
||||
// XCHSTR ...
|
||||
//
|
||||
conditions.chstrConditions.hasBearishPower &&
|
||||
conditions.chstrConditions.isCBearish &&
|
||||
conditions.chstrConditions.isSBullish &&
|
||||
conditions.chstrConditions.isMBearish &&
|
||||
conditions.chstrConditions.isLBearish &&
|
||||
conditions.chstrConditions.isHBullish &&
|
||||
//
|
||||
// XCHVLM ...
|
||||
//
|
||||
conditions.chvlmConditions.hasBearishPower &&
|
||||
conditions.chvlmConditions.isCBearish &&
|
||||
conditions.chvlmConditions.isSBearish &&
|
||||
conditions.chvlmConditions.isMBearish &&
|
||||
conditions.chvlmConditions.isLBearish &&
|
||||
conditions.chvlmConditions.isHBearish
|
||||
//
|
||||
// XCHVWAP ...
|
||||
//
|
||||
//
|
||||
)
|
||||
//
|
||||
||
|
||||
//
|
||||
(
|
||||
// Symbol: EURCADb
|
||||
// ---------------
|
||||
// Scores:
|
||||
// ---------------
|
||||
// Bullish: 1.0
|
||||
// Bearish: 80.0
|
||||
// ---------------
|
||||
// Time: 2024.06.17 00:05:02
|
||||
// ---------------
|
||||
//
|
||||
// XPV ...
|
||||
//
|
||||
conditions.pvConditions.isNewVale &&
|
||||
conditions.pvConditions.isNewValeUnderLast &&
|
||||
conditions.pvConditions.isFiboDecreased &&
|
||||
conditions.pvConditions.isCloseUnderFib1 &&
|
||||
conditions.pvConditions.isCloseUnderFib2 &&
|
||||
conditions.pvConditions.isCloseUnderFib3 &&
|
||||
conditions.pvConditions.isCloseUnderFib4 &&
|
||||
conditions.pvConditions.isCloseUnderFib5 &&
|
||||
conditions.pvConditions.isCloseCrossedUnderFib1 &&
|
||||
conditions.pvConditions.isCloseCrossedUnderFib2 &&
|
||||
conditions.pvConditions.isCloseCrossedUnderFib3 &&
|
||||
conditions.pvConditions.isCloseCrossedUnderFib4 &&
|
||||
conditions.pvConditions.isCloseCrossedUnderFib5 &&
|
||||
conditions.pvConditions.isSCLLBearish &&
|
||||
conditions.pvConditions.isMCLLBearish &&
|
||||
conditions.pvConditions.isMCSwitchedToBearish &&
|
||||
conditions.pvConditions.isMCLLSwitchedToBeraish &&
|
||||
conditions.pvConditions.isLCLLBearish &&
|
||||
conditions.pvConditions.isLCSwitchedToBearish &&
|
||||
conditions.pvConditions.isLCLLSwitchedToBeraish &&
|
||||
conditions.pvConditions.isHCLLBearish &&
|
||||
conditions.pvConditions.isHCSwitchedToBearish &&
|
||||
conditions.pvConditions.isHCLLSwitchedToBeraish &&
|
||||
//
|
||||
// XCHM ...
|
||||
//
|
||||
conditions.chmConditions.hasBearishPower &&
|
||||
conditions.chmConditions.isFastUnderSlow &&
|
||||
conditions.chmConditions.isClosedUnderFast &&
|
||||
conditions.chmConditions.isCFastUnderSlow &&
|
||||
conditions.chmConditions.isCFastCrossedUnderSlow &&
|
||||
conditions.chmConditions.isClosedUnderCFast &&
|
||||
conditions.chmConditions.isSFastUnderSlow &&
|
||||
conditions.chmConditions.isSFastCrossedUnderSlow &&
|
||||
conditions.chmConditions.isClosedUnderSFast &&
|
||||
conditions.chmConditions.isMFastUnderSlow &&
|
||||
conditions.chmConditions.isClosedUnderMFast &&
|
||||
conditions.chmConditions.isLFastUnderSlow &&
|
||||
conditions.chmConditions.isClosedUnderLFast &&
|
||||
conditions.chmConditions.isHFastUnderSlow &&
|
||||
conditions.chmConditions.isClosedUnderHFast &&
|
||||
//
|
||||
// XCHHK ...
|
||||
//
|
||||
conditions.chhkConditions.hasBearishPower &&
|
||||
conditions.chhkConditions.isCBearish &&
|
||||
conditions.chhkConditions.isCSwitchedToBearish &&
|
||||
conditions.chhkConditions.isCloseUnderCLow &&
|
||||
conditions.chhkConditions.isSBearish &&
|
||||
conditions.chhkConditions.isSSwitchedToBearish &&
|
||||
conditions.chhkConditions.isCloseUnderSLow &&
|
||||
conditions.chhkConditions.isMBearish &&
|
||||
conditions.chhkConditions.isCloseUnderMLow &&
|
||||
conditions.chhkConditions.isLBearish &&
|
||||
conditions.chhkConditions.isCloseUnderLLow &&
|
||||
conditions.chhkConditions.isHBearish &&
|
||||
conditions.chhkConditions.isCloseUnderHLow &&
|
||||
//
|
||||
// XCHTD ...
|
||||
//
|
||||
conditions.chtdConditions.hasBearishPower &&
|
||||
conditions.chtdConditions.isCBearish &&
|
||||
conditions.chtdConditions.isSBearish &&
|
||||
conditions.chtdConditions.isSSwitchedToBearish &&
|
||||
conditions.chtdConditions.isMBearish &&
|
||||
conditions.chtdConditions.isLBearish &&
|
||||
conditions.chtdConditions.isHBearish &&
|
||||
//
|
||||
// XCHCHE ...
|
||||
//
|
||||
conditions.chcheConditions.hasBearishPower &&
|
||||
conditions.chcheConditions.isBearishPowerUp &&
|
||||
conditions.chcheConditions.isCBearish &&
|
||||
conditions.chcheConditions.isCStrongBearish &&
|
||||
conditions.chcheConditions.isCSwitchedToBearish &&
|
||||
conditions.chcheConditions.isCStrongSwitchedToBearish &&
|
||||
conditions.chcheConditions.isSBearish &&
|
||||
conditions.chcheConditions.isSStrongBearish &&
|
||||
conditions.chcheConditions.isMBearish &&
|
||||
conditions.chcheConditions.isMStrongBearish &&
|
||||
conditions.chcheConditions.isMSwitchedToBearish &&
|
||||
conditions.chcheConditions.isMStrongSwitchedToBearish &&
|
||||
conditions.chcheConditions.isLBearish &&
|
||||
conditions.chcheConditions.isLStrongBearish &&
|
||||
conditions.chcheConditions.isLSwitchedToBearish &&
|
||||
conditions.chcheConditions.isLStrongSwitchedToBearish &&
|
||||
conditions.chcheConditions.isHBearish &&
|
||||
conditions.chcheConditions.isHStrongBearish &&
|
||||
conditions.chcheConditions.isHSwitchedToBearish &&
|
||||
conditions.chcheConditions.isHStrongSwitchedToBearish &&
|
||||
//
|
||||
// XCHSTR ...
|
||||
//
|
||||
conditions.chstrConditions.hasBearishPower &&
|
||||
conditions.chstrConditions.isCBearish &&
|
||||
conditions.chstrConditions.isSBearish &&
|
||||
conditions.chstrConditions.isMBearish &&
|
||||
conditions.chstrConditions.isLBearish &&
|
||||
conditions.chstrConditions.isLSwitchedToBearish &&
|
||||
conditions.chstrConditions.isHBearish &&
|
||||
conditions.chstrConditions.isHSwitchedToBearish &&
|
||||
//
|
||||
// XCHVLM ...
|
||||
//
|
||||
conditions.chvlmConditions.hasBearishPower &&
|
||||
conditions.chvlmConditions.isCBearish &&
|
||||
conditions.chvlmConditions.isSBullish &&
|
||||
conditions.chvlmConditions.isMBearish &&
|
||||
conditions.chvlmConditions.isLBearish &&
|
||||
conditions.chvlmConditions.isHBearish &&
|
||||
//
|
||||
// XCHVWAP ...
|
||||
//
|
||||
conditions.chvwapConditions.isLBearish &&
|
||||
conditions.chvwapConditions.isLSwitchedToBearish
|
||||
//
|
||||
)
|
||||
//
|
||||
||
|
||||
//
|
||||
(
|
||||
// Symbol: EURCADb
|
||||
// ---------------
|
||||
// Scores:
|
||||
// ---------------
|
||||
// Bullish: 3.0
|
||||
// Bearish: 66.0
|
||||
// ---------------
|
||||
// Time: 2024.06.18 15:20:00
|
||||
// ---------------
|
||||
//
|
||||
// XPV ...
|
||||
//
|
||||
conditions.pvConditions.isNewVale &&
|
||||
conditions.pvConditions.isNewValeUnderLast &&
|
||||
conditions.pvConditions.isFiboDecreased &&
|
||||
conditions.pvConditions.isCloseUnderFib1 &&
|
||||
conditions.pvConditions.isCloseUnderFib2 &&
|
||||
conditions.pvConditions.isCloseUnderFib3 &&
|
||||
conditions.pvConditions.isCloseUnderFib4 &&
|
||||
conditions.pvConditions.isCloseUnderFib5 &&
|
||||
conditions.pvConditions.isSCBearish &&
|
||||
conditions.pvConditions.isSCHHBearish &&
|
||||
conditions.pvConditions.isSCLLBearish &&
|
||||
conditions.pvConditions.isSCSwitchedToBearish &&
|
||||
conditions.pvConditions.isSCHHSwitchedToBearish &&
|
||||
conditions.pvConditions.isMCLLBearish &&
|
||||
conditions.pvConditions.isLCLLBearish &&
|
||||
conditions.pvConditions.isHCLLBearish &&
|
||||
//
|
||||
// XCHM ...
|
||||
//
|
||||
conditions.chmConditions.hasBearishPower &&
|
||||
conditions.chmConditions.isBullishPowerDecreasing &&
|
||||
conditions.chmConditions.isFastUnderSlow &&
|
||||
conditions.chmConditions.isClosedUnderFast &&
|
||||
conditions.chmConditions.isCFastUnderSlow &&
|
||||
conditions.chmConditions.isClosedUnderCFast &&
|
||||
conditions.chmConditions.isSFastUnderSlow &&
|
||||
conditions.chmConditions.isClosedUnderSFast &&
|
||||
conditions.chmConditions.isMFastOverSlow &&
|
||||
conditions.chmConditions.isClosedUnderMFast &&
|
||||
conditions.chmConditions.isLFastOverSlow &&
|
||||
conditions.chmConditions.isClosedUnderLFast &&
|
||||
conditions.chmConditions.isHFastUnderSlow &&
|
||||
conditions.chmConditions.isClosedUnderHFast &&
|
||||
//
|
||||
// XCHHK ...
|
||||
//
|
||||
conditions.chhkConditions.hasBearishPower &&
|
||||
conditions.chhkConditions.isCBearish &&
|
||||
conditions.chhkConditions.isCloseUnderCLow &&
|
||||
conditions.chhkConditions.isSBearish &&
|
||||
conditions.chhkConditions.isCloseUnderSLow &&
|
||||
conditions.chhkConditions.isMBearish &&
|
||||
conditions.chhkConditions.isCloseUnderMLow &&
|
||||
conditions.chhkConditions.isLBearish &&
|
||||
conditions.chhkConditions.isLSwitchedToBearish &&
|
||||
conditions.chhkConditions.isCloseUnderLLow &&
|
||||
conditions.chhkConditions.isHBearish &&
|
||||
conditions.chhkConditions.isCloseUnderHLow &&
|
||||
//
|
||||
// XCHTD ...
|
||||
//
|
||||
conditions.chtdConditions.hasBearishPower &&
|
||||
conditions.chtdConditions.isBearishPowerIncreasing &&
|
||||
conditions.chtdConditions.isCBearish &&
|
||||
conditions.chtdConditions.isSBearish &&
|
||||
conditions.chtdConditions.isMBearish &&
|
||||
conditions.chtdConditions.isLBullish &&
|
||||
conditions.chtdConditions.isHBearish &&
|
||||
//
|
||||
// XCHCHE ...
|
||||
//
|
||||
conditions.chcheConditions.hasBearishPower &&
|
||||
conditions.chcheConditions.isCBearish &&
|
||||
conditions.chcheConditions.isCStrongBearish &&
|
||||
conditions.chcheConditions.isSBearish &&
|
||||
conditions.chcheConditions.isSStrongBearish &&
|
||||
conditions.chcheConditions.isMBearish &&
|
||||
conditions.chcheConditions.isMStrongBearish &&
|
||||
conditions.chcheConditions.isLBearish &&
|
||||
conditions.chcheConditions.isLStrongBearish &&
|
||||
conditions.chcheConditions.isHBearish &&
|
||||
conditions.chcheConditions.isHStrongBearish &&
|
||||
//
|
||||
// XCHSTR ...
|
||||
//
|
||||
conditions.chstrConditions.hasBearishPower &&
|
||||
conditions.chstrConditions.isCBearish &&
|
||||
conditions.chstrConditions.isSBearish &&
|
||||
conditions.chstrConditions.isMBearish &&
|
||||
conditions.chstrConditions.isMSwitchedToBearish &&
|
||||
conditions.chstrConditions.isLBearish &&
|
||||
conditions.chstrConditions.isHBearish &&
|
||||
//
|
||||
// XCHVLM ...
|
||||
//
|
||||
conditions.chvlmConditions.hasBearishPower &&
|
||||
conditions.chvlmConditions.isCBearish &&
|
||||
conditions.chvlmConditions.isSBearish &&
|
||||
conditions.chvlmConditions.isMBearish &&
|
||||
conditions.chvlmConditions.isLBearish &&
|
||||
conditions.chvlmConditions.isHBearish &&
|
||||
//
|
||||
// XCHVWAP ...
|
||||
//
|
||||
conditions.chvwapConditions.hasBearishPower &&
|
||||
conditions.chvwapConditions.isMBearish &&
|
||||
conditions.chvwapConditions.isLBearish &&
|
||||
conditions.chvwapConditions.isHBearish
|
||||
//
|
||||
)
|
||||
//
|
||||
||
|
||||
//
|
||||
(
|
||||
// Symbol: EURCADb
|
||||
// ---------------
|
||||
// Scores:
|
||||
// ---------------
|
||||
// Bullish: 4.0
|
||||
// Bearish: 63.0
|
||||
// ---------------
|
||||
// Time: 2024.08.28 20:30:02
|
||||
// ---------------
|
||||
//
|
||||
// XPV ...
|
||||
//
|
||||
conditions.pvConditions.isCloseUnderFib1 &&
|
||||
conditions.pvConditions.isCloseUnderFib2 &&
|
||||
conditions.pvConditions.isCloseUnderFib3 &&
|
||||
conditions.pvConditions.isCloseUnderFib4 &&
|
||||
conditions.pvConditions.isCloseUnderFib5 &&
|
||||
conditions.pvConditions.isSCLLBearish &&
|
||||
conditions.pvConditions.isMCLLBearish &&
|
||||
conditions.pvConditions.isLCLLBearish &&
|
||||
//
|
||||
// XCHM ...
|
||||
//
|
||||
conditions.chmConditions.hasBearishPower &&
|
||||
conditions.chmConditions.isBearishPowerIncreasing &&
|
||||
conditions.chmConditions.isFastUnderSlow &&
|
||||
conditions.chmConditions.isClosedUnderFast &&
|
||||
conditions.chmConditions.isCFastUnderSlow &&
|
||||
conditions.chmConditions.isClosedUnderCFast &&
|
||||
conditions.chmConditions.isSFastUnderSlow &&
|
||||
conditions.chmConditions.isClosedUnderSFast &&
|
||||
conditions.chmConditions.isMFastUnderSlow &&
|
||||
conditions.chmConditions.isClosedUnderMFast &&
|
||||
conditions.chmConditions.isLFastUnderSlow &&
|
||||
conditions.chmConditions.isClosedUnderLFast &&
|
||||
conditions.chmConditions.isHFastUnderSlow &&
|
||||
conditions.chmConditions.isClosedUnderHFast &&
|
||||
//
|
||||
// XCHHK ...
|
||||
//
|
||||
conditions.chhkConditions.hasBearishPower &&
|
||||
conditions.chhkConditions.isCBearish &&
|
||||
conditions.chhkConditions.isCloseUnderCLow &&
|
||||
conditions.chhkConditions.isSBearish &&
|
||||
conditions.chhkConditions.isCloseUnderSLow &&
|
||||
conditions.chhkConditions.isMBearish &&
|
||||
conditions.chhkConditions.isCloseUnderMLow &&
|
||||
conditions.chhkConditions.isLBearish &&
|
||||
conditions.chhkConditions.isCloseUnderLLow &&
|
||||
conditions.chhkConditions.isHBearish &&
|
||||
conditions.chhkConditions.isCloseUnderHLow &&
|
||||
//
|
||||
// XCHTD ...
|
||||
//
|
||||
conditions.chtdConditions.hasBearishPower &&
|
||||
conditions.chtdConditions.isCBearish &&
|
||||
conditions.chtdConditions.isSBearish &&
|
||||
conditions.chtdConditions.isSSwitchedToBearish &&
|
||||
conditions.chtdConditions.isMBearish &&
|
||||
conditions.chtdConditions.isLBearish &&
|
||||
conditions.chtdConditions.isHBearish &&
|
||||
//
|
||||
// XCHCHE ...
|
||||
//
|
||||
conditions.chcheConditions.hasBearishPower &&
|
||||
conditions.chcheConditions.isBearishPowerDecreasing &&
|
||||
conditions.chcheConditions.isCBearish &&
|
||||
conditions.chcheConditions.isCStrongBearish &&
|
||||
conditions.chcheConditions.isSBearish &&
|
||||
conditions.chcheConditions.isSStrongBearish &&
|
||||
conditions.chcheConditions.isMBearish &&
|
||||
conditions.chcheConditions.isMStrongBearish &&
|
||||
conditions.chcheConditions.isLBearish &&
|
||||
conditions.chcheConditions.isLStrongBearish &&
|
||||
conditions.chcheConditions.isHBearish &&
|
||||
conditions.chcheConditions.isHStrongBearish &&
|
||||
//
|
||||
// XCHSTR ...
|
||||
//
|
||||
conditions.chstrConditions.hasBearishPower &&
|
||||
conditions.chstrConditions.isBearishPowerUp &&
|
||||
conditions.chstrConditions.isCBearish &&
|
||||
conditions.chstrConditions.isSBearish &&
|
||||
conditions.chstrConditions.isMBullish &&
|
||||
conditions.chstrConditions.isLBullish &&
|
||||
conditions.chstrConditions.isHBearish &&
|
||||
conditions.chstrConditions.isHSwitchedToBearish &&
|
||||
//
|
||||
// XCHVLM ...
|
||||
//
|
||||
conditions.chvlmConditions.hasBearishPower &&
|
||||
conditions.chvlmConditions.isCBearish &&
|
||||
conditions.chvlmConditions.isSBearish &&
|
||||
conditions.chvlmConditions.isSSwitchedToBearish &&
|
||||
conditions.chvlmConditions.isMBearish &&
|
||||
conditions.chvlmConditions.isLBearish &&
|
||||
conditions.chvlmConditions.isHBearish &&
|
||||
//
|
||||
// XCHVWAP ...
|
||||
//
|
||||
conditions.chvwapConditions.hasBearishPower &&
|
||||
conditions.chvwapConditions.isBearishPowerDecreasing &&
|
||||
conditions.chvwapConditions.isMBearish &&
|
||||
conditions.chvwapConditions.isLBearish &&
|
||||
conditions.chvwapConditions.isHBearish
|
||||
//
|
||||
)
|
||||
//
|
||||
;
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
};
|
||||
|
||||
//
|
||||
+3090
File diff suppressed because it is too large
Load Diff
+1443
File diff suppressed because it is too large
Load Diff
+6806
File diff suppressed because it is too large
Load Diff
+5107
File diff suppressed because it is too large
Load Diff
+7570
File diff suppressed because it is too large
Load Diff
+7512
File diff suppressed because it is too large
Load Diff
+141
@@ -0,0 +1,141 @@
|
||||
///////////////////////////////////////////////////////
|
||||
//
|
||||
// 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"
|
||||
|
||||
//
|
||||
#include "./Olds/x-saherelm.xch.amarkets.eurcad.olds.long.parser.mq5"
|
||||
#include "./2018/x-saherelm.xch.amarkets.eurcad.2018.long.parser.mq5"
|
||||
#include "./2019/x-saherelm.xch.amarkets.eurcad.2019.long.parser.mq5"
|
||||
#include "./2020/x-saherelm.xch.amarkets.eurcad.2020.long.parser.mq5"
|
||||
#include "./2021/x-saherelm.xch.amarkets.eurcad.2021.long.parser.mq5"
|
||||
#include "./2022/x-saherelm.xch.amarkets.eurcad.2022.long.parser.mq5"
|
||||
#include "./2023/x-saherelm.xch.amarkets.eurcad.2023.long.parser.mq5"
|
||||
#include "./2024/x-saherelm.xch.amarkets.eurcad.2024.long.parser.mq5"
|
||||
|
||||
//
|
||||
// Conditions Parser ...
|
||||
struct XCHStartegyAMarketsEURCADLongConditionsParser
|
||||
{
|
||||
//
|
||||
string _version;
|
||||
|
||||
//
|
||||
XCHStartegyAMarketsEURCADOldsLongConditionsParser _oldsParser;
|
||||
XCHStartegyAMarketsEURCAD2018LongConditionsParser _2018Parser;
|
||||
XCHStartegyAMarketsEURCAD2019LongConditionsParser _2019Parser;
|
||||
XCHStartegyAMarketsEURCAD2020LongConditionsParser _2020Parser;
|
||||
XCHStartegyAMarketsEURCAD2021LongConditionsParser _2021Parser;
|
||||
XCHStartegyAMarketsEURCAD2022LongConditionsParser _2022Parser;
|
||||
XCHStartegyAMarketsEURCAD2023LongConditionsParser _2023Parser;
|
||||
XCHStartegyAMarketsEURCAD2024LongConditionsParser _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;
|
||||
}
|
||||
};
|
||||
|
||||
//
|
||||
+141
@@ -0,0 +1,141 @@
|
||||
///////////////////////////////////////////////////////
|
||||
//
|
||||
// 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"
|
||||
|
||||
//
|
||||
#include "./Olds/x-saherelm.xch.amarkets.eurcad.olds.short.parser.mq5"
|
||||
#include "./2018/x-saherelm.xch.amarkets.eurcad.2018.short.parser.mq5"
|
||||
#include "./2019/x-saherelm.xch.amarkets.eurcad.2019.short.parser.mq5"
|
||||
#include "./2020/x-saherelm.xch.amarkets.eurcad.2020.short.parser.mq5"
|
||||
#include "./2021/x-saherelm.xch.amarkets.eurcad.2021.short.parser.mq5"
|
||||
#include "./2022/x-saherelm.xch.amarkets.eurcad.2022.short.parser.mq5"
|
||||
#include "./2023/x-saherelm.xch.amarkets.eurcad.2023.short.parser.mq5"
|
||||
#include "./2024/x-saherelm.xch.amarkets.eurcad.2024.short.parser.mq5"
|
||||
|
||||
//
|
||||
// Conditions Parser ...
|
||||
struct XCHStartegyAMarketsEURCADShortConditionsParser
|
||||
{
|
||||
//
|
||||
string _version;
|
||||
|
||||
//
|
||||
XCHStartegyAMarketsEURCADOldsShortConditionsParser _oldsParser;
|
||||
XCHStartegyAMarketsEURCAD2018ShortConditionsParser _2018Parser;
|
||||
XCHStartegyAMarketsEURCAD2019ShortConditionsParser _2019Parser;
|
||||
XCHStartegyAMarketsEURCAD2020ShortConditionsParser _2020Parser;
|
||||
XCHStartegyAMarketsEURCAD2021ShortConditionsParser _2021Parser;
|
||||
XCHStartegyAMarketsEURCAD2022ShortConditionsParser _2022Parser;
|
||||
XCHStartegyAMarketsEURCAD2023ShortConditionsParser _2023Parser;
|
||||
XCHStartegyAMarketsEURCAD2024ShortConditionsParser _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;
|
||||
}
|
||||
};
|
||||
|
||||
//
|
||||
+141
@@ -0,0 +1,141 @@
|
||||
///////////////////////////////////////////////////////
|
||||
//
|
||||
// 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.long.parser.mq5"
|
||||
#include "./2018/x-saherelm.xch.che.amarkets.eurcad.2018.long.parser.mq5"
|
||||
#include "./2019/x-saherelm.xch.che.amarkets.eurcad.2019.long.parser.mq5"
|
||||
#include "./2020/x-saherelm.xch.che.amarkets.eurcad.2020.long.parser.mq5"
|
||||
#include "./2021/x-saherelm.xch.che.amarkets.eurcad.2021.long.parser.mq5"
|
||||
#include "./2022/x-saherelm.xch.che.amarkets.eurcad.2022.long.parser.mq5"
|
||||
#include "./2023/x-saherelm.xch.che.amarkets.eurcad.2023.long.parser.mq5"
|
||||
#include "./2024/x-saherelm.xch.che.amarkets.eurcad.2024.long.parser.mq5"
|
||||
|
||||
//
|
||||
// Conditions Parser ...
|
||||
struct XCHCHEStartegyAMarketsEURCADLongConditionsParser
|
||||
{
|
||||
//
|
||||
string _version;
|
||||
|
||||
//
|
||||
XCHCHEStartegyAMarketsEURCADOldsLongConditionsParser _oldsParser;
|
||||
XCHCHEStartegyAMarketsEURCAD2018LongConditionsParser _2018Parser;
|
||||
XCHCHEStartegyAMarketsEURCAD2019LongConditionsParser _2019Parser;
|
||||
XCHCHEStartegyAMarketsEURCAD2020LongConditionsParser _2020Parser;
|
||||
XCHCHEStartegyAMarketsEURCAD2021LongConditionsParser _2021Parser;
|
||||
XCHCHEStartegyAMarketsEURCAD2022LongConditionsParser _2022Parser;
|
||||
XCHCHEStartegyAMarketsEURCAD2023LongConditionsParser _2023Parser;
|
||||
XCHCHEStartegyAMarketsEURCAD2024LongConditionsParser _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;
|
||||
}
|
||||
};
|
||||
|
||||
//
|
||||
+141
@@ -0,0 +1,141 @@
|
||||
///////////////////////////////////////////////////////
|
||||
//
|
||||
// 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;
|
||||
}
|
||||
};
|
||||
|
||||
//
|
||||
Reference in New Issue
Block a user