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

Re: [amibroker] How do you express "N E A R"



PureBytes Links

Trading Reference Links

Hi mroman59,

1) It is up to you, but you might want to consider using a logical operator
like '>' instead of all of the Cross functions. The latter is more
restrictive and, since you AND several together in your Buy condition, it
will be difficult for them all to be true at once. (I got only 11 Buy
signals with your criteria, using 2000 or so stocks, from 3/1/1998 to
3/1/2003, for example) So you might consider something like:

    Buy= Cross(MA10, MA20) AND
    CCI(14)>-150 AND
    V>250000 AND
    C>5 AND
    C<50;

2) Instead of your last two lines, try:

    PlotShapes(Buy*shapeUpArrow,colorGreen ,1);

or:

    PlotShapes(Buy*shapeUpArrow,colorGreen);

if you don't insist that the arrows plot on Layer #1.

-john


----- Original Message ----- 
From: "mroman59" <mroman59@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Tuesday, April 06, 2004 5:06 AM
Subject: [amibroker] Help please - plotting arrows?


Trying to plot arrow but not having any success. Can you help?

Buy= Cross(MA10, MA20) AND
Cross(CCI(14),-150) AND
Cross(V,250000) AND C>5 AND C<50;

Filter= Buy;

AlertIf( Buy, "SOUND C:\\Windows\\Media\\Ding.wav", "Audio alert",
1 );

shape = Buy + shapeUpArrow;
PlotShapes(shape, colorGreen ,1);




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
Yahoo! Groups Links








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 
Yahoo! Groups Links

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

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

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