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 adeelshahzad, Today, 03:54 AM
          5 responses
          32 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by stafe, 04-15-2024, 08:34 PM
          7 responses
          32 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by merzo, 06-25-2023, 02:19 AM
          10 responses
          823 views
          1 like
          Last Post NinjaTrader_ChristopherJ  
          Started by frankthearm, Today, 09:08 AM
          5 responses
          21 views
          0 likes
          Last Post NinjaTrader_Clayton  
          Started by jeronymite, 04-12-2024, 04:26 PM
          3 responses
          43 views
          0 likes
          Last Post jeronymite  
          Working...
          X