resolve guard on HFMarkets and also apply some changes on Expert for ignoring Ticks after recieve Signal ...

This commit is contained in:
2024-02-07 16:15:49 +03:30
parent b0199f5b4f
commit 70faaa32b8
7 changed files with 107 additions and 16 deletions
+9 -5
View File
@@ -296,9 +296,13 @@ void OnTick()
// Handle Processing on XAU5 Signal Provider ...
XAU5SignalProviderDoControlState();
}
//
if (!IsNewCandle() && xAU5WaitUntilNextCandle)
// Check Can Ignore Tick or not ..
bool canIgnoreTick = xAU5IsTestMode
? !IsNewCandle()
: !IsNewCandle() && xAU5WaitUntilNextCandle;
if (canIgnoreTick)
{
return;
}
@@ -379,11 +383,11 @@ bool XAU5CTimerInit()
//
// Inputs ...
xAU5CandleTimerColot,
xAU5CandleTimerCorner
);
xAU5CandleTimerCorner);
//
if (xAU5CTimerHandler == INVALID_HANDLE) {
if (xAU5CTimerHandler == INVALID_HANDLE)
{
result = false;
}