Gamestudio Links
Zorro Links
Newest Posts
Why Zorro supports up to 72 cores?
by 11honza11. 04/26/24 08:55
M1 Oversampling
by 11honza11. 04/26/24 08:32
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, VoroneTZ, Quad, 1 invisible), 837 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
dataLoad for t8+ files #470875
02/10/18 12:21
02/10/18 12:21
Joined: Feb 2018
Posts: 15
J
jzastrow Offline OP
Newbie
jzastrow  Offline OP
Newbie
J

Joined: Feb 2018
Posts: 15
As dataLoad() allows to specify how many fields to be loaded for an entry I want to add some custom fields after the t8 struct (delta, iv, gamma, etc..).
Is this supposed to work?

Re: dataLoad for t8+ files [Re: jzastrow] #470876
02/10/18 12:42
02/10/18 12:42
Joined: Feb 2018
Posts: 15
J
jzastrow Offline OP
Newbie
jzastrow  Offline OP
Newbie
J

Joined: Feb 2018
Posts: 15
Update. I can load the files, but not use as a t8.

Error 031: Can't load ICE_T4 t8 dataset #1

Maybe I can load these fields as an extra file and use dataVar() to get the data?!

Re: dataLoad for t8+ files [Re: jzastrow] #470877
02/10/18 13:28
02/10/18 13:28
Joined: Feb 2018
Posts: 15
J
jzastrow Offline OP
Newbie
jzastrow  Offline OP
Newbie
J

Joined: Feb 2018
Posts: 15
Update 2: This approach works very well. The t8 fVal contains the index of the matching meta data record. Meta can contain any data e.g. greeks, iv, multiplier.
The only downside is that in live mode the data must be calculated with the contract scripts, but thats fine laugh

Re: dataLoad for t8+ files [Re: jzastrow] #470897
02/12/18 08:55
02/12/18 08:55
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
Alternatively, you can store the extra data in another dataset, and use the ContractRow variable for looking up the extra data of a selected contract in the second dataset.

Re: dataLoad for t8+ files [Re: jcl] #470909
02/12/18 16:39
02/12/18 16:39
Joined: Feb 2018
Posts: 15
J
jzastrow Offline OP
Newbie
jzastrow  Offline OP
Newbie
J

Joined: Feb 2018
Posts: 15
This sounds even better


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1