Re: [amibroker] Sum the values in a For Loop

 

Paul,


Apologies if I have misunderstood your question.. From your wording it's hard to decide whether to want the solution for SUM in AFL or you are _actually_ looking for a loop.

Note that in most cases you won't need to make a loop as there are plenty AFL function do this 'at once' for the whole array. There is a paradigm shift needed in thinking.

See SUM(Array, periods) where each element of the resulting ARRAY will be the sum of the preceding lookback periods (including the given bar). 
Also read "Understanding how AFL works" very carefully.
 

__._,_.___

Posted by: gabor.s.kuti@gmail.com
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (5)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/


.

__,_._,___

Related Posts


EmoticonEmoticon

:)
:(
=(
^_^
:D
=D
=)D
|o|
@@,
;)
:-bd
:-d
:p
:ng
:lv