Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 10/24/26 01:54
Tradestation missing in table of contents
by AndrewAMD. 10/23/26 14:35
No connection to MT4
by JeyKey II. 10/22/26 15:33
Zorro tutorial ideas?
by mistery. 10/21/26 05:28
Avoid "log\ - delete old files" message
by Martin_HH. 10/20/26 07:23
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (TipmyPip), 7,671 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
JimSimons, julienp, julienper, KelleyAbbey, Yopachi
19246 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,836
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,836
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: 28,142
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,142
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