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

Re: Converting .els to .ela (Dyn. Momentum Index)-2nd try



PureBytes Links

Trading Reference Links

I just tried using a different RSI function(which I created from the
original one) where I gave the Input "Length" a NumericSeries designation
instead of NumericSimple.  Then I plugged this new RSI function(RSI_2) into
the Dyn Momentum Index formula and received a new error message at the same
spot.

"variables and arrays not allowed here" is now the error message at the
"TimePeriod" phrase in the line just above the Plot statements.

I could still use some help with this.

John





----- Original Message -----
From: "jbclem" <jbclem@xxxxxxxxxxxxx>
To: <omega-list@xxxxxxxxxx>
Sent: Wednesday, January 15, 2003 4:22 PM
Subject: Converting .els to .ela (Dyn. Momentum Index)


> I've changed a number of words to make this Dynamic Momentum Index formula
> work as an .ela but there is one verification error that I don't
understand.
> Below is the formula:
> ============
> Input: RSIPerio(14);
> Variables: VolaIndex(0), TimePeriod(0), DYMOI(0), OverBought(70),
> OverSold(30), middle(50);
>
> IF (stddev(close,5) / xaverage(stddev(close,5),10)) <> 0 THEN
>     VolaIndex = stddev(close,5) / xaverage(stddev(close,5),10) {get
> VolaIndex for RSI TimePeriod} ELSE
>     VolaIndex = 1;
>
> TimePeriod = round((RSIPerio / VolaIndex),0); {get integer for TimePeriod}
>
> DYMOI = rsi(close,TimePeriod); {get Dynamic Momentum Index from RSI with
> variable TimePeriod}
>
> plot1(DYMOI,"DYMOI");
> plot2(OverBought,"OverBought");
> plot3(OverSold,"OverSold");
> plot4(middle,"Middle");
> =============
> The verification error is on the line before the plot statements
begin...on
> the word "TimePeriod" as in DYMOI=rsi(close,TimePeriod);
>
> The error message is: "error #252    only a number or an input allowed
here"
>
> This is refering to the variable TimePeriod, and I don't know enough about
> Easy Language to know if it's mainly a difference between the TS2000i
power
> editors' way of handling formulas and the TS4 power editors' way  or just
> something wrong or misprinted in the formula.
>
> I'd appreciate it if someone could help with this.
>
> John
>
>
>