Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Line From Previous Day Close

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

    Line From Previous Day Close

    Does anyone have an idea on how to make an indicator draw a line from say the BarClose at 16:00:00 on the ES thru to the next day at 15:59:00 and then reset again at the BarClose at 16:00:00 and continue this automatically each day. Right now I use the PriceAlert Indicator and I input the number manually each day. It's no big deal but it would be nice if it was set to do it automatically. I have tried reprograming the Pivot Indicator to do it but it gives me the BarClose at 24:00:00 the previous day which is not what I am looking for. I also tried to convert the SampleGetHighLow at a specific time but it only goes from 16:00:00 to 24:00:00 and rests and doesn't draw a line again until 16:00:00 and then again only goes to 24:00:00. Any help would be appreciated. Thanks

    #2
    Hi cre8it8, did you try working with the PriorDayOHLC indicator? Then set only 'ShowClose' to true under Misc in the Indicator properties.

    Comment


      #3
      Thanks for your reply Bertrand. Yes I did try that but it has the same problem as trying to convert the Pivots. It has the ES Close at 24:00:00 Eastern and I need it to be 16:00:00 or 16:15:00. I think it grabs the Close time from the Cbi.Global. Any ideas on how to program around that?

      Comment


        #4
        cre8it8,

        You will need to use some DateTime manipulations to get what you want. You will need to evaluate the times and dates of each bar and just keep drawing. When you reach your final date and time then you stop the drawing.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          That sounds a bit out of my league as a programmer. I thought that I was getting better at it and that this would be something simple but I think I will stick with the Price Alert and do it manually. Thanks Anyway.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          624 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          359 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          105 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          562 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          567 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X