This commit is contained in:
2024-02-02 01:32:20 +03:30
parent 87f09d72f6
commit ebb772b42f
40 changed files with 46510 additions and 16 deletions
@@ -85,10 +85,21 @@ input bool xAU5XCHMAMNAllowLongSignals = true; // Enable Long Signals
input bool xAU5XCHMAMNAllowShortSignals = true; // Enable Short Signals
//
bool xAU5IsTestMode = true;
// Check in Test Mode or not ...
bool xAU5IsTestMode = false;
//
// Detect max Input Length of Indicators ...
int xAU5MaxLengthOfInputs = 0;
//
// Detect Calculated Bars ...
int xAU5CalculatedBars = 0;
//
// Check prevent Double Signalling on Same Candle ...
bool xAU5WaitUntilNextCandle = false;
//
// Signaller Variables ...
//
@@ -297,7 +308,7 @@ bool XAU5InitIndicators()
//
// Make it Enable when we need to Log Market Conditions ...
// xAU5IsTestMode = false; // IsRunningOnTestMode();
xAU5IsTestMode = IsRunningOnTestMode();
//
// Check and Calculate Max Length in Inputs ...
@@ -865,7 +876,7 @@ bool XAU5HasLongSignal(
{
//
// Only Log Signals Time Market Conditions if is in Testing Mode ...
if (xAU5IsTestMode)
if (xAU5IsTestMode || xAU5EnableSignalAlerts)
{
//
XMarketConditions mConditions = xAU5Provider.GetLastMarketCondition();
@@ -1021,7 +1032,7 @@ bool XAU5HasShortSignal(
{
//
// Only Log Signals Time Market Conditions if is in Testing Mode ...
if (xAU5IsTestMode)
if (xAU5IsTestMode || xAU5EnableSignalAlerts)
{
//
XMarketConditions mConditions = xAU5Provider.GetLastMarketCondition();