PureBytes Links
Trading Reference Links
|
Calculate the XMA yourself. It is easy.
Vars: XAlpha(2/(1+Length)),XBeta(1-XAlpha),XMA(Close);
XMA=XMA*XBeta+XAlpha*Close;
That is all there is to it and you can use anything you want
to instead of Length, close, ......
Clyde
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Clyde Lee Chairman/CEO (Home of SwingMachine)
SYTECH Corporation email: <clydelee@xxxxxxx>
7910 Westglen, Suite 105 Work: (713) 783-9540
Houston, TX 77063 Fax: (713) 783-1092
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
To subscribe / unsubscribe from SwingMachine list
http://www.egroups.com/list/swingmachine/
After joining list the freeware SwingMachine program
(DOS Version) is available in the VAULT at:
http://www.egroups.com/list/swingmachine/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
----- Original Message -----
From: Ian MacAuslan <imacauslan@xxxxxxx>
To: <omega-list@xxxxxxxxxx>
Sent: Monday, November 01, 1999 17:38
Subject: "Variables and Arrays not allowed here"
> Greetings
>
> I'm refining a 5-minute bar Exponential Moving Avg-based system, and
am
> trying to write a simple method to "adjust out" the effect of gap
> opennings -- since these can wildly distort the calculation of the
"true
> signal" the moving average is attempting to capture. (The distortion
is
> most noticeable in the first hour or so.)
>
> I'm having a real EasyLanguage problem. Could someone tell me how I
can
> get around this? It's telling me I can't use a variable in the
> calculation of TradeStation's XAVERAGE function.
>
> To simplify, here is a snippet:
>
> ...
>
> If Date <> Date[1] then
> GAP = Close - Close[1];
>
> CL_NOGAP = Close - GAP;
> HI_NOGAP = High - GAP;
> LO_NOGAP = Low - GAP;
>
> UpperMA = XAverage(CL_NOGAP, AvgLen)[1];
> LowerMA = XAverage(HI_NOGAP, AvgLen)[1];
>
> ...
>
> Does anyone know if there is a way I can get around this limitation?
>
> THANKS,
> Ian
>
|