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

Re: pls F1 me writing this Exploration


  • To: metastock@xxxxxxxxxxxxx
  • Subject: Re: pls F1 me writing this Exploration
  • From: Daniel Martinez <DanM@xxxxxxxxxx>
  • Date: Tue, 4 Jan 2000 17:54:05 -0800
  • In-reply-to: <20000104230211.22619.qmail@xxxxxxxxxxx>

PureBytes Links

Trading Reference Links

I think the ALERT() function becomes true if during ANY, NOT ALL, of the past 20
days C is below its 20 MOV.  The Metastock Help file isn't very clear.  In the
last paragraph, MS Help says their expression has to be true "simultaneously".
However, since their example is an "AND" statement, it must be true
"simultaneously" anyway:

"Using the Alert() Function
The alert() function is used in conjunction with other functions to extend a
true signal for a specified number of periods.  The signal is held true over the
specified number of periods even if another trade is generated.
The following example illustrates the use of the alert() function:
Enter Long: RSI(14) < 30 AND alert(VOLUME > 500,3)
If this were entered as the Enter Long rule, the system would enter a long
position when the RSI was less than 30 and the volume had been greater than 500
at any time over the previous three time periods.  The "VOLUME > 500" condition
holds true over the entire three time periods even if the volume drops below 500
during that three period time span.

If  you removed the alert() function in the above example, both conditions
(i.e., RSI(14) < 30 and VOLUME > 500) would have to be true simultaneously in
order for the Enter Long signal to be generated.  By using the alert() function,
a true condition generated by the "VOLUME > 500" condition is extended over a
three period time span. "

Daniel.


Ian Burgoyne wrote:

> I'm not an expert on writing code but I think you can use the Alert function
> to test your first condition for the specified number of periods (ie.20).
> Something like:
>
> alert(c-mov(c,60,s)<0,20)
>
> Ian Burgoyne
> Melbourne
>
> >From: "wsb3000@xxxxx" <wsb3000@xxxxxxxxx>
> >Reply-To: metastock@xxxxxxxxxxxxx
> >To: <metastock@xxxxxxxxxxxxx>
> >Subject: pls F1me writing this Exploration
> >Date: Tue, 4 Jan 2000 05:24:08 +0300
> >
> >Hi
> >
> >i am trying to use the Explorer to find all stocks with the
> >following:
> >1- c - mov(c,60,s)<0
> >2 Above condition should be in place for 20days
> >
> >I use c - Mov(c,60,s)<0  but how do i write the second?
> >
> >
> >thanks in advance
> >
> >wsb
> >
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com