Liquidity_Predator/Utilities/M_NewDay.mqh

15 lines
366 B
MQL5
Raw Permalink Normal View History

2026-01-31 07:59:15 +01:00
bool M_NewDay()
{
stGVL.nNumberOfTrades = 0;
2026-02-11 19:29:28 +01:00
M_LogInfo("Trade count reset");
2026-01-31 07:59:15 +01:00
2026-02-20 19:07:22 +01:00
stGVL.DailyStartingBalance = AccountInfoDouble(ACCOUNT_BALANCE);
2026-05-09 08:09:47 +02:00
int nDays = M_GetLastTradeDayDifference();
if((nDays > nMaxDaysWithoutTrade || nDays == -1) && nMaxDaysWithoutTrade > 0)
{
stGVL.bDemandKeepAccountAliveTrade = true;
}
2026-01-31 07:59:15 +01:00
return true;
}