Mixing time scales in 5.4 doesn't work
Author: Ray60
Creation Date: 6/30/2009 11:49 AM
profile picture

Ray60

#1
I just downloaded Version 5.4.20.0. Mixing time scales no longer works in the new version. For instance plotting a 15-min moving average on a 1-min chart. The older version correctly plotted a 15 min moving average as a flat line for every 15 bars on the 1 min chart. Now the 15 min moving average is a flat line for the whole day.

You can see this in the following example:

CODE:
Please log in to see this code.



I have several strategies that mix Time scales for plotting and trading and they no longer work in Version 5.4.20.0. Is there something I can do in my strategy code to fix this or is this a problem in the new Version that the developers must address?
profile picture

Eugene

#2
Thank you for reporting. Please create a support ticket.
profile picture

Cone

#3
Arggh :(

There appears to be an intermittent problem on synching an external symbol intraday in the same time frame as well. I haven't nailed it down yet, but dependent on "something in the data" the external series is delayed (shifted to the right) by one bar.

While other synch bugs were definitely fixed, it seems we've taken a step forward and maybe 2 steps back in 5.4 with this.
profile picture

jreality

#4
I'm having the same problem. Is this going to be fixed soon?
profile picture

deepbuyer

#5
which version has less problems with Sync? .1, .3, .4 or Developer version(s)?
profile picture

Cone

#6
5.4 doesn't have any problems that I'm aware of synching to Daily and higher time frames, but you should consider SetScaleCompressed broken in 5.4.

5.3 is just the opposite.

We'll work to get all known synch bugs fixed for 5.5. ETA is late September.
profile picture

Ray60

#7
Eugene/Robert,

I just downloaded Version 5.5.28.0.

The timescale problem has been partially fixed. It works when plotting a single value but not a calculated value. For instance plotting a 15-min moving average on a 1-min chart.

CODE:
Please log in to see this code.

Version 5.3 correctly plotted the two lines:
Version 5.4 plotted both DataSeries as flat lines for the entire day.
Version 5.5 plots SpL3_15 correctly but SpL5_15 is a flat line for the entire day.

Will this be addressed in the next version?
Thanks.
profile picture

Eugene

#8
Thank you and sorry. :(
CODE:
Please log in to see this code.


Here's another instance of the same bug, breaking the valid series by a simple math operation:
CODE:
Please log in to see this code.
profile picture

Eugene

#9
Again, workaround for custom compressed series is to build them in a loop e.g.
CODE:
Please log in to see this code.
profile picture

Ray60

#10
Eugene.

Thanks for the workaround. I have some strategies with 15min MACD’s plotted on 1min charts. With your help I finally figured how to get it to work in Version 5.5. I hope that this get fixed in the next release so we can simplify the code.

Thanks again.

profile picture

Eugene

#11
A bug has been entered - thank you for reporting - hope it will get fixed in 5.6.
profile picture

gemstonecapital

#12
I guess I'm having a similar problem here.
I'm running a strategy on 1 Minute Data and I'm trying to calculate an 150 SMA on daily bars.

CODE:
Please log in to see this code.

ima100_D1 permanently returns 0.0
profile picture

Eugene

#13
A picture is worth a thousand words. Take a full-size screenshot so we could see everything from the version number through the DataSets tree and to your data loading settings. Upload to any free image hoster, post the link here and it will get us up to speed on this issue.
profile picture

gemstonecapital

#14
http://www.freeimagehosting.net/a2521

Strategy code as shown above.
profile picture

Eugene

#15
Good news: no, you're not having a problem. Moreover, everything is OK.

You're trying to show a 150-day SMA with just one month of data loaded (last date is 02/01/2010 and first date is 01/01/2010). You have to load at least 150 days of 1-minute data for the 150-day SMA to start showing.