Download MetaTrader 5

Enable and disable the Pop-up

To add comments, please log in or register
Massimo
479
Massimo  
Hello everyone. I have a problem with the code, and I need your help.

I wrote this code:

{
         Buffer1[i] = Low[i]- 1 * myPoint; 
        if(i == 0 && Time[0] != time_alert) { myAlert("indicator", "Buy"); time_alert = Time[0]; } 
        }


The part that I have highlighted, brings up the Popup. I wish I could turn on and off from outside the appearance of the pop-up.
Thank you all, Massimo.

Keith Watford
Moderator
9993
Keith Watford  

Put an input

input bool PopUp=false;

and in your code

    if(PopUp && i == 0 && Time[0] != time_alert) 

.

Massimo
479
Massimo  
Hello GumRai, thanks for your reply !!!
To add comments, please log in or register