Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (AndrewAMD, TipmyPip, VoroneTZ, Quad, 1 invisible), 688 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 4 of 7 1 2 3 4 5 6 7
Re: New Zorro version 2.40.2 [Re: jcl] #483862
08/06/21 09:55
08/06/21 09:55
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
Hopefully a. Otherwise you had a problem.

Re: New Zorro version 2.40.2 [Re: jcl] #483866
08/06/21 15:34
08/06/21 15:34
Joined: May 2018
Posts: 134
S
SBGuy Offline
Member
SBGuy  Offline
Member
S

Joined: May 2018
Posts: 134
Interesting. I was hoping for (b) because that's how it works in 2.35 where all the timestamps for tick/tock/run are the same.

Here's another log with priceClose(0) displayed.

As you can see, Bar 976 tick/TOCK has a timestamp of 1430, and yet the priceClose(0) of 3753.72 is actually from the end of Bar 976. This means regardless of timestamp tick/tock is getting prices at the end of Bar 976, which is 1432.

If you agree that this is the correct behavior, then I would submit that contactUpdate inside of tock should ALSO pull the contract chain at 1432, as options prices are mathematically linked to the UL price.

Imagine the BarPeriod=60, the UL price and corresponding options chain, inside tock, will be 1 hour apart!!! That's a big problem.

There was not a problem in 2.35 and prior versions.

Thanks.

Code

[2058] Bar[975] tick -- priceClose()[3707.86] [SPX] LastMonth[1] RunMonth[1] NewMonth[0]... 
[2058] Bar[975] TOCK -- priceClose()[3707.86] [SPX] LastMonth[1] RunMonth[1] NewMonth[0]... 
[975: Mon 21-02-01 14:30] 3727.72/3727.72\3703.61/3707.86 -0.01
[1430] Bar[975] run() -- price=3707.86

[1430] Bar[976] tick -- priceClose()[3753.72] [SPX] LastMonth[1] RunMonth[2] NewMonth[1]... 
[1430] Bar[976] TOCK -- priceClose()[3753.72] [SPX] LastMonth[1] RunMonth[2] NewMonth[1]... USE NEW T8: C:\Zorro\History\SPX-Options\\SPX_202102_m1.t8
[976: Mon 21-02-01 14:32] 3751.48/3753.72\3751.48/3753.72 -0.01
[1432] Bar[976] run() -- price=3753.72



Re: New Zorro version 2.40.2 [Re: jcl] #483868
08/06/21 16:59
08/06/21 16:59
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
Ok, I understand the problem with the close price. Since you are not using TICKS mode, the only available close price is the close of the bar. More correct would be returning the bar open price instead. But priceClose returning an open price would be somewhat inconsistent.

We'll think about a solution.

Re: New Zorro version 2.40.2 [Re: jcl] #483869
08/06/21 17:58
08/06/21 17:58
Joined: May 2018
Posts: 134
S
SBGuy Offline
Member
SBGuy  Offline
Member
S

Joined: May 2018
Posts: 134
Thank you for looking into this.

Also, take a look at TMF timing as well, and the contract prices available to it.

Re: New Zorro version 2.40.3 [Re: jcl] #483870
08/07/21 06:00
08/07/21 06:00
Joined: Oct 2018
Posts: 93
7
7th_zorro Offline
Junior Member
7th_zorro  Offline
Junior Member
7

Joined: Oct 2018
Posts: 93
I update version 2.35 to 2.40.3.
I used same back test data, but process differently.
Plotting .t6 file is ok, but when backtesting it process differently.
I attach capture image, price data looks ok but bactesting result show wrong chart. also cause wrong backtesting result.

Attached Files Capture.PNG
Re: New Zorro version 2.40.3 [Re: jcl] #483871
08/07/21 06:22
08/07/21 06:22
Joined: Apr 2008
Posts: 586
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 586
Austria
When plotting is ok but the backtest has strange candles then something in your script produces wrong prices. Its either a script bug or a zorro bug. Send that script and history to support. If its a zorro bug you can get a free subscription.

Re: New Zorro version 2.40.3 [Re: Petra] #483873
08/07/21 06:48
08/07/21 06:48
Joined: Oct 2018
Posts: 93
7
7th_zorro Offline
Junior Member
7th_zorro  Offline
Junior Member
7

Joined: Oct 2018
Posts: 93
Hi, Petra.
I sent the report mail to zorro support team.
Please check the result.
Thank you.

Last edited by 7th_zorro; 08/07/21 08:30.
Re: New Zorro version 2.40.3 [Re: jcl] #483883
08/10/21 08:21
08/10/21 08:21
Joined: Apr 2008
Posts: 586
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 586
Austria
Thanks. Turns out the reason was high volatility and too many outliers in the data, triggering the outlier detection.

If anyone has a similar problem, the fix:

Outlier = 0;

This disables outlier detection. The outlier detector will be made less sensitive for the release.


Re: New Zorro version 2.40.3 [Re: Petra] #483890
08/11/21 01:14
08/11/21 01:14
Joined: Oct 2018
Posts: 93
7
7th_zorro Offline
Junior Member
7th_zorro  Offline
Junior Member
7

Joined: Oct 2018
Posts: 93
Hi, Thank you for the solution.
The problem is now fixed.
I don't know why the sensitivity changed in new version,
but would better be careful changing something.
I was very confused why new version proceed differently when I just update to new version.

I hope you to kindly provide new subscription for me. Would you?

Last edited by 7th_zorro; 08/11/21 01:16.
Re: New Zorro version 2.40.3 [Re: jcl] #483893
08/11/21 11:42
08/11/21 11:42
Joined: Apr 2008
Posts: 586
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 586
Austria
Ask them by email. It's not a real bug and also mentioned in the manual so I'm not sure but asking doesnt hurt.

Page 4 of 7 1 2 3 4 5 6 7

Moderated by  Petra 

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

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

Powered by UBB.threads™ PHP Forum Software 7.7.1