[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RCI Study



PureBytes Links

Trading Reference Links

Here is and  .ela  that solves the problem and the TS7 version
that works for me.

Clyde
- - - - - - - - - - - - - - - - - - - - -  - - - - - - -
Clyde Lee   Chairman/CEO          (Home of SwingMachine)
SYTECH Corporation          email: clydelee@xxxxxxxxxxxx
7910 Westglen, Suite 105       Office:    (713) 783-9540
Houston,  TX  77063               Fax:    (713) 783-1092
Details at:                      www.theswingmachine.com
- - - - - - - - - - - - - - - - - - - -  - - - - - - - -

----- Original Message ----- 
From: "Ian Copsey" <icopsey@xxxxxxxxxxxxxxxxxxxx>
To: <omega-list@xxxxxxxxxx>
Sent: Tuesday, October 14, 2003 8:50 PM
Subject: RE: RCI Study


> To everyone that requested text coding due to an TS returning an error
> message for an attempt to access an array out of bounds:
>
> I use TS 2000i and developed this for institutional TS users in Japan
> several years ago. There were no reports of any problems nor have I ever
had
> any problems. Must be TS7...
>
> Here's the text:
>
> FUNCTION:
> Input: Length(NumericSimple);
> Vars: PriceRanking(0), Price(0), RC(0);
>
> RC = 0;
> For PriceRanking = 1 to Length begin
> RC = RC + ( Power(  ( NthHighestBar( PriceRanking,Close,Length ) + 1 ) -
> PriceRanking, 2) );
> End;
>
> if  (Length * (Length - 1) * (Length +1) )  > 0 then
> RCI = 100 * (  1 - (RC * Length) / ( Length * (Length - 1) * (Length
> +1) ) );
>
>
> INDICATOR
>
> Inputs: Length(6),AvgLen(3) ;
>
> Plot1(RCI(Length),"RCI    ") ;
> Plot2(XAverage(RCI(Length),AvgLen),"RCI Sig") ;
> Plot3(0, "Zero   ") ;
>
> Regards
>
>
> ---
>

Attachment:
RCI_NEW_FUNCTION.ELS
Description: Binary data
Attachment:

Attachment: Description: "Description: Binary data"

Attachment: Description: "RCI.ELD"