Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, TipmyPip, Edgar_Herrera), 804 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Additional loop algo/asset #478469
10/24/19 22:21
10/24/19 22:21
Joined: Feb 2015
Posts: 652
Milano, Italy
M
MatPed Offline OP
User
MatPed  Offline OP
User
M

Joined: Feb 2015
Posts: 652
Milano, Italy
Hi,
Outside the main Algo/Asset loop for performance reason I'd like to perform, once a day, certain calculation going through all the Algo/Asset loop.
I was looking for Enumeration loops ( for(all_algos) { ... } and for(used_assets) { ... } ), but, accordingly to the manual, they can not be nested.
Which is the recommended way to code such loop?

Thank you in advance

Re: Additional loop algo/asset [Re: MatPed] #478473
10/25/19 09:18
10/25/19 09:18
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
Use a for(all_algos) loop and a 'normal' asset loop, like this:

for(N=0; Assets[N]; N++) { asset(Assets[N]); ... }


Re: Additional loop algo/asset [Re: MatPed] #478474
10/25/19 10:19
10/25/19 10:19
Joined: Feb 2015
Posts: 652
Milano, Italy
M
MatPed Offline OP
User
MatPed  Offline OP
User
M

Joined: Feb 2015
Posts: 652
Milano, Italy
So only the macro cannot be nested usual methods works. Thank you


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1