Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, rki), 390 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Change Logfile in train mode #482410
02/02/21 12:03
02/02/21 12:03
Joined: Aug 2020
Posts: 59
London
Neb Offline OP
Junior Member
Neb  Offline OP
Junior Member

Joined: Aug 2020
Posts: 59
London
Hi all,

Is it possible to change logfile name from this format:

Log\[Scriptname]_train.log into something like this:

Log\[Scriptname][Asset][BarPeriod]_train.log ???

I am asking because generating this batches and need to keep diff results for diff runs.

c:\users\zorro\zorro.exe -h -train KDPrcntRanker.c -i 20120101 -i 20150101 -i 1440 -a USOil
c:\users\zorro\zorro.exe -h -train KDPrcntRanker.c -i 20120101 -i 20150101 -i 1440 -a GBP/USD
c:\users\zorro\zorro.exe -h -train KDPrcntRanker.c -i 20120101 -i 20150101 -i 1440 -a EUR/USD
c:\users\zorro\zorro.exe -h -train KDPrcntRanker.c -i 20120101 -i 20150101 -i 1440 -a USD/CAD

I can do
copy C:\Users\Zorro\Log\KDPrcntRanker_train.log C:\Users\Zorro\Log\KDPrcntRanker_USOIL_1440_train.log

but will be nicer if possibility to change logfile exists from Zorro itself ?

Thanks,

Neb

Re: Change Logfile in train mode [Re: Neb] #482412
02/02/21 12:28
02/02/21 12:28
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline
Senior Member
Grat  Offline
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
log file is not possible change - i want this also frown

Re: Change Logfile in train mode [Re: Grat] #482413
02/02/21 12:48
02/02/21 12:48
Joined: Aug 2020
Posts: 59
London
Neb Offline OP
Junior Member
Neb  Offline OP
Junior Member

Joined: Aug 2020
Posts: 59
London
Should we ask for a new feature in a forum ? laugh

Re: Change Logfile in train mode [Re: Neb] #482414
02/02/21 13:45
02/02/21 13:45
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline
Senior Member
Grat  Offline
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
may be try this ( modify for LOG file ):

Code
int mergeAdv(){
    char name1[40],name2[40],name3[40],name4[40];
    char cOut[40];
    
    sprintf(name1,"Data\\1_%s_%s.c",cSystem,strx(Asset,"/",""));
    sprintf(name2,"Data\\2_%s_%s.c",cSystem,strx(Asset,"/",""));
    sprintf(name3,"Data\\3_%s_%s.c",cSystem,strx(Asset,"/",""));
    sprintf(name4,"Data\\4_%s_%s.c",cSystem,strx(Asset,"/",""));
    sprintf(cOut,"Data\\%s_%s.c",cSystem,strx(Asset,"/",""));

    printf("\nSave from %s to %s",name1,cOut);

    if(!file_date(name1)) 
        return 0; // file does not exist

    if(!file_copy(cOut,name4))
        return 0;
    if(!file_append(cOut,file_content(name3))) 
        return 0;
    if(!file_append(cOut,file_content(name2))) 
        return 0;
    if(!file_append(cOut,file_content(name1))) 
        return 0;
  return 1;
}

    if (Train)
    if (is(EXITRUN) )
        mergeAdv();

Re: Change Logfile in train mode [Re: Neb] #482421
02/03/21 20:08
02/03/21 20:08
Joined: Aug 2020
Posts: 59
London
Neb Offline OP
Junior Member
Neb  Offline OP
Junior Member

Joined: Aug 2020
Posts: 59
London

Thanks @Grat!

Neb


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1