1
0
포크 0
원본 프로젝트 raaa251/Liquidity_Predator
Liquidity_Predator_raaa251/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;
}