I am trying to count the number of bar (within the 5 bars) that are above the mid point.
This code does not work for me and I cannot find where it goes wrong.
Could you please help me with that?
Thank you so much.
for (i=1; i<=limit; i++)
if(Close[k]>mid) t=1;else t=0;