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

[amibroker] Re: peak exploration help needed



PureBytes Links

Trading Reference Links

Hi,

To answer your question:

AddColumn( Peak(Close,1,1), "Peak" );
AddColumn( Trough(Close,1,1), "Trough" );

However, please be aware that the values you see today may be 
different when you run it again tomorrow. Peak and Trough look into 
the future, meaning that future values can change past values. Your 
buy and sell accuracy will never be able to be reproduced in live 
trading.

Refer to the following formula in the AFL library for an example of 
how to delay buy/sell until the signals would *actually* be seen in 
live trading:

http://www.amibroker.com/library/detail.php?id=353

Mike

--- In amibroker@xxxxxxxxxxxxxxx, "mahest72" <mahest72@xxx> wrote:
>
> i have made simple afl 
> Filter =1;
> Buy= C>Peak(Close,1,1); 
> Sell= C <Trough(Close,1,1); 
> AddColumn( Close, "Close" );
> AddColumn( V, "Volume", 1);
> 
> but i dont know how to addcolumn to list peak and trough.can anyone 
> help me out
> 
> regards
> mahesh
>



------------------------------------

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 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

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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/