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: Sean W. Smith who wrote (2990)1/12/1998 4:16:00 PM
From: TechTrader42  Read Replies (1) | Respond to of 11149
 
Yes, the for loop simplies the Dahl formula. Now I'm trying to figure out if there's a way to write a formula for cumulating with the loop function -- or any other function, for that matter. I'm trying to do a formula for slope, and the Metastock formula involves cumulating and power. Not sure whether it will be possible. Here's the Metastock coding for slope:

( (14 * (Sum(Cum( 1 ) * C ,14 ) ) ) - (Sum(Cum( 1 ) ,14 ) * (Sum( C ,14) ) ) ) / ( (14 * Sum(Pwr (Cum( 1 ) ,2 ) ,14 ) ) - Pwr(Sum(Cum( 1 ) ,14 ) ,2 ) )

I don't think it's going to be easy to do that in a QP scan, but we shall see.

Brooke



To: Sean W. Smith who wrote (2990)1/12/1998 5:11:00 PM
From: TechTrader42  Respond to of 11149
 
Of course, the for loop is just a cumulative total, so maybe this formula for slope won't be that difficult to translate into QP:

( (14 * (Sum(Cum( 1 ) * C ,14 ) ) ) - (Sum(Cum( 1 ) ,14 ) * (Sum( C
,14) ) ) ) / ( (14 * Sum(Pwr (Cum( 1 ) ,2 ) ,14 ) ) - Pwr(Sum(Cum( 1 )
,14 ) ,2 ) )

I'm plugging away at it, between departures and arrivals.

Brooke