Let's take for example the following code:
int barsAgo;
int sum = 0;
for (barsAgo = 0; Open[barsAgo] > Close[barsAgo]; barsAgo++)
{
sum = sum + 1;
}
Value.Set(sum);
Why is this working for Open[barsAgo] > Close[barsAgo] condition, but not for Open[barsAgo] < Close[barsAgo] condition?
Thanks.

Comment