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

Re: writing a system



PureBytes Links

Trading Reference Links

Ted,

Here is a long entry from TradeStation 2000i:

{*******************************************************************
Description : Moving Average (3) Crossover Long Entry
Provided By : Omega Research, Inc. (c) Copyright 1999
********************************************************************}

Inputs: FastLen(4), MedLen(9), SlowLen(18);
Variables: FastAvg(0), MedAvg(0), SlowAvg(0);

FastAvg = AverageFC(Close, FastLen);
MedAvg = AverageFC(Close, MedLen);
SlowAvg = AverageFC(Close, SlowLen);

If CurrentBar > 1 AND (FastAvg[1] < MedAvg[1] OR MedAvg[1] < SlowAvg[1]) AND
(FastAvg > MedAvg AND MedAvg > SlowAvg) Then
 Buy ("MAC3") This Bar on Close;


Regards,

Barry




----- Original Message -----
From: ted stampeen <tedco@xxxxxxxxxxxxxxxx>
To: <omega-list@xxxxxxxxxx>
Sent: Friday, May 26, 2000 2:00 AM
Subject: writing a system


> hi all,
>         would someone here be so kind as to tell how to go about
> writing the code .
>
> I think it is an easy one to those that know,  it is just a simple
> 3xma crossover, using a 5-9-20 bar .
>
>  thanks in advance and goodtrading / Ted
>