I tested your modifications with market replay and found that the indicator sends one e-mail when the condition "gotBar" is true. I changed the number of bars and the indicator adjusted to that, sending an e-mail when the number of bars met the specific conditions within the indicator. I used the indicator on 1 minute data and with calculate on bar close = true.
The indicator has parameters that you can change such as Lowerlow, lowerHigh and bardown. I tested them all set to true and all set to false. In all cases it appears to only function on a down condition.
When you set the indicator to 4 bars (for example) and all conditions true, you will get less e-mails. When you set all conditions false you will get more e-mails because the logic is not filtering conditions.
If you have more than 4 consecutive bars down (and assuming the bars meet the logic conditions specified), for each bar down after 4 you will get another e-mail because the indicator counts back only 4 bars, so if you have 7 down bars you will get 3 e-mails, one for bar 5, bar 6 and bar 7 because at each of those bars there for 4 preceding bars meeting the logic condition..
Hope this helps.

Comment