mirror of
https://github.com/raa251/Liquidity_Predator.git
synced 2026-07-06 13:42:02 +00:00
33 lines
No EOL
631 B
MQL5
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;
|
|
} |