Email when histogram bars cross zero

 
Hello,

Just getting started and having a hard time trying to code indicator when the histogram bars cross the zero line. i have the sendEmail() working but can not nail down the logic to check when histogram bars cross. If you could please provide a code snippet that would be awesome. Thanks in advance and have a great day.