Gary, Bob, John, All: I was not uncomfortable with posts 1909, 1911 as long as they seemed to relate to different software. But now I am unable to resolve an apparent conflict within V2 with respect to RSI. I'm hoping you can explain it.
In V2, using data of 9/19, I check the Chart module for the 14-period RSI of TRNI and find it to be 56.76. WOW gives exactly the same number. If I cursor back to 9/2, both programs still show the same value, viz, 55.9686.
But now it gets puzzling. The following are three scanlets, which were run separately. For ease of comparison, the accumulated output follows the third scanlet:
DaysToLoad = 510 Set RSI = 14 input = "trni.lst" output = "conundru.lst" if (RSI(-13)>0) then println symbol,date(-13),",", " RSI(-13)=",RSI(-13):4:4 endif
DaysToLoad = 510 Set RSI = 14 input = "trni.lst" output = "conundru.lst" if (RSI(-13)>0) and (RSI(-14)>0) then println symbol,date(-13),",", " RSI(-13)=",RSI(-13):4:4, //(artificial line break) " RSI(-14)=",RSI(-14):4:4 endif
DaysToLoad = 510 Set RSI = 14 input = "trni.lst" output = "conundru.lst" if (RSI(-13)>0) and (RSI(-14)>0) and (RSI(-15)>0) then println symbol,date(-13),",", " RSI(-13)=",RSI(-13):4:4, // (artificial line break) " RSI(-14)=",RSI(-14):4:4," RSI(-15)=",RSI(-15):4:4 endif
TRNI 09/02/1997, RSI(-13)=48.3717 TRNI 09/02/1997, RSI(-13)=53.3481 RSI(-14)=46.0705 TRNI 09/02/1997, RSI(-13)=49.1270 RSI(-14)=41.6343 RSI(-15)=43.1082
So it appears that the number of terms in the If statement affects the value of the RSI. Actually, I believe this is similar to V1, since
set RSI = 14 AllGroup Loop(-13,-13) RSI(0) > 0 input = "trni.lst" PrintLn symbol, date(0)," RSI(0)=",RSI(0):4:4," RSI(-1)=",RSI(-1):4:4
produces:
TRNI 09/02/1997 RSI(0)=53.3481 RSI(-1)=46.0705
So I guess the bottom line is: Is there a way to get the same value out of the Scan module as can be found behind the cursor in the Charts module?
-Gary |