SetScaleCompressed for intraday data
Author: jackmanjls
Creation Date: 4/6/2011 7:58 AM
profile picture

jackmanjls

#1
I want to use SetScaleCompressed for some intraday development.

Currently the time frame according to Bars.Scale is daily.

Somehow I need to get Bars.isIntraDay set to true, it's currently set to false.

I run the following test prog:

CODE:
Please log in to see this code.

With the current prog i get "cannot convert daily bars" error.
When i comment out SetScaleCompressed and remove comments on SetScaleMonthly Bars.Scale = monthly

Is there a flag that needs to be set to designate intraday, if so what is the flag?
profile picture

Eugene

#2
QUOTE:
Currently the time frame according to Bars.Scale is daily.


As already mentioned in support ticket, SetScaleCompressed is valid for intraday bars only. Bars.IsIntraday will always be false for non-intraday bar scales.

Download some intraday data and run the script on an intraday bar scale. If you have selected to save Data Scale in Wealth-Lab's Preferences dialog, "Advanced Options", uncheck this as it could have affected.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).