Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (1 invisible), 692 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
param script #481782
10/30/20 17:55
10/30/20 17:55
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline OP
Senior Member
Grat  Offline OP
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
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

Re: param script [Re: Grat] #481809
11/04/20 10:07
11/04/20 10:07
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline OP
Senior Member
Grat  Offline OP
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
may be this is a better - I need change the name LOG files. Script not work.

[Linked Image]

Attached Files chnam.jpg
Last edited by Grat; 11/04/20 10:07.
Re: param script [Re: Grat] #481812
11/04/20 14:17
11/04/20 14:17
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
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.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1