Folks, Say i have buy = condition1; Alert gets generated...Now few bars later again condition1 matches and another alert gets generated. So i'd like add a filter that says Buy=condition1 and this is the first Buy in the past six bars so that buy signals don't repeat every other bar if the condition matches.
I tried something like this buy=condition1 and ref(buy,-1)=0 and and ref(buy,-2)=0 and and ref(buy,-3)=0 and and ref(buy,-4)=0. But its not working. How do I code this in AB 4.9?. Thanks. cheers,Padhu
