last works ...

This commit is contained in:
2025-09-17 15:23:00 +03:30
parent c1da10ba3a
commit 94bc679290
6 changed files with 4026 additions and 2 deletions
+25 -2
View File
@@ -92,6 +92,11 @@ input ENUM_MA_METHOD maMethod = MODE_EMA; // MA Method
input ENUM_APPLIED_PRICE maAppliedTo = PRICE_CLOSE; // MA Applied To
input int maFastLength = 7; // Fast MA Length
input int maSlowLength = 20; // Slow MA Length
input int zigzagDepth = 12; // ZigZag Depth
input int zigzagDeviation = 5; // ZigZag Deviation
input int zigzagBackStep = 3; // ZigZag Back Step
input ENUM_X_PRICE zigzagUppersMode = X_PRICE_HIGH; // ZigZag High Detect Mode
input ENUM_X_PRICE zigzagLowersMode = X_PRICE_LOW; // ZigZag Low Detect Mode
//
input group "Bar Timer";
@@ -108,6 +113,7 @@ input bool showSAR = true; // Show Sar
input bool showMAFast = true; // Show MA Fast
input bool showMASlow = true; // Show MA Slow
input bool showBarTime = true; // Show Bar Time
input bool showZigZag = true; // Show ZigZag
input bool showFiboZone = false; // Show Fibo Zone
//
@@ -231,7 +237,7 @@ int OnInit()
eaHandler = iCustom(
_Symbol,
_Period,
"x-saherelm.xom1",
"x-saherelm.xfima",
"", // Calculation ...
scMethod,
scPeriod,
@@ -251,11 +257,17 @@ int OnInit()
maAppliedTo,
maFastLength,
maSlowLength,
zigzagDepth,
zigzagDeviation,
zigzagBackStep,
zigzagUppersMode,
zigzagLowersMode,
"", // Presentation ...
showPV,
showSAR,
showMAFast,
showMASlow,
showZigZag,
showFiboZone,
startCalculationForLastBars,
sarArrowCode,
@@ -438,7 +450,18 @@ bool ValidateInputs()
(IsValid(scMethod, scPeriod) &&
IsValid(mcMethod, mcPeriod) &&
IsValid(lcMethod, lcPeriod) &&
IsValid(hcMethod, hcPeriod))
IsValid(hcMethod, hcPeriod)) &&
//
// ZIGZAG ...
zigzagDepth > 0 &&
zigzagDeviation > 0 &&
zigzagBackStep > 0 &&
//
// Validate Upper Mode Detection ...
IsXValid(zigzagUppersMode) &&
//
// Validate Lower Mode Detection ...
IsXValid(zigzagLowersMode)
//
);
if (!isCommonValid)