How the schedule is returned

The function takes a symbol, day of week and zero-based session index. It returns start and end as seconds from midnight represented in datetime values. The reference instructs readers to ignore the date part. MQL5 SymbolInfoSessionTrade ↗

A schedule with a break

Imagine trading from 09:00 to 12:00 and from 13:00 to 17:00. A panel holding only the first opening and final close would show trading at 12:30. Preserving each interval records the break and the next opening.

Checking the panel

Enumerate each day’s sessions and verify the trading server’s clock settings. Test holiday changes and actual server responses separately. Show the current phase and next transition in the interface, and retain the applied schedule in logs.