Gamestudio Links
Zorro Links
Newest Posts
Get BMAP's filename...?
by Firoball
20 minutes 59 seconds ago
bone ang/pos
by 3run
Today at 15:41
Takeprofit and Stoploss
by sdelatorre
Today at 10:54
Save as .wmb
by Emre
Today at 05:57
Connors RSI implementation
by MatPed
Today at 00:37
multiple results graph in multi-asset scripts?
by SBGuy
Yesterday at 21:19
Verbose messages
by Sphin
Yesterday at 20:24
AUM Magazine
Latest Screens
Evonet Beta v1.0 : Online Project Development Template
Lake scene
Forgotten Tales - Demo version
RPG PARTY
Who's Online
13 registered (3run, JRA, alibaba, ChrstphFr, mig, AndrewAMD, MatPed, jyd, krial057, 1 invisible), 477 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
bbn1982, selma, mbullied, Raisinbran, Grodt
17984 Registered Users
Topic Options
Rate This Topic
#471663 - 03/13/18 13:41 external data in trade logic
maurice1973 Offline
Guest

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:

1.how do i call todays column value to incorporate in my logic, for example:
if (todays column value == 100)
enterLong();

2.how 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

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

Chief Engineer

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

Top



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

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