Gamestudio Links
Zorro Links
Newest Posts
Blind Zorro Window
by AndrewAMD. 09/11/26 15:30
Parent/child object
by 3run. 09/11/26 06:21
ZorroGPT
by TipmyPip. 09/09/26 14:35
[MED] Import from FBX (2010) missing!!!
by USER0328. 09/03/26 18:03
Purchase A8 full licence version
by ukgamer. 08/30/26 14:27
Retrieve optimize() variables order (edited)
by NorbertSz. 08/25/26 13:24
Max Number of Strategies in /Strategy folder
by Martin_HH. 08/17/26 07:54
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 3,681 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
speedx, liop, Bauer097, riggi89, shuhari
19233 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,831
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

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

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

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