This commit is contained in:
2025-05-23 22:55:28 +03:30
parent 2f865670c5
commit b13cf05d1a
6 changed files with 1202 additions and 230 deletions
+14 -15
View File
@@ -115,11 +115,11 @@ input bool filterBasedOnHKSignalBar = false; // Filter Based on Hiken Ashi Signa
//
// Alert ...
input group "Alerts";
input string mAlertPrefix = ""; // Alert Prefix
input bool _logAlerts = true; // Log Alerts
input bool _pushAlerts = false; // Push Alerts
input bool _mailAlerts = false; // Mail Alerts
input bool _terminalAlerts = true; // Terminal Alerts
input string mAlertPrefix = ""; // Alert Prefix
input bool _logAlerts = false; // Log Alerts
input bool _pushAlerts = false; // Push Alerts
input bool _mailAlerts = false; // Mail Alerts
input bool _terminalAlerts = false; // Terminal Alerts
//
// Presentation ...
@@ -130,7 +130,6 @@ input bool showPVGolden = false; // Show PV Golden
input bool showSar = false; // Show Sar
input bool showTrend = false; // Show Trend
input bool showATRBand = false; // Show ATR Band
input bool showTrendBars = false; // Show Trend Bars
input bool showSignalBars = false; // Show Signal Bars
input bool showHKSignalBars = false; // Show Hiken Ashi Signal Bars
@@ -329,7 +328,7 @@ double trendColorBuffer[];
//
#define sBarOpenBufferIndex 10
double sBarOpenSBuffer[];
double sBarOpenBuffer[];
//
#define sBarHighBufferIndex 11
@@ -1182,8 +1181,8 @@ void DefineBuffers()
//
// Open ...
ArraySetAsSeries(sBarOpenSBuffer, true);
SetIndexBuffer(sBarOpenBufferIndex, sBarOpenSBuffer, INDICATOR_DATA);
ArraySetAsSeries(sBarOpenBuffer, true);
SetIndexBuffer(sBarOpenBufferIndex, sBarOpenBuffer, INDICATOR_DATA);
//
// High ...
@@ -1975,7 +1974,7 @@ void CalculateValues(
trendStateBuffer,
atrUpperBuffer,
atrLowerBuffer,
sBarOpenSBuffer,
sBarOpenBuffer,
sBarCloseBuffer,
hkSBarOpenBuffer,
hkSBarCloseBuffer,
@@ -2055,7 +2054,7 @@ void CalculateValues(
}
else if (canAlert)
{
mAlert.Alert(message);
mAlert.SendAlert(message);
}
}
}
@@ -2286,7 +2285,7 @@ void CalculateSBar(
barIndex,
mAppliedLength,
open,
sBarOpenSBuffer,
sBarOpenBuffer,
barsSignalMethod //
);
@@ -2303,8 +2302,8 @@ void CalculateSBar(
);
//
double min = MathMin(sBarCloseBuffer[barIndex], sBarOpenSBuffer[barIndex]);
double max = MathMin(sBarCloseBuffer[barIndex], sBarOpenSBuffer[barIndex]);
double min = MathMin(sBarCloseBuffer[barIndex], sBarOpenBuffer[barIndex]);
double max = MathMin(sBarCloseBuffer[barIndex], sBarOpenBuffer[barIndex]);
//
sBarLowBuffer[barIndex] = min;
@@ -2313,7 +2312,7 @@ void CalculateSBar(
//
// Calculate HK Signal Color ...
double iSignalColorValue =
sBarOpenSBuffer[barIndex] < sBarCloseBuffer[barIndex]
sBarOpenBuffer[barIndex] < sBarCloseBuffer[barIndex]
? bullishColorIDX
: bearishColorIDX;
sBarColorBuffer[barIndex] =