This commit is contained in:
2025-03-14 17:44:33 +03:30
parent fe7df78f5d
commit a05b8f464d
25 changed files with 32729 additions and 17459 deletions
+111
View File
@@ -2981,6 +2981,117 @@ if (useSenario1)
////////////////////////////////////////////////////////////////////////
//
// FRACTALS ...
int copiedFractalsUppers = CopyBuffer(fractalHandler, 0, UPPER_LINE, limit, fractalsUpperBuffer);
int copiedFractalsLowers = CopyBuffer(fractalHandler, 1, LOWER_LINE, limit, fractalsLowerBuffer);
//
// FRACTALS ...
copiedFractalsUppers > 0 &&
copiedFractalsLowers > 0
//
// FRACTALS ...
int fractalsCalculatedBars = BarsCalculated(fractalHandler);
//
// FRACTALS ...
fractalsCalculatedBars >= maxLength
//
// SUPPORT and RESISTANCE ...
//
double iHighValue = iHigh(
_Symbol,
_Period,
barIndex //
);
double iLastHighValue = iHigh(
_Symbol,
_Period,
lastIndex //
);
//
double iLowValue = iLow(
_Symbol,
_Period,
barIndex //
);
double iLastLowValue = iLow(
_Symbol,
_Period,
lastIndex //
);
//
// Resistance ...
// double lastResistance =
// lastIndex < barsCount
// ? resistancesBuffer[lastIndex]
// : iLastHighValue;
// double iFractalsUpper = fractalsUpperBuffer[barIndex];
// double iResistance =
// NotEmptyZero(iFractalsUpper)
// ? iHighValue
// : lastResistance;
// resistancesBuffer[barIndex] = iResistance;
//
// Support ...
// double lastSupport =
// lastIndex < barsCount
// ? supportsBuffer[lastIndex]
// : iLastLowValue;
// double iFractalsLower = fractalsLowerBuffer[barIndex];
// double iSupport =
// NotEmptyZero(iFractalsLower)
// ? iLowValue
// : lastSupport;
// supportsBuffer[barIndex] = iSupport;
//
double iFractalsUpper = fractalsUpperBuffer[barIndex];
double iResistance = iFractalsUpper;
resistancesBuffer[barIndex] = iResistance;
//
double iFractalsLower = fractalsLowerBuffer[barIndex];
double iSupport = iFractalsLower;
supportsBuffer[barIndex] = iSupport;
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////