Gamestudio Links
Zorro Links
Newest Posts
Z9 getting Error 058
by madpower2000. 07/22/26 14:01
ZorroGPT
by TipmyPip. 07/21/26 17:54
New Zorro version 3.11
by jcl. 07/21/26 13:42
Lapsa's very own thread
by Lapsa. 07/18/26 13:40
Purchase A8 full licence version
by ukgamer. 07/17/26 05:52
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (1 invisible), 2,890 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Ephraim, Student_64151
19223 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
"wait" command is not working when calling "contractVal()" #481649
10/12/20 13:16
10/12/20 13:16
Joined: Sep 2020
Posts: 22
Z
zzy Offline OP
Newbie
zzy  Offline OP
Newbie
Z

Joined: Sep 2020
Posts: 22
Dear developers,

It seems that "wait" command is not working when calling "contractVal" in the script. I am not sure if this is a bug or not.

I got this results by using the following script (the elapsed time should be about 4 seconds, but here is only about 0):
==================
z_PayOff compiling.................... ok

Start
Time Elapsed: 0.002 seconds

Finish
==================


Here is the test script generated based on the "PayOff.c" script in Strategy folder:
==================
#include <contract.c>

void main()
{
printf("\nStart");
CONTRACT C;
contractVal(&C,C.fUnl,0.15,0.01,0.01);
var Time = timer();
wait(4000);
printf("\nTime Elapsed: %.3f seconds",(timer()-Time)/1000);
quit("\nFinish");
}
==================

Re: "wait" command is not working when calling "contractVal()" [Re: zzy] #481650
10/12/20 16:16
10/12/20 16:16
Joined: Jul 2000
Posts: 28,128
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,128
Frankfurt
I cannot confirm a bug with wait, but you're calling contractVal with an unitialized struct. You got probably a crash in the R library.

Re: "wait" command is not working when calling "contractVal()" [Re: jcl] #481651
10/13/20 08:13
10/13/20 08:13
Joined: Sep 2020
Posts: 22
Z
zzy Offline OP
Newbie
zzy  Offline OP
Newbie
Z

Joined: Sep 2020
Posts: 22
You are right. "RQuantLib not installed". I installed the package and now it is working properly! Thanks a lot.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1