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
4 registered members (AndrewAMD, Quad, EternallyCurious, 1 invisible), 726 guests, and 5 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 2 of 2 1 2
Re: BarPeriod + TimeFrame issue [Re: trenki2] #461767
08/19/16 18:28
08/19/16 18:28
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
I leave this as a little brain-teaser over the weekend. Who can see why this code still does not get the same number of trades on 1-day and 1-hour bars? Solution Monday. Have a nice weekend!

Re: BarPeriod + TimeFrame issue [Re: jcl] #461801
08/22/16 08:27
08/22/16 08:27
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
Ok, no takers, so here's the solution. One version of the script increments the counter 24 times faster than the other version.

Re: BarPeriod + TimeFrame issue [Re: jcl] #461806
08/22/16 10:52
08/22/16 10:52
Joined: Aug 2016
Posts: 95
Wien
T
trenki2 Offline OP
Junior Member
trenki2  Offline OP
Junior Member
T

Joined: Aug 2016
Posts: 95
Wien
Still this does not explain why the number of trades in the former example without the TradeNum counter are different. I applied every hint you gave and they are still different. It was not because of Slippage either.

An the other question was why the entry price for the same time and date is different between the 1440 and 60 log. Shouldn't it be the same?

Last edited by trenki2; 08/22/16 10:58.
Re: BarPeriod + TimeFrame issue [Re: trenki2] #461809
08/22/16 11:27
08/22/16 11:27
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
Almost. There can be minimal differences due to interpolation of gaps, and thus also minimal differences in entry and exit prices. Aside from that the trading behavior and the result should be identical. Otherwise check out the log - there you should see the reason of any different trade.

Page 2 of 2 1 2

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