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

RE: [amibroker] Looking to filter for negative MACD but rising



PureBytes Links

Trading Reference Links

To avoid typing errors and omissions, try defining variables that you're
going to reuse-e.g.,
M = MACD (); My = Ref( MACD (), -1 );
Mlt0 =  M < 0;
Mup = M > My;
Filter = Mlt0 AND Mup;
AddColumn( Close, "Close", 1.4 );
AddColumn( M, "MACD", 1.4 );
AddColumn( My,"My", 1.4);

Bob

-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]On Behalf
Of james8992
Sent: Monday, February 13, 2006 7:13 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Looking to filter for negative MACD but rising

I am brand new to Amibroker so I have just started my long journey of
learning AFL, but am looking forward to the challenge.

In explorer I want it to filter all MACD that is less then 0 AND MACD
> then the previous day.  So I would end up with negative MACD but the
indicator is increasing.  Bellow is what I have so far and it
obviously is erroring out on me.  Any help would be appreciated.

Cond1 = MACD () < 0;
Cond2 = MACD () > Ref( MACD (), -1 );
Filter = Cond1 AND Cond2;
AddColumn( Close, "Close", 1.4 );
AddColumn( MACD (), "MACD", 1.4 );
AddColumn( MACD (), -1 ), 1.4;









Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html


Yahoo! Groups Links








------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.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/