_HPCS_Fifth_MT4_EA_V01_WE

Author: Copyright 2021, MetaQuotes Software Corp.
Miscellaneous
It issuies visual alerts to the screenIt plays sound alerts
0 Views
0 Downloads
0 Favorites
_HPCS_Fifth_MT4_EA_V01_WE
//+------------------------------------------------------------------+
//|                                    _HPCS_Fifth_MT4_EA_V01_WE.mq4 |
//|                        Copyright 2021, MetaQuotes Software Corp. |
//|                                             https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2021, MetaQuotes Software Corp."
#property link      "https://www.mql5.com"
#property version   "1.00"
#property strict
datetime gdt_Candle = Time[0];
//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
  {
//---
   
//---
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
//---
   
  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
//---
   if(gdt_Candle != Time[0])
   {
      Alert("New Candle Generated");
      PlaySound("alert.wav");
      gdt_Candle = Time[0];
   }  
  }
//+------------------------------------------------------------------+

Comments