I may be over complicating this code. What I am trying to do is for the script to send an email showing performance data every hour or so. Unfortunately, it only seems to send out emails occasionally but not all the time… any ideas on where I am going wrong?
Thanks
if (FirstTickOfBar)
{
if (ToTime(Time[0]) >= 101500 && ToTime(Time[0]) < 101600 || ToTime(Time[0]) >= 111500 && ToTime(Time[0]) < 111600 || ToTime(Time[0]) >= 121500 && ToTime(Time[0]) < 121600 etc
SendMail("[email protected]", "[email protected]", "Trade Update", "Total RT = " + Performance.AllTrades.Count)
Return;
}

Comment