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

Re: Tradestation question



PureBytes Links

Trading Reference Links

----- Original Message -----
From: Joshua Williams <joshuawilliams@xxxxxxxx>
To: Barry Silberman <barry@xxxxxxxxxxxxxxxxxxxxx>
Sent: Saturday, May 20, 2000 8:06 PM
Subject: Tradestation question


> Good day
>
> I hope you can help... I wish to make a moving average of an indicator in
> ts2000 but I am not sure of the code.
>
> thanks in advance



Joshua,

I'm far from an easylanguage expert, I believe if you substitute the name of
the indicator for price you can get what you need.

Here is an example using the average of the RSI indicator.


Inputs: Price(Close), RSILength(14), Length(5), Displace(0);

value1 = RSI(Price, RSILength);
value2 = AverageFC(value1, length);

If Displace >= 0 OR CurrentBar > AbsValue(Displace) Then Begin
 Plot1[Displace](value2, "SimpAvg1");

Hope this helps.

Barry