I think I have found another bug. When I run the NewHighsLastnDays scan, which I've included beneath, I get a lot of N/A's for the IRLDailyIndex while the IRLSymbol is correct.
Does anyone have a workaround? Or a fix? :)
Here is part of the output generated by the Println statement:
Println symbol, ",", Description, ",", Date(NumDays), ",", AvgVol(0,-29), ",", IRLSymbol, "," , IRLDailyIndex, ",", QRS(0);
The IRLDailyIndex can't be N/A obviously if the IRLSymbol is correctly printed.
AAPL ,APPLE COMPUTER INC COM,08/11/1998,4726667,COMPMICR,N/A,97 ADAC ,ADAC LABS COM NEW,08/10/1998,279083.344,MEDINSTR,N/A,93 AEH ,ALLEGIANCE CORP COM,08/14/1998,271560,MEDENSUP,N/A,97
// NewHighsLastnDays scan
output="NewHighsLastnDays.lst";
IssueType Common; Exchange=NASDAQ,NYSE;
Float High260; // variable for "260 day high" Integer NumDays, HighFound; // HighFound: flag Integer DaysTT;
DaysTT := 5; // Number of Days from last trading day To Test for New Intraday Highs
HighFound := 0; // initialise this flag
for NumDays = 0 to -(DaysTT-1) step -1 // Check every day do if HighFound = 0 then // no high found yet DaysToLoad=260+NumDays; // 52 week x 5 days = 260 days DaysRequired=260; High260 := Max(NumDays-1,NumDays-259,hi); // Intraday high during last Year except today (day zero) if High(NumDays) > High260 and // compare high of last trading day with previous 259 days Close(0) > 8 then // high found HighFound := 1; Println symbol, ",", Description, ",", Date(NumDays), ",", AvgVol(0,-29), ",", IRLSymbol, "," , IRLDailyIndex, ",", QRS(0); endif; endif; next NumDays; |