PureBytes Links
Trading Reference Links
|
In a message dated 8/31/99 11:47:54 PM Eastern Daylight Time,
skTennis@xxxxxxxxxxxxxxxxxx writes:
Return-Path: <skTennis@xxxxxxxxxxxxxxxxxx>
Received: from rly-yh02.mx.aol.com (rly-yh02.mail.aol.com [172.18.147.34])
by air-yh01.mail.aol.com (v60.28) with ESMTP; Tue, 31 Aug 1999
23:47:54 -0400
Received: from mail.vista-research.com (webster.arc.net [204.49.37.18]) by
rly-yh02.mx.aol.com (v60.28) with ESMTP; Tue, 31 Aug 1999 23:47:43
-0400
Received: from skt1 [204.49.37.152] by mail.vista-research.com with ESMTP
(SMTPD32-4.06) id A142931900C8; Tue, 31 Aug 1999 22:45:06 CST
Message-Id: <4.2.0.58.19990831224334.009e1b40@xxxxxxxxxxxx>
X-Sender: skTennis@xxxxxxxxxxxxxxxxxx
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58
Date: Tue, 31 Aug 1999 22:47:25 -0500
To: TennisSte@xxxxxxx
From: "Samuel K. Tennis" <skTennis@xxxxxxxxxxxxxxxxxx>
Subject: Re: Fwd: EL Help
In-Reply-To: <b6213230.24fdec15@xxxxxxx>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
Content-Transfer-Encoding: 7bit
In the code example you have given, you are checking that this bar has an
XMA value below that of twenty bars ago but you are not checking the
overall direction of the average.
I do have a question for you though... When, if ever, are you setting the
return value to FALSE. it appears to me that once TRUE, your function will
stay that way forever!
Try something like...
If (XAverage(close,50 ) - XAverage(close,50 )[20] > 00)
and (Close > XAverage(close, 50))
then Test01 = TRUE
else Test01 = FALSE ;
or
Test01 = FALSE ;
If (XAverage(close,50 ) - XAverage(close,50 )[20] > 00)
and (Close > XAverage(close, 50))
then Test01 = TRUE ;
Samuel
At 09:40 PM 08/31/99 , you wrote:
>
>Return-Path: <omega-list-request@xxxxxxxxxx>
>Received: from rly-yb04.mx.aol.com (rly-yb04.mail.aol.com [172.18.146.4]) by
> air-yb03.mail.aol.com (v60.28) with ESMTP; Tue, 31 Aug 1999 21:03:03
> -0400
>Received: from mx1.eskimo.com (mx1.eskimo.com [204.122.16.48]) by
> rly-yb04.mx.aol.com (v60.28) with ESMTP; Tue, 31 Aug 1999 21:02:50
> -0400
>Received: (from smartlst@xxxxxxxxx)
> by mx1.eskimo.com (8.9.1a/8.8.8) id SAA18209;
> Tue, 31 Aug 1999 18:02:43 -0700
>Resent-Date: Tue, 31 Aug 1999 18:02:42 -0700
>From: "Mel F" <melsmail@xxxxxxxxxxx>
>To: "Omega List" <omega-list@xxxxxxxxxx>
>Subject: EL Help
>Date: Wed, 1 Sep 1999 11:03:39 +1000
>X-Mailer: Microsoft Internet Mail 4.70.1162
>MIME-Version: 1.0
>Content-Type: text/plain; charset=ISO-8859-1
>Content-Transfer-Encoding: 7bit
>Message-Id: <01003631626820@xxxxxxxxxxxxxxxxxxx>
>Resent-Message-ID: <"kNtgZ3.0.CS4.oi7pt"@mx1>
>Resent-From: omega-list@xxxxxxxxxx
>X-Mailing-List: <omega-list@xxxxxxxxxx> archive/latest/41233
>X-Loop: omega-list@xxxxxxxxxx
>Precedence: list
>Resent-Sender: omega-list-request@xxxxxxxxxx
>
>Have created and verified following function to give an entry signal, that
>the moving average is rising over 20 days and the close is above it
>
>IF (XAverage(close,50 ) - XAverage(close,50 )[20]) > 0
> and Close > XAverage(close,50 )
> then
> Test01= True
>
>When I write a system and use this function it does not show entries only
>when the moving average is rising but also when moving average is falling
>
>{ LONG ENTRY }
>IF CurrentBar >1 and MarketPosition = 0 then begin
> IF Test01= true
> then buy at high + 1
> stop;
>
>end;
>
>Strange thing is it seems to work on some stocks
>
>
>Mel F
>melsmail@xxxxxxxxxxx
Samuel K. Tennis, Vista Research
129 Staff Drive voice: 1(850) 243-5105
Ft. Walton Beach, FL 32548 fax: 1(850) 301-2884
<skTennis@xxxxxxxxxxxxxxxxxx> <http://www.vista-research.com>
|