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

RE: ASND



PureBytes Links

Trading Reference Links

I think you need a comma in the ref formula:  
Ref(c, -1).  I'm sure it's just a typo.
Philip

Lionel Issen wrote:
> 
> Myron:
> 
> Use the REF function instead of Close use Ref(c-1).  This will call up
> yesterdays close.
> 
> Since you are in Houston, are you a member of HCIA which has a Metastock sig?
> 
> Lionel Issen
> 
> At 11:22 AM 4/30/97 -0500, Myron B Slomka wrote:
> >X-Mozilla-Status: 0001
> >Message-ID: <3366FB53.2925@xxxxxxxxxx>
> >Date: Wed, 30 Apr 1997 02:57:07 -0500
> >From: Myron B Slomka <mslomka@xxxxxxxxxx>
> >Organization: Houston Area League of PC Users
> >X-Mailer: Mozilla 2.0 (Win95; U)
> >MIME-Version: 1.0
> >To: "http://www.eqsupport"@equis.com
> >Subject: Writing custom Indicators
> >X-URL: http://www.hal-pc.org/
> >Content-Type: text/plain; charset=us-ascii
> >Content-Transfer-Encoding: 7bit
> >
> >I am trying to write a custom indicator that will identify stocks whose
> >Low today and yesterday are above the 20 day moving average of their
> >respective closes.
> >
> >I want to write the indicator as a binary wave so that it is plottable
> >and can be included in other binary waves.
> >
> >If(L>mov(C,20,s) 1,0   works fine to identify those whose L today is
> >above today's 20 day simple mov agv.
> >
> >I can't write a similar function to include yesterday's close and mov
> >avg.
> >
> >The only I found in the metastock manual is the suggestion to use PREV
> >or P function.  I haven't been able to write one that works with either
> >and    If((L>mov(c,20,s)) and PREV, 1, 0       is accepted as one
> >writes the function but ignores yesterday's close.
> >
> >Am I not understanding what the manual is saying??
> >
> >Any suggestions from anybody?? Thanks
> >
> >
> >