//+------------------------------------------------------------------+
//| SimpleEA.mq4 |
//| Copyright 2020, MetaQuotes Software Corp. |
//| https://triantoadi.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2020, MetaQuotes Software Corp."
#property link "https://triantoadi.com
#property version "1.00"
#property strict
extern int StartHour = 9;
void OnTick()
{
static bool FirstTick = true;
if(Hour() == StartHour)
{
if(FirstTick == true)
{
FirstTick = false;
//CORE OF THE ALGORITHMIC TRADING SYSTEM
Alert("First tick of hour");
}
}
else
{
FirstTick = true;
}
}