Gamestudio Links
Zorro Links
Newest Posts
Gracefully closing a panel
by Zheka. 07/17/19 15:02
MaxDD in %
by Zheka. 07/17/19 14:51
New Zorro version 2.15
by jcl. 07/17/19 12:21
Issues with converting .csv to .t6
by jcl. 07/16/19 14:46
IG plugin initial release
by YG8. 07/16/19 10:02
First Steps for backtesting with ASCII data
by Charttrader. 07/16/19 08:50
Beginners Workshop
by jcl. 07/15/19 06:29
Dukascopy plugin (yet another version)
by dh85. 07/15/19 05:03
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 Now
12 registered members (jyd, kvm, Peeyotch, Grat, AndrewAMD, FLD, TradingMax, Quad, Matt_Aufderheide, 1 invisible), 705 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Charttrader, bjomu, catharticlapse, carmyss121, Evox
18255 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Daily bars plot breaks, but 1 min is ok? #476836
04/10/19 20:35
04/10/19 20:35
Joined: Dec 2016
Posts: 12
K
kreko Offline OP
Newbie
kreko  Offline OP
Newbie
K

Joined: Dec 2016
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

Attached Files
1min.PNG (55 downloads)
1440_1day_.PNG (48 downloads)
data_start.PNG (50 downloads)
data_finish.PNG (45 downloads)
Re: Daily bars plot breaks, but 1 min is ok? [Re: kreko] #476841
04/11/19 17:12
04/11/19 17:12
Joined: Jul 2000
Posts: 26,942
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 26,942
Frankfurt
That plot looks ok to me. Ok in the sense of garbage in => garbage out.

Re: Daily bars plot breaks, but 1 min is ok? [Re: jcl] #476845
04/11/19 20:28
04/11/19 20:28
Joined: Dec 2016
Posts: 12
K
kreko Offline OP
Newbie
kreko  Offline OP
Newbie
K

Joined: Dec 2016
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?

Re: Daily bars plot breaks, but 1 min is ok? [Re: kreko] #476846
04/11/19 22:45
04/11/19 22:45
Joined: Jul 2000
Posts: 26,942
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 26,942
Frankfurt
Don't you see the error messages? Most of your price history is missing. Fix it, or use no lookback period.

Re: Daily bars plot breaks, but 1 min is ok? [Re: jcl] #476847
04/12/19 07:49
04/12/19 07:49
Joined: Jul 2017
Posts: 377
Z
Zheka Online
Senior Member
Zheka  Online
Senior Member
Z

Joined: Jul 2017
Posts: 377
Zorro uses Lookback=80 by default, there are just no 80 days from 20190101.

Re: Daily bars plot breaks, but 1 min is ok? [Re: Zheka] #476850
04/12/19 22:59
04/12/19 22:59
Joined: Dec 2016
Posts: 12
K
kreko Offline OP
Newbie
kreko  Offline OP
Newbie
K

Joined: Dec 2016
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.

Re: Daily bars plot breaks, but 1 min is ok? [Re: kreko] #476853
04/13/19 07:31
04/13/19 07:31
Joined: Jul 2000
Posts: 26,942
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 26,942
Frankfurt
That second line is wrong. Set Lookback = 0 when you use no lookback period.

Re: Daily bars plot breaks, but 1 min is ok? [Re: jcl] #476860
04/13/19 16:20
04/13/19 16:20
Joined: Dec 2016
Posts: 12
K
kreko Offline OP
Newbie
kreko  Offline OP
Newbie
K

Joined: Dec 2016
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


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