Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 863 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 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