Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 953 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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