QPv2 wizards,
Does anyone have any idea why the following scan doesn't generate any output IF one removed the "//" in the 4th last line (// MaxHi := Max(0,NumDays,hi);) ?
This is truely mind-boggling. I'm quite sure this scan worked perfectly before I updated QPv2 to the last version.
Am I overlooking something obvious?
Here's the input data for the "jvh-stocks-in.lst" file:
BMCS CEFT EMC JKHY METG NSIT NTAP SBL CPWR LGTO NEON
//JVH stock data Scan by JVH input = "jvh-stocks-in.lst"; output = "jvh-stocks-out.lst";
Float SMA17, SMA50, SMA200, MaxHi; Integer NumDays;
DaysToLoad=1040;
if DaysLoaded < 200 then // If there are less than 200 days of data available SMA17 :=MovAvg(0,17,cl); SMA50 :=MovAvg(0,50,cl); NumDays:=((DaysLoaded-1)*-1); if Numdays <= 0 then // if...endif to avoid QPv2 parsing bug in Max(x,y,z) MaxHi := Max(0,NumDays,hi); Println NumDays; //symbol, ",", Description:30, "," , close(0):7:2, ",", AvgVol(0,-29):10:0, "," , IRLsymbol:9, ",", QRS(0):3, ",", MaxHi; // :7:2, ",", SMA17:7/2, ",", SMA50:7:2, ",", "N/A":7, ",", (SMA50*1.3):7:2, ",", "N/A":7; endif; else // There are at least 200 days of data available SMA17 :=MovAvg(0,17,cl); SMA50 :=MovAvg(0,50,cl); SMA200 :=MovAvg(0,200,cl); NumDays:=((DaysLoaded-1)*-1); if Numdays <= 0 then // if...endif to avoid QPv2 parsing bug in Max(x,y,z) // MaxHi := Max(0,NumDays,hi); Println NumDays; //symbol, "," , Description:30, "," , close(0):7:2, ",", AvgVol(0,-29):10:0, "," , IRLsymbol:9, ",", QRS(0):3, ",", MaxHi; // :7:2, ",", SMA17:7:2, ",", SMA50:7:2, ",", SMA200:7:2, ",", (SMA50*1.3):7:2, ",", (SMA200*1.7):7:2; endif; endif;
Johan |