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
2 registered members (degenerate_762, Nymphodora), 1,012 guests, and 3 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
Clear Zorro data from memory #483418
05/28/21 13:55
05/28/21 13:55
Joined: Apr 2021
Posts: 41
Slovakia
T
tomna1993 Offline OP
Newbie
tomna1993  Offline OP
Newbie
T

Joined: Apr 2021
Posts: 41
Slovakia
Hi,

Is there a way to clear RAM at the end of the test? I have 32GB RAM and the second time I run the test it shows the memory fragmented or unavailable error message. 70% of my ram is free and Zorro still gives that message. Hope there is a workaround because it's a little bit uncomfortable to close and open Zorro after each tests.

Re: Clear Zorro data from memory [Re: tomna1993] #483419
05/28/21 14:20
05/28/21 14:20
Joined: Feb 2017
Posts: 1,718
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,718
Chicago
If you need to run many known tests, you can batch script them.

Re: Clear Zorro data from memory [Re: AndrewAMD] #483420
05/28/21 14:38
05/28/21 14:38
Joined: Apr 2021
Posts: 41
Slovakia
T
tomna1993 Offline OP
Newbie
tomna1993  Offline OP
Newbie
T

Joined: Apr 2021
Posts: 41
Slovakia
Can I change asset and timeframe with batch script?

Re: Clear Zorro data from memory [Re: tomna1993] #483421
05/28/21 15:13
05/28/21 15:13
Joined: Feb 2017
Posts: 1,718
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,718
Chicago
Absolutely. You can even change BarPeriod, since each Zorro instance it is its own process and has its own memory allocations.

Re: Clear Zorro data from memory [Re: AndrewAMD] #483422
05/28/21 15:51
05/28/21 15:51
Joined: Apr 2021
Posts: 41
Slovakia
T
tomna1993 Offline OP
Newbie
tomna1993  Offline OP
Newbie
T

Joined: Apr 2021
Posts: 41
Slovakia
Looks like I have to learn batch scripting. cool
Is there any howto or documentation for controlling Zorro with batch script?

Re: Clear Zorro data from memory [Re: tomna1993] #483424
05/28/21 18:38
05/28/21 18:38
Joined: Feb 2017
Posts: 1,718
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,718
Chicago
There are many approaches.

Windows batch files (generic):
https://www.tutorialspoint.com/batch_script/index.htm

You can even write your batch file in Python, or even a Zorro script.

You'll definitely need to know how the Zorro command line works:
https://zorro-project.com/manual/en/command.htm

But the best example I've ever seen of batch scripting can be seen in the Trend Experiment on the Financial Hacker blog (download from "Scripts 2015" in the sidebar):
https://financial-hacker.com/trend-and-exploiting-it/
https://financial-hacker.com/scripts2015.zip

Re: Clear Zorro data from memory [Re: AndrewAMD] #483425
05/28/21 20:16
05/28/21 20:16
Joined: Apr 2021
Posts: 41
Slovakia
T
tomna1993 Offline OP
Newbie
tomna1993  Offline OP
Newbie
T

Joined: Apr 2021
Posts: 41
Slovakia
Thank you Andrew! It works flawlessly! Have a nice day!


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1