Jon Thetford / Publications
Forum
Coding: Counting conditional events
I'm trying to count how many times a conditional event occurs. But when I test it, it gives me unrealistic numbers. I don't think I am coding it correctly . Need help for(i=0;i<Bars; i++) { if(Close[i+1]<Close[i+2]<Close[i+3]<Close[i+4]<Close[i+5]); x=x+1; Comment(x); }