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

[amibroker] how to code this



PureBytes Links

Trading Reference Links


i want to code this in AB . In metastock i would have used the PREV 
command but i dont thinkthere is one.

VALUE[bar no1 ]  = KONSTANT + ([VALUE'i-1]  * Konstant2)
where i = no of bars that have happened , i.e bars = days .
then i wish to plot the VALUE at each i equalling a bar on chart .

lets say 
Konstant = 2
Konstant2 = 3

value[day 1] = 2+ 0*3 = 2
value[day 2] = 2+ 2*3 = 8
value[day 3] = 2+ 8*3 = 26
value[day 4] = 2+ 26*3 = 74

I know it will use arrays and for loop ..but i have little knowledge 
about making it happen ;-)
thanks
MOZ





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