Gamestudio Links
Zorro Links
Newest Posts
Why Zorro supports up to 72 cores?
by 11honza11. 04/26/24 08:55
M1 Oversampling
by 11honza11. 04/26/24 08:32
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (VoroneTZ, Quad, EternallyCurious, 1 invisible), 828 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 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,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

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

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

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