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 anybody want to help me out??
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);
}
But when I test it, it gives me unrealistic numbers.
I don't think I am coding it correctly anybody want to help me out??
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);
}