Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 559 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 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,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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

Chief Engineer
jcl  Offline

Chief Engineer

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

Joined: Jul 2017
Posts: 784
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,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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