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: Roy Yorgensen who wrote (4142)5/6/1998 2:14:00 AM
From: Bob Jagow  Read Replies (3) | Respond to of 11149
 
Actually, Roy, it turns out that R1.1 has date() so
-----------------
For Day = -100 to -110 do
if Close(day)>Close(day-1) and
Vol(day)>Vol(day-1) and
Vol(day-1)<Vol(day-2) then
Println Symbol, date(day), Close(day)-close(day-1);
endif;
next day
-----------------
would in 1.1 be
------------------
loop(-100,-110)
AllGroup
Close(0)>Close(0-1)
Vol(0)>Vol(0-1)
Vol(0-1)<Vol(0-2)
Println Symbol, date(0)," ", Close(0)-close(0-1)
-------------------
which gives output identical to R2.
-------------------------
A 09/02/1997 1.1875
AA 09/02/1997 2.9375
AAB 09/02/1997 1.375
AABC 08/27/1997 0.183824
AAC 08/25/1997 0.125
AACE 08/28/1997 0.083333
AADV 08/26/1997 0.5
AAF 08/27/1997 0.0625
AAFG 08/25/1997 0.09375
AAG 09/03/1997 0.03125
AAGIY 09/03/1997 0.15625
AAH 08/28/1997 0.625
AAHS 09/04/1997 0.0625
AAII 08/29/1997 0.375
AALA 08/26/1997 0.1875
AAM 08/21/1997 1.625
AAME 08/29/1997 0.0625
-------------------------
Note that
-I replaced (day-1) by (0-1) only to emphasize that the '0'
depends on the 'day' in the loop; (-1) is equivalent.
-the dates are off from what you would get because my data ends 1/28/98.
-this is one of the few place where you can't leave out AllGroup.
Bob