Gary, in addition to COMS the following have errors (the index is the day before the print):
!NIND, 07/01/1999, 668.800, 662.400, 666.800, 671.500 Data error APCC, 07/09/1999, 21.500, 20.625, 20.875, 2110.000 Data error EVOL, 07/09/1999, 5.250, 5.000, 5.125, 504.000 Data error MSFT, 07/09/1999, 93.250, 92.250, 92.531, 9229.000 Data error PMTC, 07/09/1999, 14.250, 12.062, 13.281, 1324.000 Data error PRBZ, 07/09/1999, 37.000, 34.875, 35.000, 3512.000 Data error SEBL, 07/09/1999, 58.938, 58.000, 59.938, 6013.000 Data error VCAI, 07/09/1999, 13.500, 13.500, 13.781, 1316.000 Data error
output = "anomolies.lst" ; //input = "prescan.lst";
integer count, bar, start, finish; start:=-30; finish:=0;
for bar = finish to start step -1 do if (close(bar) > 50*close(bar-1)) or (low(bar) > 50*low(bar-1)) or (open(bar) > 50*open(bar-1)) or (high(bar) > 50*high(bar-1)) then println symbol, ", ",date(bar), ", ",close(bar):7:3,", ",low(bar):7:3,", ",open(bar):7:3,", ", high(bar):7:3 , " Data error"; endif;
next bar; |