This commit is contained in:
2025-05-23 17:25:59 +03:30
parent b03facd82a
commit 99f0e57d2e
2 changed files with 70 additions and 7 deletions
+31 -1
View File
@@ -84,6 +84,7 @@ input ENUM_X_MARKET_CYCLES appliedCycle = X_MARKET_CYCLE_HIND; // Applied Cycle
// Signal ...
input group "Signal";
input int signalR2R = 4; // Risk Reward Ratio
input bool drawSignals = true; // Draw Signal
input double slAtrMultiplier = 1.0; // ATR Multiplier for SL
//
@@ -2023,11 +2024,40 @@ void CalculateValues(
has = DrawTriggerBlock(
tb,
mDrawer,
mObjects //
mObjects,
NULL,
drawSignals //
);
//
// Alert ...
bool canAlert =
mEnableAlerts &&
prevCalculated > 0;
bool canLogOnly =
mEnableAlerts &&
prevCalculated == 0;
if (has &&
(canAlert ||
canLogOnly))
{
//
string message =
tb.trigger.symbol + "," +
ToString(tb.trigger.period) + "> " +
ToString(tb.trigger.dir) +
" Zone Detected at: " + ToString(tb.trigger.to);
//
if (canLogOnly)
{
mAlert.LogAlert(message);
}
else if (canAlert)
{
mAlert.Alert(message);
}
}
}
}