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

[amibroker] Re: Simple formula question - to Jayson



PureBytes Links

Trading Reference Links

That worked fine, however if i wanted to say "ONLY if the actual 
crossover (the 15 over 35) occured UNDERNEATH the 150 MA" that is 
where I am stumped.

The formula looks like it says now " williams%R is less than the 150 
MA and 15 crossover 35 MA"

writing in if the crossover occured either under or over the 150 MA 
is my problem. 

Any thoughts ?

jmb 


--- In amibroker@xxxxxxxxxxxxxxx, "Jayson" <jcasavant@xxxx> wrote:
> No it works the same. try something like Y=williams%r; then just 
replace C
> with Y
> 
> Regards,
> Jayson
> -----Original Message-----
> From: jmbruegge [mailto:jmbruegge@x...]
> Sent: Tuesday, November 25, 2003 11:32 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Re: Simple formula question - to Jayson
> 
> 
> Jayson - thanks-
> 
> I forgot to tell you this, I am using the Williams%R indicator as my
> model and not a simple closing price moving average. Will that make 
a
> difference in telling the signal to look for the williams%R moving
> averages versus the closing price ??
> 
> cheers - jmb
> 
> 
> 
> amibroker@xxxxxxxxxxxxxxx, "Jayson" <jcasavant@xxxx> wrote:
> > Jmb,
> > try...
> > X=c<ma(c,150) AND cross(ma(c,15),ma(c,35));
> >
> > Regards,
> > Jayson
> > -----Original Message-----
> > From: jmbruegge [mailto:jmbruegge@x...]
> > Sent: Tuesday, November 25, 2003 10:06 AM
> > To: amibroker@xxxxxxxxxxxxxxx
> > Subject: [amibroker] Simple formula question
> >
> >
> > I am trying to write a simple formula for the following and have
> some
> > of it written but am stuck near the end -
> >
> > "Buy only if the 15 day MA crosses above the 35 day MA and the
> > crossover occurs below the 150 day moving average"
> >
> > here is what I have - "Buy=cover=cross(graph8,graph9)________"
> >
> > graph 8 and 9 are the 15 and 35 day MA.
> >
> > How can I write out the end "and the crossover occurs below the 
150
> > day MA" ?
> >
> > Any help appreciated ??
> >
> > cheers - jmb
> >
> >
> >       Yahoo! Groups Sponsor
> >             ADVERTISEMENT
> >
> >
> >
> >
> > Send BUG REPORTS to bugs@xxxx
> > Send SUGGESTIONS to suggest@xxxx
> > -----------------------------------------
> > Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> > (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> > --------------------------------------------
> > Check group FAQ at:
> > http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> >
> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service.
> 
> 
>       Yahoo! Groups Sponsor
>             ADVERTISEMENT
> 
> 
> 
> 
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> 
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

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