Liquidity_Predator/Utilities/M_NewBar_M1.mqh

33 lines
No EOL
631 B
MQL5

bool M_NewBar_M1()
{
if(tmpDebugTime == stGVL.dtCurrentTime && !bOptimizationRun)
{
tmpDebugTime = stGVL.dtCurrentTime;
}
stGVL.dtCurrentDay = stGVL.dtCurrentTime - (stGVL.dtCurrentTime % 86400);
if(stGVL.dtCurrentDay != stGVL.dtLastDay)
{
stGVL.dtLastDay = stGVL.dtCurrentDay;
M_NewDay();
}
MqlDateTime t;
TimeToStruct(stGVL.dtCurrentTime, t);
stGVL.nActualHour = t.hour;
M_CheckLiquCrossed();
M_CalcCurrentRSI();
M_CalcCurrentEMA();
if(!bOptimizationRun)
{
M_ExtendActualLines();
M_HandleBoxes();
}
return true;
}