Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by M_D. 04/26/24 20:22
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (M_D, AndrewAMD, Quad, Ayumi), 806 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 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,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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

Chief Engineer
jcl  Offline

Chief Engineer

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