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 reynoldsn, Today, 04:40 PM
          0 responses
          1 view
          0 likes
          Last Post reynoldsn  
          Started by Philippe56140, 04-27-2024, 02:35 PM
          6 responses
          54 views
          0 likes
          Last Post bltdavid  
          Started by ETFVoyageur, Yesterday, 06:05 PM
          7 responses
          44 views
          0 likes
          Last Post ETFVoyageur  
          Started by betsuni_123, Today, 04:20 PM
          0 responses
          9 views
          0 likes
          Last Post betsuni_123  
          Started by Aquila_Welokk, 04-29-2024, 01:14 PM
          2 responses
          22 views
          0 likes
          Last Post Aquila_Welokk  
          Working...
          X