Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by mistery. 12/05/26 12:48
contractUpdate() is filtering if >2 rows
by mistery. 12/04/26 19:03
Removing outliers from files
by AndrewAMD. 12/02/26 15:26
SGT_FW
by Aku_Aku. 11/30/26 08:19
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (AndrewAMD), 2,576 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
contractUpdate() is filtering if >2 rows #489783
11/09/26 12:06
11/09/26 12:06
Joined: Sep 2026
Posts: 12
Spain
M
mistery Offline OP
Newbie
mistery  Offline OP
Newbie
M

Joined: Sep 2026
Posts: 12
Spain
I was getting mad about this, but for any reason if you only make only 1 Row, contractUpdate() is not working.
Sure is my fault, but why i can not read about this in the documentation?

#include<contract.c>

void main(){

int Today = (int)wdate(0);

int j;
int k;
k=2;
//k=1; // uncomment this line and no contract will be updated
CONTRACT* C;
dataNew(1,0,9);

for(j = 0; j < k; j++)
{
C = dataAppendRow(1,9);
C->time = wdate(0);
C->Expiry = Today+1;
C->fStrike = 100;
C->fUnl = 100.21;
C->Type = CALL;
C->fAsk = 19.99;
C->fBid = 17.16;
}

contractUpdate(Asset,1,CALL|PUT);
contractPrintChain (); // *.csv in Data folder will be empty if k<2

}

Last edited by mistery; 11/09/26 12:30.
Re: contractUpdate() is filtering if >2 rows [Re: mistery] #489810
Yesterday at 19:03
Yesterday at 19:03
Joined: Sep 2026
Posts: 12
Spain
M
mistery Offline OP
Newbie
mistery  Offline OP
Newbie
M

Joined: Sep 2026
Posts: 12
Spain
Still coding this and adding some more features it will lead to a new optionlib.c, after a lot of hours i think zorro is the right choice for me. A lot of work to do mimic some features of my own backtester (no autotrade capabilities). Still learning from zorro, thanks to the creators.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1