Do you have a Metaquotes ID?
Do you have Push Notifications configured on your MT4 Client?
Are you signed in to your trading account in the MT4 app?
Assuming the code in your program checks out (which is really simple), that's pretty much all there is to it.
So please read this article it may help you to fix it,