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 CarlTrading, 03-31-2026, 09:41 PM
          1 response
          80 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          40 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          63 views
          2 likes
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          63 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          54 views
          0 likes
          Last Post CarlTrading  
          Working...
          X