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 Hwop38, 05-04-2026, 07:02 PM
          0 responses
          166 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Started by CaptainJack, 04-24-2026, 11:07 PM
          0 responses
          320 views
          0 likes
          Last Post CaptainJack  
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          246 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          350 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          179 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Working...
          X