param script

Posted By: Grat

param script - 10/30/20 17:55

Hi,

I have in code this:
Code
    string incName=strf("Strategy\\bt%s.ini",strx(Asset,"/",""));

    printf("\nLOAD ini from: %s",incName);
    
    string setup = file_content(incName);
    
    string c = strtext(setup,"cSystem","WRONG");
    
    strcpy(cSystem,c);
    printf("\nSystem: %s",cSystem);


Script = cSystem;


for the store param and advise work OK.
I run more instance Zorro with this code, different symbols. All LOG files have only name the script, not symbol. frown

How to set my own name LOG file? The same problems is with "scriptname".htm and _pnl.csv

Thank's
Posted By: Grat

Re: param script - 11/04/20 10:07

may be this is a better - I need change the name LOG files. Script not work.

[Linked Image]


Attached picture chnam.jpg
Posted By: jcl

Re: param script - 11/04/20 14:17

AFAIK the HTM name cannot be changed, but you can store it in a different directory. When you really need a different name, you can use the tock() function to copy the .htm file to a file with the desired name.
© 2024 lite-C Forums