prepare all indicators for working by new structures of libraries and models and compile them successfully ...

This commit is contained in:
2024-05-18 02:26:29 +03:30
parent 8f08fa00cc
commit b83bc47f8f
15 changed files with 2833 additions and 3418 deletions
+85 -27
View File
@@ -33,9 +33,6 @@ enum ENUM_X_XCHLH_HOT_STATES
X_XCHLH_HOT_LL = -1,
};
//
// Including Models Library ...
#include "../Libraries/x-saherelm.models.lib.mq5"
//
// END Constants ...
//
@@ -190,7 +187,6 @@ int OnInit()
}
//
logTag = ShortName;
drawPrefix = ShortName;
//
@@ -229,10 +225,6 @@ void OnDeinit(const int reason)
// ReDraw Chart ...
ChartRedraw();
//
// De Init Draw Library ...
OnDeinitDrawLibrary();
//
Comment("");
}
@@ -529,15 +521,35 @@ void LCCalculateBuffers(
ENUM_SERIESMODE hhMode = lcHHMode;
ENUM_SERIESMODE llMode = lcLLMode;
double threshold = PipsToPrice(lcThresholdInPips);
double hh = GetHighestHigh(
//
int hhIdx = iHighest(
_Symbol,
_Period,
hhMode,
length,
bar_index,
hhMode);
bar_index
//
);
double hh = iHigh(
_Symbol,
_Period,
hhIdx);
double hhValue = hh + threshold;
double ll = GetLowestLow(
//
int llIdx = iLowest(
_Symbol,
_Period,
llMode,
length,
bar_index,
llMode);
bar_index
//
);
double ll = iLow(
_Symbol,
_Period,
llIdx);
double llValue = ll - threshold;
//
@@ -557,15 +569,35 @@ void MCCalculateBuffers(
ENUM_SERIESMODE hhMode = mcHHMode;
ENUM_SERIESMODE llMode = mcLLMode;
double threshold = PipsToPrice(mcThresholdInPips);
double hh = GetHighestHigh(
//
int hhIdx = iHighest(
_Symbol,
_Period,
hhMode,
length,
bar_index,
hhMode);
bar_index
//
);
double hh = iHigh(
_Symbol,
_Period,
hhIdx);
double hhValue = hh + threshold;
double ll = GetLowestLow(
//
int llIdx = iLowest(
_Symbol,
_Period,
llMode,
length,
bar_index,
llMode);
bar_index
//
);
double ll = iLow(
_Symbol,
_Period,
llIdx);
double llValue = ll - threshold;
//
@@ -585,15 +617,35 @@ void SCCalculateBuffers(
ENUM_SERIESMODE hhMode = scHHMode;
ENUM_SERIESMODE llMode = scLLMode;
double threshold = PipsToPrice(scThresholdInPips);
double hh = GetHighestHigh(
//
int hhIdx = iHighest(
_Symbol,
_Period,
hhMode,
length,
bar_index,
hhMode);
bar_index
//
);
double hh = iHigh(
_Symbol,
_Period,
hhIdx);
double hhValue = hh + threshold;
double ll = GetLowestLow(
//
int llIdx = iLowest(
_Symbol,
_Period,
llMode,
length,
bar_index,
llMode);
bar_index
//
);
double ll = iLow(
_Symbol,
_Period,
llIdx);
double llValue = ll - threshold;
//
@@ -710,7 +762,13 @@ void DrawBuffers(
//
// Retrieve Candle Model ...
XOHCL candle = GetCandle(bar_index);
XOHCL candle;
candle.Init(
_Symbol,
_Period,
bar_index
//
);
datetime time = iTime(_Symbol, _Period, bar_index);
//