SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Strategies & Market Trends : TA-Quotes Plus -- Ignore unavailable to you. Want to Upgrade?


To: Bob Jagow who wrote (3069)1/15/1998 1:57:00 PM
From: TechTrader42  Respond to of 11149
 
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



To: Bob Jagow who wrote (3069)1/15/1998 2:05:00 PM
From: TechTrader42  Respond to of 11149
 
It would be easy enough to use the for loop with the Sy line in the slope of Dahl formula.

Sy := dahl + dahla + dahlb + dahlc + dahld + dahle
+ dahlf + dahlg + dahlh + dahli +dahlj + dahlk + dahll

It's the Sxy line that might present problems:

Sxy := (0*dahl)+(-1*dahla)+(-2*dahlb)+(-3*dahlc)+(-4*dahld)
+(-5*dahle)+(-6*dahlf)+(-7*dahlg)+(-8*dahlh)+(-9*dahli)
+(-10*dahlj)+(-11*dahlk)+(-12*dahll);

But maybe not. I'm going to look at it again.

Brooke