Test if bar scale is daily
Author: Starburst
Creation Date: 9/10/2013 9:15 PM
profile picture

Starburst

#1
if ( Bars.IsIntraday )

How do I determine if the bar scale is daily, weekly, or monthly?

Thanks
profile picture

Eugene

#2
See Bars Object > Scale in the QuickRef:

CODE:
Please log in to see this code.

profile picture

Starburst

#3
Why do I get this error message?

error CS0103 @ (57.23): The name 'Scale' does not exist in the current context

Thank you in advance for your help.

Here is my code.
CODE:
Please log in to see this code.
profile picture

Eugene

#4
Sorry, there was a typo. Here's how the correct line should look like:
CODE:
Please log in to see this code.
profile picture

Starburst

#5
What is the best practice method to offset the daily weekly display series so that the same valve on Monday is displayed on Friday?

Thank you once again.
profile picture

Eugene

#6
You can learn about possible options from this KB article:

Intraday / Multi-Time Frame | Compressed price series alignment
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).