Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Quad), 748 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Can't change script name (log file name) #485406
03/08/22 00:06
03/08/22 00:06
Joined: Oct 2018
Posts: 94
7
7th_zorro Offline OP
Junior Member
7th_zorro  Offline OP
Junior Member
7

Joined: Oct 2018
Posts: 94
The manual say can change script name using Script = "MyName".

But the output result file (performance report generated in log folder) doesn't changed properly.

How to change name of the generated result file?

Re: Can't change script name (log file name) [Re: 7th_zorro] #485407
03/08/22 00:23
03/08/22 00:23
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
Did you set Script before anything is printed to the log?
Did you make sure to not use temporary stings? For example, strf() is no good.

Re: Can't change script name (log file name) [Re: 7th_zorro] #485408
03/08/22 00:40
03/08/22 00:40
Joined: Oct 2018
Posts: 94
7
7th_zorro Offline OP
Junior Member
7th_zorro  Offline OP
Junior Member
7

Joined: Oct 2018
Posts: 94
I change Script when if(Init) in run function.

I check my own output file name changed properly.

I run zorro using command line with "-i number".

Re: Can't change script name (log file name) [Re: 7th_zorro] #485422
03/09/22 11:30
03/09/22 11:30
Joined: Apr 2008
Posts: 586
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 586
Austria
For changing the name of your script, rename it in Windows explorer.

The Script string is for parameter data. Not for renaming scripts or log files.

https://zorro-project.com/manual/en/script.htm

Re: Can't change script name (log file name) [Re: 7th_zorro] #485433
03/10/22 01:31
03/10/22 01:31
Joined: Oct 2018
Posts: 94
7
7th_zorro Offline OP
Junior Member
7th_zorro  Offline OP
Junior Member
7

Joined: Oct 2018
Posts: 94
I need functionality to change the name of output files. (Performance report, log, TESTTRADE)

Re: Can't change script name (log file name) [Re: 7th_zorro] #485434
03/10/22 03:35
03/10/22 03:35
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
For this, you can use the design pattern where most of your code is in a header file, and then make a *.c file that includes the header and establishes the file name.

Edit: To be clear, the *.c file will have your designated script name.

Last edited by AndrewAMD; 03/10/22 12:56.
Re: Can't change script name (log file name) [Re: 7th_zorro] #485435
03/10/22 04:26
03/10/22 04:26
Joined: Oct 2018
Posts: 94
7
7th_zorro Offline OP
Junior Member
7th_zorro  Offline OP
Junior Member
7

Joined: Oct 2018
Posts: 94
That files are generated by zorro, I can't touch.

Re: Can't change script name (log file name) [Re: 7th_zorro] #485440
03/10/22 11:44
03/10/22 11:44
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
Quote
That files are generated by zorro, I can't touch.
??

Re: Can't change script name (log file name) [Re: AndrewAMD] #485448
03/10/22 22:58
03/10/22 22:58
Joined: Oct 2018
Posts: 94
7
7th_zorro Offline OP
Junior Member
7th_zorro  Offline OP
Junior Member
7

Joined: Oct 2018
Posts: 94
The files generated by zorro in log folder when you push test button.

Re: Can't change script name (log file name) [Re: 7th_zorro] #485449
03/11/22 04:32
03/11/22 04:32
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
In my solution, the script developer designates the strategy file name, solving the problem. Thus, the developer is 100% responsible for all data/log file names.

For an example of this application, refer to the Trend Experiment in the Financial Hacker blog.

Page 1 of 2 1 2

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1