The condition is supposed to be triggered on the occurrence of a certain number of up or down bars. I've used NBarsUp and NBarsDown, together in the same strategy. In other strategies, I've used just either one or the other.
For example, if I want to see three bars up and then two down, I use "bars ago = 2" for the first condition and "bars ago = 0" for the second. Since I'm not certain I'm counting bars ago correctly, I've created an alarm trigger that should sound when there's just a single down bar, but that doesn't work either.
I'm using a demo trading account, but live data -- not simulated. The funny thing is that the alarm has sounded successfully at least once, and I can't for the life of me figure out why it only works for certain programmed strategies and not for others.
Any suggestions?
Thanks.
Eric
Comment