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

[amibroker] Basic programming question



PureBytes Links

Trading Reference Links


Hi,

I am on trial and needed some help with the following, I want to 
program a buy when value of a variable(DD) is greater than X(where X 
is a fixed value in number). DD is calculated as closing price of 
yesterday divided by Price of daybefore yesterday.

SO:

DD=price of yesterday/Price of day before yesterday.
Buy if DD > X

How can I write this function in AFL?

Many thanks

Rizwan






------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

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/