Gamestudio Links
Zorro Links
Newest Posts
Camera always moves upwards?
by clonman. 11/13/25 14:04
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
ZorroGPT
by TipmyPip. 11/10/25 11:04
Training with the R bridge does not work
by frutza. 11/05/25 00:46
Zorro 2.70
by opm. 10/24/25 03:44
Alpaca Plugin v1.4.0
by TipmyPip. 10/20/25 18:04
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 32,374 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sheliepaley, Blueguy, blobplayintennis, someone2, NotEBspark
19177 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: 98
7
7th_zorro Offline OP
Junior Member
7th_zorro  Offline OP
Junior Member
7

Joined: Oct 2018
Posts: 98
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,809
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,809
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: 98
7
7th_zorro Offline OP
Junior Member
7th_zorro  Offline OP
Junior Member
7

Joined: Oct 2018
Posts: 98
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: 594
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 594
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: 98
7
7th_zorro Offline OP
Junior Member
7th_zorro  Offline OP
Junior Member
7

Joined: Oct 2018
Posts: 98
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,809
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,809
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: 98
7
7th_zorro Offline OP
Junior Member
7th_zorro  Offline OP
Junior Member
7

Joined: Oct 2018
Posts: 98
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,809
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,809
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: 98
7
7th_zorro Offline OP
Junior Member
7th_zorro  Offline OP
Junior Member
7

Joined: Oct 2018
Posts: 98
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,809
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

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