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

Re: system tester help



PureBytes Links

Trading Reference Links

Al,
I haven't seen a response to your question and I'm far from an expert in the 
coding area but I'm willing to have a crack at it.
How about:
Close Long:
C> Ref(H,-1) OR
BarsSince(C<Ref(L,-1)AND Ref(H,-1)>=(HHV(H,20)))=3

I looked at a couple of charts and it seems to do what you are after.
Have attached one of the charts. Let me know if it works for you or not.
Cheers,
Ian Burgoyne
Melbourne


>From: "Al Taglavore" <altag@xxxxxxxxxx>
>Reply-To: metastock@xxxxxxxxxxxxx
>To: "MetaStock List Group" <metastock@xxxxxxxxxxxxx>
>Subject: system tester help
>Date: Fri, 14 Jan 2000 15:47:43 -0600
>
>Formula gurus:
>
>I am trying to write a system test that will enter (short) if the close is
>less than or equal to the low of the previous period AND the previous
>period was the highest high value of the last 20 days.  The sell short
>signal does not come after the highest high value of the last 20 days.  I
>have written:
>
>C<Ref(L,-1)AND Ref(H,-1)>=(HHV(H,20)).
>
>I would like to exit if the close is higher than the previous day's high or
>on the third day of entry.  I have written:
>
>C> Ref(H,-1)
>I cannot determine how to state the third day of entry.
>
>Where have I failed?
>
>Thank you,
>
>Al Taglavore

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

Attachment Converted: "f:\eudora\attach\CSR.gif"