Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by M_D. 04/26/24 20:22
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 818 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
#include by symbol #480867
07/20/20 12:03
07/20/20 12:03
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,

is a possible this construct?

#include strf("to%s.h",strx(Asset,"/",""))

thanks Milan

Re: #include by symbol [Re: Grat] #480868
07/20/20 12:49
07/20/20 12:49
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
You cannot run a function in the preprocessor because the function is not available at compile time. That's very illegal.

Re: #include by symbol [Re: Grat] #480870
07/21/20 05:37
07/21/20 05:37
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
Thanks. I trying other - read param from ini file. But not working this:

[ini file]
cSystem = "AlfaFF_01_"

[zorro script - OK]
cSystem = strtext(setup,"cSystem","WRONG");
printf("\n%s",cSystem); // OK, show the value from INI file

[zorro script - NOT OK]
void run(){
loadIniValue();
Script = cSystem; // this not "AlfaFF_01_
....
}
My question, is a possible use the "Script" in the variable?

Quote

Test: betaGen EUR/USD 2020
Assets Assets4
Error 062: Can't open EURUSD_EURUSD.c (rt:2)
Error 044: Data\EURUSD_EURUSD.c not trained
Error 047: No bars to plot


Error 62 - is correct, because data is under name AlfaFF_01__EURUSD.c not the EURUSD_EURUSD.c
Don't use the Script value - may be must be correct during the compilation?


Last edited by Grat; 07/21/20 05:42.
Re: #include by symbol [Re: Grat] #480872
07/21/20 05:57
07/21/20 05:57
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
You can set the Script variable, but with a normal string, not with a temporary string.

Re: #include by symbol [Re: Grat] #480874
07/21/20 06:13
07/21/20 06:13
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
Thanks, work perfect. I every time forget the temporary string laugh

Last edited by Grat; 07/21/20 06:18.

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1