Roy: Thanks! You've done it. The values match those in Metastock -- however, there's just one discrepancy that's easily fixed.
The values appear to be one day off. The scan gives values for July 2 that I get in Metastock for July 1. This can be fixed by changing date(i) to date(j) in the output:
In other words, change:
println symbol,",", date(i),",",close(0):8:2,",",b:8:4;
to:
println symbol,",", date(j),",",close(0):8:2,",",b:8:4;
Is that OK with you?
Thanks so much for doing the scan. I'm filled with admiration for your work.
Brooke |