Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Coloring region based on time frame

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Coloring region based on time frame

    I saw prior post on coloring region such as bollinger band. but how to color chart background based on time frame.

    E.g.
    Color 11:15 AM to 1:30 PM background to grey.

    #2
    Hello,



    Use something like this:

    if(ToTime(Time[0]) >= 111500 && ToTime(Time[0]) < 133000)
    {
    BackColor = Color.Gray;
    }

    Here are links that will help:
    BackColor:


    BackColorAll:


    ToTime():




    DenNinjaTrader Customer Service

    Comment


      #3
      Thank you. Please show me how to apply this program into chart. Sorry, I have never done programming before.

      Comment


        #4
        You would have to program an indicator to do this. Since you are new to programming the best place to start is with our NinjaScript Indcator development tutorials in our Help Guide. If programming is not something that you wish to take on, a NinjaScript consultant can surely help you.

        RayNinjaTrader Customer Service

        Comment


          #5
          Hello Huilin !
          Did you get an indicator that backcolors a choosable timezone in the chart ?
          I am also looking for such a thing.
          max-td

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          42 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          20 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          29 views
          1 like
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          46 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          38 views
          0 likes
          Last Post CarlTrading  
          Working...
          X