Hello!
The attached code from January 2002 S&C written by TS Technologies, Inc. reports COMMON ERROR when compiled. I have highlighted the reported ERROR.
I am using the February 3, 2007 BETA.
Thank you.
khalaad
COMMON ERROR reported in TS code
- Stanley Miller
- Posts: 556
- Joined: 26 Jul 2005
- Has thanked: 3 times
The code can't be compiled because it contains unsupported symbols. Moreover, Plot is misspelled. Here is the correct code:
Code: Select all
inputs:
Length( 8 );
variables:
Change( 0 ),
MyRange( 0 ),
Num( 0 ),
Den( 0 ),
RVI( 0 ),
RVISig( 0 ) ;
Change = Close - Open ;
MyRange = High - Low ;
Value1 = TriAverage_Gen( Change,4 ) ;
Value2 = TriAverage_Gen( MyRange,4 ) ;
Num = Summation( Value1, Length ) ;
Den = Summation( Value2, Length ) ;
if Den > 0 then
RVI = Num / Den ;
RVISig = TriAverage_Gen( RVI,4 ) ;
Plot1( RVI, "RVI" ) ;
Plot2( RVISig, "Sig" );