Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
4 registered members (AndrewAMD, fogman, Grant, juanex), 972 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
EndMarket/AssetMarket does not end the TimeFrame correctly #470325
01/08/18 14:44
01/08/18 14:44
Joined: Jul 2017
Posts: 781
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 781
JCL,
this code
Quote:
function run()
{
set(LOGFILE);
BarOffset=15;
BarPeriod=20;

AssetMarket=ET;
StartMarket=015;
EndMarket=1635;

Weekend=1+8;
TimeFrame=AssetFrame;

if (frame(0)) {
printf("#n AssetFrame=%i",AssetFrame);
printf("# ET Time=%i, O= %.5f, C= %.5f", ltod(ET,0), priceOpen(), priceClose());
}
produces this output
Quote:
[498: Tue 16-05-10 19:35] (124.25)n AssetFrame=1 ET Time=1535, O= 124.24400, C= 124.24700

[499: Tue 16-05-10 19:55] (124.27)n AssetFrame=1 ET Time=1555, O= 124.24700, C= 124.26600

[500: Tue 16-05-10 20:15] (124.26)n AssetFrame=1 ET Time=1615, O= 124.26600, C= 124.26300

[501: Tue 16-05-10 20:35] (124.26)
[502: Tue 16-05-10 20:55] (124.27)
[503: Tue 16-05-10 21:15] (124.29)
Which shows that TimeFrame erroneously ends on 16:15, not 16:35, as specified by EndMarket/AssetMarket.

I doubt this is the expected behaviour.
Please, lets investigate.

Re: EndMarket/AssetMarket does not end the TimeFrame correctly [Re: Zheka] #470347
01/09/18 16:06
01/09/18 16:06
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
EndMarket means that the market is closed - at least, that's how I would interpret it. So there is no 16:35 frame. If you want to trade at 16:35, set EndMarket to at least 16:36 so that the market is still open when the 16:35 frame ends.

Re: EndMarket/AssetMarket does not end the TimeFrame correctly [Re: jcl] #470352
01/09/18 17:20
01/09/18 17:20
Joined: Jul 2017
Posts: 781
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 781
I now found this to be the case, but this is counter-intuitive and is against the accepted industry convention.
When brokers or exchanges (or bars/cafes) state trading times, they do so meaning "ending at".
Similarly, when trading "Start" time is mentioned, it is "from x time onwards".
But Zorro's StartMarket defies this logic as well.
Confusing.


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