if( LastValue( Cross( MACD(), 0 ) ) Say( "MACD crossed above zero");

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "Pete" <[email protected]>
To: <[email protected]>
Sent: Monday, January 26, 2009 3:07 PM
Subject: [amibroker] Examples of Say() Command?


>I searched this forum and the online AFL Reference but did not find
> any examples of using this command within a trading system.
> I have been using the AlerIf() function to play a windows sound when
> one of my signals register on the chart. Very symple, one line of
> code, works great.
> But I would like to include the Say() command in this scheme. The idea
> is to have the Say() command actually tell me which entry signal has
> been triggered. Examples:
> Say("M-A-C-D Cross Long");
> Say("M-A-C-D Cross Short");
> The part I don't yet understand is how to get the Say() command to
> activate when the current bar or last bar in range is showing one of
> the signals.
> Thanks for your input.
> 
>  Pete  :-)
> 
> 
> ------------------------------------
> 
> **** IMPORTANT ****
> This group is for the discussion between users only.
> This is *NOT* technical support channel.
> 
> *********************
> TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to 
> SUPPORT {at} amibroker.com
> *********************
> 
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
> 
> For other support material please check also:
> http://www.amibroker.com/support.html
> 
> *********************************
> Yahoo! Groups Links
> 
> 
> 

Reply via email to