So I have an alert to send emails when something happens with indicators. Unfortunately, I keep getting a Mail Queue error, which I think is a function of there being no data present.
I thought I could fix it by checking Connection Status, but I may be missing something or doing things wrong.
private ConnectionStatus dataFeed = ConnectionStatus.Connected;
protected override void OnBarUpdate()
{
if (dataFeed == ConnectionStatus.Connected)
{
// Conditions to be run and email to be sent when data is present....
}
Please advise. Thanks!

Comment