This commit is contained in:
2025-02-24 00:24:13 +03:30
parent 8e34ef9c94
commit 0f9ab4b61a
7 changed files with 1548 additions and 282 deletions
File diff suppressed because it is too large Load Diff
@@ -26,6 +26,14 @@
#include "../Libraries/x-121.smc.guard.lib.mq5"
#include "../Libraries/x-121.smc.lib.mq5"
//
enum ENUM_X121SMC_XWZ_PROVIDERS
{
X121SMC_XWZ_PROVIDER_NONE,
X121SMC_XWZ_PROVIDER_ACTIVATED_ZONE,
X121SMC_XWZ_PROVIDER_PRICE_INSIDE_ZONE,
};
//
enum ENUM_X121SMC_XWZ_PRIORITY
{
@@ -1143,8 +1151,13 @@ struct X121SMCStrategyXWZSignalConditions
double pivot;
double point;
//
XOBFVG targetZone;
XOBFVG signalZone;
//
ENUM_X121SMC_XWZ_PRIORITY priority;
ENUM_X121SMC_XWZ_PROVIDERS provider;
//
// Constructor ...
@@ -1271,6 +1284,13 @@ struct X121SMCStrategyXWZSignalConditions
target = 0;
reward = 0;
amountPercent = 0;
//
targetZone.Clean();
signalZone.Clean();
//
provider = X121SMC_XWZ_PROVIDER_NONE;
}
//
@@ -887,9 +887,9 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
//
// XVWAP ...
x121Inputs.xvwapInputs.showVWapFast = showAll || false;
x121Inputs.xvwapInputs.showVWapMedium = showAll || false;
x121Inputs.xvwapInputs.showVWapSlow = showAll || false;
x121Inputs.xvwapInputs.showVWapFast = showAll || true;
x121Inputs.xvwapInputs.showVWapMedium = showAll || true;
x121Inputs.xvwapInputs.showVWapSlow = showAll || true;
//
// Initialize Cycle Helpers ...