Gamestudio Links
Zorro Links
Newest Posts
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
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
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
2 registered members (sleakz, AndrewAMD), 684 guests, and 3 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: Multi time frame trading [Re: AndrewAMD] #468417
10/03/17 15:08
10/03/17 15:08
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
From what I see in the example, the Ally datetime field looks as if it contains a start time and a duration, the 04:00. There is also a "timestamp" field. I haven't checked that in detail, but maybe the timestamp is what you need? Otherwise derive the timestamp from the datetime plus duration. Relevant is the time belonging to the "last" price of the tick.

Re: Multi time frame trading [Re: jcl] #468418
10/03/17 15:18
10/03/17 15:18
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
Originally Posted By: jcl
I haven't checked that in detail, but maybe the timestamp is what you need?
Negative, it's just the time at which I received the history. Not very useful.

Re: Multi time frame trading [Re: AndrewAMD] #468419
10/03/17 15:20
10/03/17 15:20
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
Perhaps this is a silly question, but does this also mean that D1 history would list the day after? As in, the stock market quotes would list Tuesday through Saturday?

More importantly, if a bar had not closed yet, my plugin should not be sharing data about the bar until it closes, correct? That is, the DATE value should never be in the future?

I downloaded D1 data FROM_AV twice, mid-day, and it seems to be updating the bar on the fly.

Today is October 3. Top: before. Bottom: after.


Attached Files Capture.JPG
Last edited by AndrewAMD; 10/03/17 16:08.
Re: Multi time frame trading [Re: AndrewAMD] #468420
10/03/17 16:17
10/03/17 16:17
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
No, in D1 history there is no difference of start and end, since it has no hours. The date of the open is identical to the date of the close. This is considered by Zorro. Otherwise the calculation would be based on a wrong time, since a date literally begins at 00:00 and shifted to UTC you would get a date boundary between open and close.

As long as a bar or day is not yet closed, it must not be used for backtesting. Otherwise you would get invalid results since parameters such as the high-low range or the open-close range would be wrong.

Re: Multi time frame trading [Re: jcl] #468422
10/03/17 16:39
10/03/17 16:39
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
Thank you for the clarification.

Page 2 of 2 1 2

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1