Gamestudio Links
Zorro Links
Newest Posts
What are you working on?
by Ayumi
8 minutes 11 seconds ago
Performance report on the imported trades
by OptimusPrime
15 minutes 30 seconds ago
Possible to return character vector from R bridge?
by JamesHH
Today at 18:59
Help with Wine on Linux
by AndrewAMD
Today at 16:59
Stock Splits
by AndrewAMD
Today at 16:23
Linux - Help with setting up with Wine and Zorro
by michaelj
Today at 04:49
How to expand Zorro to work with other broker ( like Tradovate )
by AndrewAMD
Today at 02:12
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online
12 registered (AndrewAMD, Ayumi, JamesHH, ChrstphFr, michaelj, Akow, jenGs, Bill_Lin_Fang, alibaba, 1 invisible), 165 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
Bill_Lin_Fang, michaelj, ThePituLegend, kankan, Nofip
18207 Registered Users
Topic Options
Rate This Topic
#476836 - 04/10/19 22:35 Daily bars plot breaks, but 1 min is ok?
kreko Offline
Newbie

Registered: 12/15/16
Posts: 12
Simplest code to plot the candlesticks
function run()
Code:
{	
	set(PLOTNOW);
	StartDate = 20190101;
	MaxBars = 10;
}



I'm using the M1 prices downloaded from this web. I can see alright 1 min, 5min, 60 min and up to 240 min (even though always different number of bars)
but it breaks when I want to see a daily(1440) bars plot. What gives!? See attached screenshots


Attachments
1min.PNG (23 downloads)
1440_1day_.PNG (18 downloads)
data_start.PNG (15 downloads)
data_finish.PNG (13 downloads)


Top
#476841 - 04/11/19 19:12 Re: Daily bars plot breaks, but 1 min is ok? [Re: kreko]
jcl Online

Chief Engineer

Registered: 07/22/00
Posts: 26839
Loc: Frankfurt
That plot looks ok to me. Ok in the sense of garbage in => garbage out.

Top
#476845 - 04/11/19 22:28 Re: Daily bars plot breaks, but 1 min is ok? [Re: jcl]
kreko Offline
Newbie

Registered: 12/15/16
Posts: 12
How about a constructive response, why I don't see a proper daily bars being plotted, but I do see proper 1 through 60 min charts?

Top
#476846 - 04/12/19 00:45 Re: Daily bars plot breaks, but 1 min is ok? [Re: kreko]
jcl Online

Chief Engineer

Registered: 07/22/00
Posts: 26839
Loc: Frankfurt
Don't you see the error messages? Most of your price history is missing. Fix it, or use no lookback period.

Top
#476847 - 04/12/19 09:49 Re: Daily bars plot breaks, but 1 min is ok? [Re: jcl]
Zheka Offline
Senior Member

Registered: 07/03/17
Posts: 362
Zorro uses Lookback=80 by default, there are just no 80 days from 20190101.

Top
#476850 - 04/13/19 00:59 Re: Daily bars plot breaks, but 1 min is ok? [Re: Zheka]
kreko Offline
Newbie

Registered: 12/15/16
Posts: 12
Thank you, I got it now.
I also see that for crypto I need to use
Code:
Weekend = 0

and that
Code:
LOOKBACK =! LookBack

Took me 30 min to figure out what was the issue.

Top
#476853 - 04/13/19 09:31 Re: Daily bars plot breaks, but 1 min is ok? [Re: kreko]
jcl Online

Chief Engineer

Registered: 07/22/00
Posts: 26839
Loc: Frankfurt
That second line is wrong. Set Lookback = 0 when you use no lookback period.

Top
#476860 - 04/13/19 18:20 Re: Daily bars plot breaks, but 1 min is ok? [Re: jcl]
kreko Offline
Newbie

Registered: 12/15/16
Posts: 12
Quote:
That second line is wrong. Set Lookback = 0 when you use no lookback period.


I tried to be a smartass here laugh I know I need the Lookback = 0. What I was trying to say is that I found a keyword LOOKBACK which popped up through the autocomplete in the IDE, and it took me 30 min to realize that the correct keyword is actually LookBack

Top



Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de