Is it possible to check the Alert option in MQL5? I guess this option is turned off in your MQL5.
In MQL5 Press Ctr+O and select the tab "Events".
If Alerts is turned off in your MQL5, you will not receive any alerts.
Please edit your first post and use the code button (Alt+S) to paste your code (please do not add it in another post, edit the original).
In future please post in the correct section
I will move this topic to the MQL4 and Metatrader 4 section.