Gamestudio Links
Zorro Links
Newest Posts
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
Release 2.68 replacement of the .par format
by Martin_HH. 09/23/25 20:48
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (dBc), 17,435 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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,806
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,806
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