|
2 registered members (Akow, tomaslolo),
1,536
guests, and 12
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Impossible to call stored AlgoVar2 variables.
[Re: AndrewAMD]
#476727
03/26/19 13:24
03/26/19 13:24
|
Joined: Aug 2017
Posts: 296 Netherlands
Grant
OP
Member
|
OP
Member
Joined: Aug 2017
Posts: 296
Netherlands
|
[b][/b] 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,731 Chicago
AndrewAMD
Serious User
|
Serious User
Joined: Feb 2017
Posts: 1,731
Chicago
|
Why not have a separate SaveMode flag, like SV_ALGOVARS2? This would address this: 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: Grant]
#476731
03/26/19 19:32
03/26/19 19:32
|
Joined: Feb 2017
Posts: 1,731 Chicago
AndrewAMD
Serious User
|
Serious User
Joined: Feb 2017
Posts: 1,731
Chicago
|
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: 296 Netherlands
Grant
OP
Member
|
OP
Member
Joined: Aug 2017
Posts: 296
Netherlands
|
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
MatPed
User
|
User
Joined: Feb 2015
Posts: 652
Milano, Italy
|
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: jcl]
#476742
03/27/19 13:57
03/27/19 13:57
|
Joined: Feb 2015
Posts: 652 Milano, Italy
MatPed
User
|
User
Joined: Feb 2015
Posts: 652
Milano, Italy
|
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
|
|
|
|
|
|