Yes, I thought about carriage returns about 15 minutes after I sent that note -- too late. Did you have fun reading it? Well, the wide screen worked for "Lawrence of Arabia" -- why not for QP messages? The full format gives you the wide perspective.
I thought about using the for loop for the slope of Dahl, but I'm not sure it can be done in this case. I did it for the moving average of Dahl, but in that case, another formula (e.g., slope) didn't refer back to each element of the formula. Here's the moving average of Dahl with the for loop:
Dahl MA Compute Value with Loop
//21-day MA of Dahl by Brooke Elise Nagler
output="dahlmaco.lst"; input="ibd.lst";
DaysToLoad=100;
integer j, k;
float f, i, l;
f:=0;
for j=0 to -20 step -1 do f := f + MovAvg(j,50,cl); next j;
i:=0;
for k=-15 to -35 step -1 do i := i + MovAvg(k,50,cl); next k;
l:=(f-i)/21;
println symbol , "," ,l;
It would be easier if we could create functions in QP, of course. Then we use functions for Dahl, slope, etc.
Brooke |