Gamestudio Links
Zorro Links
Newest Posts
What are you working on?
by txesmi
23 minutes 41 seconds ago
save you.x in *.txt with ent_next doesen't work :(
by Ezzett
Today at 10:24
Log file - overwrite and/or append
by DdlV
Today at 00:14
c_scan and c_trace / TRIGGER
by Ayumi
Yesterday at 22:57
The Z Systems
by AndrewAMD
Yesterday at 18:08
Always accept detrended result as more realistic?
by jcl
Yesterday at 07:50
Login 0 IG ..
03/15/18 20:50
AUM Magazine
Latest Screens
Forgotten Tales - Demo version
Triton Wing now available on Steam
AckCon'17: Lotter vs The World
Who's Online
14 registered (dmac, DAVIDMORETON, MatPed, painkiller, boatman, 20BN, maurice1973, Ezzett, Kartoffel, Meini, 1 invisible), 502 Guests and 3 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
maurice1973, IMMO_VIE, Enric, rhodes386, Igz
17916 Registered Users
Topic Options
Rate This Topic
#471663 - 03/13/18 13:41 external data in trade logic
maurice1973 Online

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 Offline

Chief Engineer

Registered: 07/22/00
Posts: 26261
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 | resources | magazine | manual | support faq | bugs

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