Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, Nymphodora, Quad), 919 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 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.PNG1440_1day_.PNGdata_start.PNGdata_finish.PNG
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: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
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: 783
Z
Zheka Offline
User
Zheka  Offline
User
Z

Joined: Jul 2017
Posts: 783
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: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1