Hi Bob, rather that letting Sean hog all the questions I thought I would share one with you. :-)
I just ran the following scan and got some unexpected results the date(bar) gave me different dates within the same scan.
input="nyse.lst"; output="2 NYSE Over 20 DMA.lst"; daystoload=1000; integer bar; bar:= -202; if Close(bar)> movavg(bar,20,cl) then println symbol,",",date(bar); endif;
Partial Sample of Results: AFM ,10/20/1997 AFS ,10/20/1997 AGC ,10/20/1997 AGF ,10/20/1997 AGI ,10/20/1997 AGL ,10/20/1997 AGP ,10/17/1997 AHC ,10/20/1997 AHE ,10/20/1997 AHG ,10/20/1997
Notice that day -202 is 10/20/97 but I had several drop out with 10/17/97
Am I doing something wrong?
Thanks Monty |