last ...
This commit is contained in:
@@ -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;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user