sendMail() in start() only sending email intermittently

 

I'm trying to write a custom indicator to send me an email when a certain pattern paints on my charts. I'm calling sendMail() from start(), but it isn't firing every time.

I had the indicator running on 15 charts with 5 other indicators so I thought that might be the problem. I removed all other indicators and tried again, but I get the same behavior.

Does anyone have an idea as to what could be causing this?

 
show the relevant code no one here wants to use the Holy Spirit for that
 
mschneider1973:


Does anyone have an idea as to what could be causing this?

Yes, your code is broken