Gamestudio Links
Zorro Links
Newest Posts
Placing Order during Market Close
by jcl. 07/12/24 13:57
New Zorro version 2.62
by jcl. 07/12/24 13:56
Delaying Exit Order
by vicknick. 07/12/24 07:14
Zorro Trader GPT
by TipmyPip. 07/11/24 05:43
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 07/10/24 15:06
SGT_FW
by Aku_Aku. 07/10/24 10:34
Gravity
by rayp. 07/09/24 23:07
Z strategies with MT5 wit own EA’s
by Grant. 07/07/24 15:37
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (NoBrainer, AndrewAMD, 1 invisible), 692 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rramsey, Erasand, Cristoig2001, Mino, squik
19064 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,732
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

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