Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (SBGuy, dr_panther, Ayumi, Quad, AndrewAMD), 920 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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,726
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,726
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: 294
Netherlands
G
Grant Offline OP
Member
Grant  Offline OP
Member
G

Joined: Aug 2017
Posts: 294
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,726
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,726
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: 784
Z
Zheka Offline
User
Zheka  Offline
User
Z

Joined: Jul 2017
Posts: 784
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,726
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,726
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: 294
Netherlands
G
Grant Offline OP
Member
Grant  Offline OP
Member
G

Joined: Aug 2017
Posts: 294
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: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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