backup Projects ...
add supports for wait until next candle to xAU5 ... fix XCTimer Initialization on EU and AU 5 ...
This commit is contained in:
@@ -118,7 +118,7 @@ int OnInit()
|
||||
// Init XCTimer ...
|
||||
if (xEU5ShowCandleTimer)
|
||||
{
|
||||
if (!XCTimerInit())
|
||||
if (!XEU5CTimerInit())
|
||||
{
|
||||
return INIT_FAILED;
|
||||
}
|
||||
@@ -299,13 +299,13 @@ void OnTick()
|
||||
}
|
||||
|
||||
//
|
||||
if (!IsNewCandle() && waitUntilNextCandle)
|
||||
if (!IsNewCandle() && xEU5WaitUntilNextCandle)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
//
|
||||
waitUntilNextCandle = false;
|
||||
xEU5WaitUntilNextCandle = false;
|
||||
|
||||
//
|
||||
// Prevent Going Forward if user Disable it ...
|
||||
@@ -367,7 +367,7 @@ bool ValidateInputs()
|
||||
return result;
|
||||
}
|
||||
|
||||
bool XCTimerInit()
|
||||
bool XEU5CTimerInit()
|
||||
{
|
||||
//
|
||||
bool result = true;
|
||||
|
||||
@@ -98,7 +98,7 @@ int xEU5CalculatedBars = 0;
|
||||
|
||||
//
|
||||
// Check prevent Double Signalling on Same Candle ...
|
||||
bool waitUntilNextCandle = false;
|
||||
bool xEU5WaitUntilNextCandle = false;
|
||||
|
||||
//
|
||||
// Signaller Variables ...
|
||||
|
||||
@@ -514,7 +514,7 @@ void XEU5HandleOpenTrades()
|
||||
XEU5UpdateReports();
|
||||
|
||||
//
|
||||
waitUntilNextCandle = true;
|
||||
xEU5WaitUntilNextCandle = true;
|
||||
|
||||
//
|
||||
// Open Long Trades ...
|
||||
|
||||
Reference in New Issue
Block a user