Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 873 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 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,731
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,731
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,731
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,731
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,731
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,731
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