Announcement

Collapse
No announcement yet.

Setting background color to specific time period

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Setting background color to specific time period

    I’m looking for a way to change the background color of one time period of a chart to a different color than what the rest of the chart is. For an example, I trade the ES contract, so on a globex chart I’d like to be able to show the globex session (15:30-8:29 CST) a different background color than the day session period(8:30-15:15 CST). EFS is pretty greek to me so any assistance that can be provided would be greatly appreciated.

    Thanks!
    Bill

  • #2
    Hello Bill,

    Welcome to the eSignal forums. To begin learning how to develop formulas in EFS, please start with the Beginner Tutorial Series in the EFS KnowledgeBase. If you are new to programming, please review our JavaScript for EFS video series to learn the basics of this language, which is the foundation for EFS.

    Once you have an understanding of the EFS basics and you begin developing your custom formula you could use the hour() and minute() functions to check the time stamps of the bar to detect if it is within your defined range of time. To color the background of the bar you would use the setBarBgColor() or setDefaultBarBgColor() function.

    Give it a go and if you run into any trouble, post the details along with your code.
    Jason K.
    Project Manager
    eSignal - an Interactive Data company

    EFS KnowledgeBase
    JavaScript for EFS Video Series
    EFS Beginner Tutorial Series
    EFS Glossary
    Custom EFS Development Policy

    New User Orientation

    Comment

    Working...
    X