Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 12,709 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Impossible to call stored AlgoVar2 variables. [Re: jcl] #476726
03/26/19 13:11
03/26/19 13:11
Joined: Feb 2017
Posts: 1,806
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,806
Chicago
Why not have a separate SaveMode flag, like SV_ALGOVARS2?

Re: Impossible to call stored AlgoVar2 variables. [Re: AndrewAMD] #476727
03/26/19 13:24
03/26/19 13:24
Joined: Aug 2017
Posts: 311
Netherlands
G
Grant Offline OP
Senior Member
Grant  Offline OP
Senior Member
G

Joined: Aug 2017
Posts: 311
Netherlands
[b][/b]
Originally Posted By: AndrewAMD
Why not have a separate SaveMode flag, like SV_ALGOVARS2?


Or increase the number of AlgoVar variables. 8 is pretty limited for a multi-portfolio model. Anyway, it's not a big deal since there are multiple ways to store values.

Re: Impossible to call stored AlgoVar2 variables. [Re: Grant] #476728
03/26/19 13:25
03/26/19 13:25
Joined: Feb 2017
Posts: 1,806
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,806
Chicago
Originally Posted By: AndrewAMD
Why not have a separate SaveMode flag, like SV_ALGOVARS2?

This would address this:
Quote:
I believe the orginal intention was to leave AlgoVars2 initialized to zero so that they can be used as counters or similar.

Last edited by AndrewAMD; 03/26/19 14:22.
Re: Impossible to call stored AlgoVar2 variables. [Re: AndrewAMD] #476729
03/26/19 14:01
03/26/19 14:01
Joined: Jul 2017
Posts: 787
Z
Zheka Offline
User
Zheka  Offline
User
Z

Joined: Jul 2017
Posts: 787
A Zorro version in use exactly one year ago saved/loaded all AlgoVars.
My script relied on this for state recovery, so I spent enough time to verify it does work.

It would be great if this came back and worked as expected.

Re: Impossible to call stored AlgoVar2 variables. [Re: Zheka] #476730
03/26/19 14:52
03/26/19 14:52
Joined: Feb 2015
Posts: 652
Milano, Italy
M
MatPed Offline
User
MatPed  Offline
User
M

Joined: Feb 2015
Posts: 652
Milano, Italy
nooooooooooo I can only store 7 trade for each Algo/Aset. In testing obviously this fact did not emerged...
frown

Re: Impossible to call stored AlgoVar2 variables. [Re: Grant] #476731
03/26/19 19:32
03/26/19 19:32
Joined: Feb 2017
Posts: 1,806
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,806
Chicago
Originally Posted By: Grant
I thought that there might be a limit to the number of variables a .trd file can store, so I saved the AlgoVar2 vars to a second file, but no luck.
You can save any kind of binary data to disk, by the way. It's not terribly difficult.

Re: Impossible to call stored AlgoVar2 variables. [Re: AndrewAMD] #476732
03/26/19 19:38
03/26/19 19:38
Joined: Aug 2017
Posts: 311
Netherlands
G
Grant Offline OP
Senior Member
Grant  Offline OP
Senior Member
G

Joined: Aug 2017
Posts: 311
Netherlands
Originally Posted By: AndrewAMD
You can save any kind of binary data to disk, by the way. It's not terribly difficult.


Agreed and I already found a solution in the meantime. The AlgoVar feature however is a very simple way to store and call values between Zorro sessions.

Re: Impossible to call stored AlgoVar2 variables. [Re: Grant] #476733
03/26/19 22:50
03/26/19 22:50
Joined: Feb 2015
Posts: 652
Milano, Italy
M
MatPed Offline
User
MatPed  Offline
User
M

Joined: Feb 2015
Posts: 652
Milano, Italy
Originally Posted By: Grant
Originally Posted By: AndrewAMD
You can save any kind of binary data to disk, by the way. It's not terribly difficult.


Agreed and I already found a solution in the meantime. The AlgoVar feature however is a very simple way to store and call values between Zorro sessions.


Same situation for me. Misunderstood what reported in the manual. Now I have to switch to save data on file and is not trivial...

Re: Impossible to call stored AlgoVar2 variables. [Re: MatPed] #476740
03/27/19 10:21
03/27/19 10:21
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Saving the Algovars2 together with the Algovars would break systems that are using them, so we can't do that directly. But a flag SV_ALGOVARS2 is no problem. Even better would be a future feature to save certain series or memory areas.

Re: Impossible to call stored AlgoVar2 variables. [Re: jcl] #476742
03/27/19 13:57
03/27/19 13:57
Joined: Feb 2015
Posts: 652
Milano, Italy
M
MatPed Offline
User
MatPed  Offline
User
M

Joined: Feb 2015
Posts: 652
Milano, Italy
Originally Posted By: jcl
Saving the Algovars2 together with the Algovars would break systems that are using them, so we can't do that directly. But a flag SV_ALGOVARS2 is no problem. Even better would be a future feature to save certain series or memory areas.


Good news.
I am using Algovar& Algovar2 to store and save closed trades results for each Algo/Asset combinations when I have to stop the system for maintenance or improvements.

Ciao

Page 2 of 2 1 2

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1