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
+13 -40
View File
@@ -110,10 +110,6 @@ input bool scDrawCrosses = false; // Draw Cross Lines
// END Inputs ...
//
//
// Includes Logging Library ...
#include "../Libraries/x-saherelm.log.lib.mq5"
//
// Includes Common Library ...
#include "../Libraries/x-saherelm.common.lib.mq5"
@@ -205,7 +201,6 @@ int OnInit()
}
//
logTag = ShortName;
drawPrefix = ShortName;
//
@@ -251,10 +246,6 @@ void OnDeinit(const int reason)
// ReDraw Chart ...
ChartRedraw();
//
// De Init Draw Library ...
OnDeinitDrawLibrary();
//
Comment("");
}
@@ -640,10 +631,6 @@ bool LCInitHandlers()
lcAppliedTo);
if (lcFastHandler == INVALID_HANDLE)
{
//
LogMessage("LC Fast Indicator initialization failed: " + (string)GetLastError());
//
return false;
}
@@ -658,10 +645,6 @@ bool LCInitHandlers()
lcAppliedTo);
if (lcSlowHandler == INVALID_HANDLE)
{
//
LogMessage("LC Slow Indicator initialization failed: " + (string)GetLastError());
//
return false;
}
@@ -687,10 +670,6 @@ bool MCInitHandlers()
mcAppliedTo);
if (mcFastHandler == INVALID_HANDLE)
{
//
LogMessage("MC Fast Indicator initialization failed: " + (string)GetLastError());
//
return false;
}
@@ -705,10 +684,6 @@ bool MCInitHandlers()
mcAppliedTo);
if (mcSlowHandler == INVALID_HANDLE)
{
//
LogMessage("MC Slow Indicator initialization failed: " + (string)GetLastError());
//
return false;
}
@@ -734,10 +709,6 @@ bool SCInitHandlers()
scAppliedTo);
if (scFastHandler == INVALID_HANDLE)
{
//
LogMessage("SC Fast Indicator initialization failed: " + (string)GetLastError());
//
return false;
}
@@ -752,10 +723,6 @@ bool SCInitHandlers()
scAppliedTo);
if (scSlowHandler == INVALID_HANDLE)
{
//
LogMessage("SC Slow Indicator initialization failed: " + (string)GetLastError());
//
return false;
}
@@ -771,7 +738,7 @@ double GetLCState(
{
//
// Fast Cross Over Slow Detection ...
bool isFastCrossedOverSlow = IsCrossOver(
bool isFastCrossedOverSlow = IsCrossedOver(
lcFastBuffer,
lcSlowBuffer,
bar_index);
@@ -785,7 +752,7 @@ double GetLCState(
//
// Fast Cross Under Slow Detection ...
bool isFastCrossedUnderSlow = IsCrossUnder(
bool isFastCrossedUnderSlow = IsCrossedUnder(
lcFastBuffer,
lcSlowBuffer,
bar_index);
@@ -833,7 +800,7 @@ double GetMCState(
{
//
// Fast Cross Over Slow Detection ...
bool isFastCrossedOverSlow = IsCrossOver(
bool isFastCrossedOverSlow = IsCrossedOver(
mcFastBuffer,
mcSlowBuffer,
bar_index);
@@ -847,7 +814,7 @@ double GetMCState(
//
// Fast Cross Under Slow Detection ...
bool isFastCrossedUnderSlow = IsCrossUnder(
bool isFastCrossedUnderSlow = IsCrossedUnder(
mcFastBuffer,
mcSlowBuffer,
bar_index);
@@ -895,7 +862,7 @@ double GetSCState(
{
//
// Fast Cross Over Slow Detection ...
bool isFastCrossedOverSlow = IsCrossOver(
bool isFastCrossedOverSlow = IsCrossedOver(
scFastBuffer,
scSlowBuffer,
bar_index);
@@ -909,7 +876,7 @@ double GetSCState(
//
// Fast Cross Under Slow Detection ...
bool isFastCrossedUnderSlow = IsCrossUnder(
bool isFastCrossedUnderSlow = IsCrossedUnder(
scFastBuffer,
scSlowBuffer,
bar_index);
@@ -1031,7 +998,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);
//