One way to do this is using MAX and MIN but if I want to compare it to every position over n weeks would the best way to accomplish this be to use a for loop?
Or is a for loop not the best process?
I've been reading other forum posts on for loops but am having a little trouble on the for loop syntax in order to compare COT positions.
I am only interested in comparing the current commercial position to its historical positions.
Commercials[0] = COT(2).Cot2[0]; //current commercial position
if I want to for loop to determine percentile rank:
for (initializer; condition; iterator)
{
//code block
}
for (i=0; i >Commercials[0]; i++)
{
Commercials[i]
}
I am confused how to get the count for number of times the commercial position is greater or less.
Thanks so much for the help.

Comment