Gamestudio Links
Zorro Links
Newest Posts
How does Zorro handle new strategy/asset?
by jcl
0 seconds ago
Intercept Friday Daily Close
by Dalla
27 minutes 22 seconds ago
Montecarlo statistical mode parameter optimization
by brax
Today at 14:14
New Zorro v1.99.2
by jcl
Today at 14:03
Today at 13:37
What are you working on?
by CocaCola
Today at 02:42
About 1M entities!
by txesmi
Yesterday at 14:16
AUM Magazine
Latest Screens
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Evonet Beta v1.0 : Online Project Development Template
Lake scene
Who's Online
13 registered (AndrewAMD, Dalla, kvm, Realspawn, Hredot, mabro41, jenGs, brax, 3 invisible), 193 Guests and 9 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
Thomas_Thornton, rssflc, mahomed, bondz, Neil_G
18119 Registered Users
Topic Options
Rate This Topic
#471663 - 03/13/18 13:41 external data in trade logic
maurice1973 Offline

Registered: 03/13/18
Posts: 1
hi all, am having some problems with utilising external data, hope someone can help out;

i figured out on this forum how to succesfully parse csv data,
but cannot call it succesfully in my script.

my data consists of dates + 1 column containing a value

string Format = "%Y-%m-%d %H:%M:%S,f";
int RecordsEUR1H = dataParse(1,Format,example.csv);

specifically, my questions are: do i call todays column value to incorporate in my logic, for example:
if (todays column value == 100)
enterLong(); do put the column values in an array/series, so i can calculate a moving average?

i know the function dataFind has to be used, but how?

best, Maurice

#471668 - 03/13/18 18:18 Re: external data in trade logic [Re: maurice1973]
jcl Online

Chief Engineer

Registered: 07/22/00
Posts: 26658
Loc: Frankfurt
Yes, it's dataFind. Look into contract.c: There is the code of dataFromCSV that gets an indicator out of external data.


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at)