Liquidity_Predator/Utilities/M_NewBar_M1.mqh

33 lines
631 B
MQL5
Raw Permalink Normal View History

2026-02-11 17:37:48 +01:00
bool M_NewBar_M1()
2026-01-31 07:59:15 +01:00
{
if(tmpDebugTime == stGVL.dtCurrentTime && !bOptimizationRun)
{
tmpDebugTime = stGVL.dtCurrentTime;
}
2026-01-31 07:59:15 +01:00
stGVL.dtCurrentDay = stGVL.dtCurrentTime - (stGVL.dtCurrentTime % 86400);
2026-02-01 10:19:53 +01:00
if(stGVL.dtCurrentDay != stGVL.dtLastDay)
2026-01-31 07:59:15 +01:00
{
stGVL.dtLastDay = stGVL.dtCurrentDay;
M_NewDay();
}
MqlDateTime t;
TimeToStruct(stGVL.dtCurrentTime, t);
stGVL.nActualHour = t.hour;
2026-01-31 07:59:15 +01:00
M_CheckLiquCrossed();
2026-02-11 17:37:48 +01:00
M_CalcCurrentRSI();
2026-02-10 16:32:38 +01:00
2026-02-27 14:33:14 +01:00
M_CalcCurrentEMA();
2026-02-12 17:44:40 +01:00
if(!bOptimizationRun)
{
M_ExtendActualLines();
2026-03-15 10:56:32 +01:00
2026-02-12 17:44:40 +01:00
M_HandleBoxes();
}
2026-02-12 16:16:26 +01:00
2026-01-31 07:59:15 +01:00
return true;
}