Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 05:41
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AbrahamR, AndrewAMD), 1,278 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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,729
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,729
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