Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 01:28
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Ayumi), 838 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Chart Viewer Timeframe #487799
09/26/23 01:01
09/26/23 01:01
Joined: Sep 2023
Posts: 4
M
mcl Offline OP
Guest
mcl  Offline OP
Guest
M

Joined: Sep 2023
Posts: 4
Hello. I'm not sure if this question is totally beginner-level, but I'm having some difficulty visualizing the candlestick charts at timeframes shorter than 60 minutes. I am creating a strategy that uses timeframes shorter than 60 minutes (for example, 15 and 30 minutes) and I'd like to debug the strategy through the chart viewer. However, the closest zoom I can get is up to 1 hour on the candles.

I have checked the manual (also, in this forum) and found no reference to this, except that the indicators might have a displaced position in the chart viewer, but nothing explicit to know whether it is a mistake of mine or a feature not implemented in Zorro.

Thank you very much!

Re: Chart Viewer Timeframe [Re: mcl] #487801
09/26/23 09:38
09/26/23 09:38
Joined: Aug 2023
Posts: 19
I
izorro Offline
Newbie
izorro  Offline
Newbie
I

Joined: Aug 2023
Posts: 19
Are you setting the BarPeriod?

[Linked Image]

Re: Chart Viewer Timeframe [Re: izorro] #487806
09/26/23 18:31
09/26/23 18:31
Joined: Sep 2023
Posts: 4
M
mcl Offline OP
Guest
mcl  Offline OP
Guest
M

Joined: Sep 2023
Posts: 4
Yep. Let me show using BarPeriod = 1 (extreme example).

It still one candle per hour.

Attached Files Untitled.png
Re: Chart Viewer Timeframe [Re: mcl] #487809
09/27/23 00:48
09/27/23 00:48
Joined: Feb 2017
Posts: 1,731
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,731
Chicago
Probably because your history data has insufficient granularity. Always inspect your data.

Post your code in its entirety and a sample history file.

Re: Chart Viewer Timeframe [Re: AndrewAMD] #487810
09/27/23 01:43
09/27/23 01:43
Joined: Sep 2023
Posts: 4
M
mcl Offline OP
Guest
mcl  Offline OP
Guest
M

Joined: Sep 2023
Posts: 4
Thank you very much!

I checked the file and indeed, there was an error. This occurred due to the conversion from CSV to .t6, as I hadn't placed the separator ("+%Y/%m/%d,%H:%M%:S,f3,f1,f2,f4,f6") in %H%M%S.

Therefore, all the candles (within one hour) had the same hour and minute. Thank you very much!

Re: Chart Viewer Timeframe [Re: mcl] #487811
09/27/23 01:44
09/27/23 01:44
Joined: Sep 2023
Posts: 4
M
mcl Offline OP
Guest
mcl  Offline OP
Guest
M

Joined: Sep 2023
Posts: 4
I hope this explains why all my strategies were losing ones. laugh


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1