Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Painting time zones

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

    Painting time zones

    Hi!
    is there any resource I could use to paint the background of a chart according to the time?
    For example: my background is black, and I would like it to be grey in the zone between 15:00 and 09:00 h.
    Thanks!

    #2
    Yes, you can use BackColor property.

    More information - http://www.ninjatrader-support.com/H...BackColor.html
    RayNinjaTrader Customer Service

    Comment


      #3
      Thanks!
      Just the last push.
      This works:
      Code:
      if (Time[0].Hour>22);
      BackColor = Color.Pink
      But,
      What about "time > 22:15"
      I tried to use Time[0].TimeOfDay but don't know which is the right format for the value.
      Thanks!

      Comment


        #4
        Solved!
        Code:
        if (ToTime(Time[0]) >= 221500 && ToTime(Time[0]) <= 240000) 
        {
        BackColor = Color.Pink;
        }
        Thanks!
        Last edited by eswap0; 11-22-2008, 03:18 PM.

        Comment


          #5
          I've been ask by a PM to share this tool.
          As I haven't been able to send by PM an atached file I am posting the Indicator here.
          I advise it is very rudimentary: I didn't use variables because I just need to chand the time zones twice a year.
          I just pretend to clearly see if I am in a high volume or low volume trading time for FOREX according to this.
          You can have an idea about the final result with the snapshot I include. You should overlap this indicator with others, by sharing the same panel, in order to save space in your chart.
          Good luck!
          Attached Files

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          144 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          71 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          125 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          79 views
          0 likes
          Last Post PaulMohn  
          Working...
          X