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

[EquisMetaStock Group] Re: formula help



PureBytes Links

Trading Reference Links


ColA = 1 for your exploration filter is fine.

I would write the ColA code this way:

---8<--------------
SMA1:=Mov(C,7,S);
SMA2:=Mov(C,30,S);

entry:=Cross(C,SMA1)
 AND Cross(SMA1,SMA2)
 AND Alert(WillR(14)<=-80,5);

entry
---8<--------------


And if you want more than two signals in a lifetime, I would define 
the entry this way:

---8<--------------
SMA1:=Mov(C,7,S);
SMA2:=Mov(C,30,S);

entry:=C>SMA1
 AND Cross(SMA1,SMA2)
 AND Alert(WillR(14)<=-80,5);

entry
---8<--------------


jose '-)
http://www.metastocktools.com



--- In equismetastock@xxxxxxxxxxxxxxx, Jack Hemmert <jackhemmert@xxxx> 
wrote:
> 
> Hi all,
> 
> I'm writing my first exploration for Metastock and I
> was hoping someone could take a look and make sure it
> does what I mean it to do. I'm looking to identify
> long entries when the %R descends to -80 or more and
> within 5 days of this trigger, the price closes above
> the 7-day moving average and the 7-day crosses above
> the 30-day. Here's my code:
> 
> Cross(Mov( CLOSE, 7, SIMPLE), Mov( CLOSE, 30, SIMPLE))
> AND Cross( CLOSE, Mov(CLOSE,7,SIMPLE) ) AND
> (BarsSince(WillR( 14 ) <= -80) <= 5)
> 
> If I did this correctly, I assume I will get a 1 in
> column A every time the formula is true. So, in my
> filter, I added "colA = 1". Is this okay?
> 
> Thanks...Jack






------------------------ Yahoo! Groups Sponsor --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/BefplB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/

<*> To unsubscribe from this group, send an email to:
    equismetastock-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/