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

[amibroker] Help with Simple Counter



PureBytes Links

Trading Reference Links


I'm new at this and I would like simple code to count the results of 
an array for a variable number of bars back without using the REF 
function to add them all up.

Example:

 TC = Count + Ref(Count, -1) + Ref (Count,-2) + Ref (Count, -3) + 
Ref (Count,-4);

Can anyone help me with the code to simply add up the results of any 
array for "N" number of bars back?

Thank you for your help.

Mike





------------------------ Yahoo! Groups Sponsor --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/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/