How to sum the close price of all symbols in a certain day (i.e. today)?

We have "n" symbols. Do we can sum close price of all symbols in certain today ?

the straightforward way is to loop all these 'n' symbols and then use Foreign function

Please explain more for me. Thank you

Hello

I don’t know what you are trying to do, but sounds to me you try to do something like AddToComposite

https://www.amibroker.com/guide/afl/addtocomposite.html

https://www.amibroker.com/guide/afl/staticvaradd.html

https://forum.amibroker.com/search?q=AddToComposite

2 Likes