COMMON ERROR reported in TS code

Questions about MultiCharts and user contributed studies.
khalaad
Posts:317
Joined:07 Jan 2007
Location:Lahore, Pakistan
Has thanked: 63 times
Been thanked: 57 times
COMMON ERROR reported in TS code

Postby khalaad » 07 Mar 2007

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
Attachments
RVI.doc
(22KiB)Downloaded 159 times

User avatar
Stanley Miller
Posts:556
Joined:26 Jul 2005
Has thanked: 3 times

Postby Stanley Miller » 07 Mar 2007

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" );


Return to “MultiCharts”