Wrong Date and Wrong Chart on SP500

 

I'm using a demo account to check the charts with my indicators on MT5, and I've noticed today that some symbols (like the SP500) don't show the current price or current date, they just froze on Dec 9.

Could someome tell me how to solve this?

 

Check the connection of your MT5 to the broker's server. Besides, close your charts and after that only - login to your live account from your demo account.

Besides, many brokers are providing the demo accounts for limited time only, and if it is your case - open the other demo account with any MT5 broker.

--------------------

As to symbols and date ... The charts (and the price on the charts), the date of the price on the chart, the name of the synbols and so on - all of them are related to the broker only (ask your broker for support).

 

If the broker's prices have a hole and the hole is bigger than a 'jump to the next price' some MQ functions get stuck at the last valid price and can thus get into an infinite loop: the system freezes.

Check it with the debugger:

Code debugging:  https://www.metatrader5.com/en/metaeditor/help/development/debug
Error Handling and Logging in MQL5:  https://www.mql5.com/en/articles/2041
Tracing, Debugging and Structural Analysis of Source Code, scroll down to: "Launching and Debuggin": https://www.mql5.com/en/articles/272

Code debugging - Developing programs - MetaEditor Help
  • www.metatrader5.com
MetaEditor has a built-in debugger allowing you to check a program execution step by step (by individual functions). Place breakpoints in the code...