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
+22 -16
View File
@@ -38,10 +38,6 @@ input ENUM_SERIESMODE llMode = MODE_LOW; // Lowest Low Calculation Method
// END Inputs ...
//
//
// Includes Logging Library ...
#include "../Libraries/x-saherelm.log.lib.mq5"
//
// Includes Common Library ...
#include "../Libraries/x-saherelm.common.lib.mq5"
@@ -121,9 +117,6 @@ int OnInit()
return INIT_PARAMETERS_INCORRECT;
}
//
logTag = ShortName;
//
// Define Index Buffers ...
DefineBuffers();
@@ -310,10 +303,17 @@ void CalculateBuffers(
_Period,
hhMode,
length,
bar_index);
double hhValue = GetAppliedPrice(
hhIndex,
hhMode);
bar_index
//
);
XOHCL hhBar;
hhBar.Init(
_Symbol,
_Period,
hhIndex
//
);
double hhValue = hhBar.GetPrice(hhMode);
//
hhBuffer[bar_index] = hhValue;
@@ -325,16 +325,22 @@ void CalculateBuffers(
_Period,
llMode,
length,
bar_index);
double llValue = GetAppliedPrice(
llIndex,
llMode);
bar_index
//
);
XOHCL llBar;
llBar.Init(
_Symbol,
_Period,
llIndex
//
);
double llValue = llBar.GetPrice(llMode);
//
llBuffer[bar_index] = llValue;
//
XOHCL c = GetCandle(bar_index);
double lhDiff = hhValue - llValue;
double signalValue = (lhDiff / 2);