last works ...
adding some tools to ch helper classes ...
This commit is contained in:
@@ -61,12 +61,15 @@ input ENUM_TIMEFRAMES hcPeriod = NULL; // Time Period
|
||||
// Presentation ...
|
||||
input group "Presentation";
|
||||
|
||||
//
|
||||
input bool ignoreShadows = false; // Ignore Bar Shadows
|
||||
|
||||
//
|
||||
input bool showCurrent = true; // Show Current Cycle
|
||||
input bool showShort = true; // Show Short Cycle
|
||||
input bool showMedium = true; // Show Medium Cycle
|
||||
input bool showLong = true; // Show Long Cycle
|
||||
input bool showHind = true; // Show Hind Cycle
|
||||
input bool showShort = true; // Show Short Cycle
|
||||
input bool showMedium = true; // Show Medium Cycle
|
||||
input bool showLong = true; // Show Long Cycle
|
||||
input bool showHind = true; // Show Hind Cycle
|
||||
|
||||
//
|
||||
// Buffers ...
|
||||
@@ -968,28 +971,6 @@ void CalculateCycle(
|
||||
open //
|
||||
);
|
||||
|
||||
//
|
||||
// High ...
|
||||
int calculatedSMHighs = ExponentialMAOnBuffer(
|
||||
ratesTotal,
|
||||
prevCalculated,
|
||||
0,
|
||||
length,
|
||||
highBuffer,
|
||||
high //
|
||||
);
|
||||
|
||||
//
|
||||
// Low ...
|
||||
int calculatedSMLows = ExponentialMAOnBuffer(
|
||||
ratesTotal,
|
||||
prevCalculated,
|
||||
0,
|
||||
length,
|
||||
lowBuffer,
|
||||
low //
|
||||
);
|
||||
|
||||
//
|
||||
// Close ...
|
||||
int calculatedSMCloses = ExponentialMAOnBuffer(
|
||||
@@ -1001,6 +982,58 @@ void CalculateCycle(
|
||||
close //
|
||||
);
|
||||
|
||||
//
|
||||
int calculatedSMLows = 0;
|
||||
int calculatedSMHighs = 0;
|
||||
if (!ignoreShadows)
|
||||
{
|
||||
//
|
||||
// High ...
|
||||
calculatedSMHighs = ExponentialMAOnBuffer(
|
||||
ratesTotal,
|
||||
prevCalculated,
|
||||
0,
|
||||
length,
|
||||
highBuffer,
|
||||
high //
|
||||
);
|
||||
|
||||
//
|
||||
// Low ...
|
||||
calculatedSMLows = ExponentialMAOnBuffer(
|
||||
ratesTotal,
|
||||
prevCalculated,
|
||||
0,
|
||||
length,
|
||||
lowBuffer,
|
||||
low //
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
//
|
||||
// High ...
|
||||
calculatedSMHighs = ExponentialMAOnBuffer(
|
||||
ratesTotal,
|
||||
prevCalculated,
|
||||
0,
|
||||
length,
|
||||
openBuffer,
|
||||
high //
|
||||
);
|
||||
|
||||
//
|
||||
// Low ...
|
||||
calculatedSMLows = ExponentialMAOnBuffer(
|
||||
ratesTotal,
|
||||
prevCalculated,
|
||||
0,
|
||||
length,
|
||||
closeBuffer,
|
||||
low //
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
// Find Calculated Items for Colors Calculations ...
|
||||
int mNumberOfItems = MathMin(calculatedSMOpens, calculatedSMHighs);
|
||||
|
||||
Reference in New Issue
Block a user