Sound_On-Off

Author: Copyright � 2010, Korvin � Co.
Miscellaneous
It issuies visual alerts to the screen
1 Views
0 Downloads
0 Favorites
Sound_On-Off
//+------------------------------------------------------------------+
//|                                                 Sound_On-Off.mq4 |
//|                                   Copyright © 2010, Korvin ® Co. |
//|                                         http://alecask.narod.ru/ |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2010, Korvin ® Co."
#property link      "http://alecask.narod.ru/"
#property show_inputs
#define QUESTION "ÂÊËÞ×ÈÒÜ ÈËÈ ÂÛÊËÞ×ÈÒÜ ÇÂÓÊ ?!"
extern string msg1 = QUESTION;
extern bool SoundOn;
//+------------------------------------------------------------------+
//| script program start function                                    |
//+------------------------------------------------------------------+
int start()
  {
if (SoundOn) {GlobalVariableSet("Sound", 1); msg1 = "ÇÂÓÊ ÂÊËÞ×¨Í !!!";}
else {GlobalVariableSet("Sound", 0); msg1 = "ÇÂÓÊ ÎÒËÞ×¨Í !!!";}
Alert(msg1);
   return(0);
  }
//+------------------------------------------------------------------+

Comments