Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator horizontal line at a defined prior day time

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

    Indicator horizontal line at a defined prior day time

    Hello,
    I just need an indicator which draw a horizontal line at a prior days defined time automaticly.
    For example at this time I draw a line at the ym 4:00p.m. price, which represents the Dow Cash close. But I have to adjust it manualy each day for the ym, es and nq.
    Does anyone has an idea? Please see attached screenhot in case I haven´t described it detailed enough.
    Tried a bit with the existing Priorday OHLC indicator to adapt, but I cannot get the timetheme implemented .
    Attached Files

    #2
    Hello Mirasol,

    Thanks for your message.

    You could make an indicator that takes a DateTime user defined input and if the timestamp of the closing bar, "Time[0]" matches your input timestamp, you could then save a variable for the Close[0] value and then use that in a Draw.HorizontalLine drawing tool. I would suggest to use ToTime() when creating time checks in NinjaTrader.

    Documentation for syntax reference on these items is linked below.

    Working with Price Series - https://ninjatrader.com/support/help...ice_series.htm

    Time Series - https://ninjatrader.com/support/help...eries_time.htm

    ToTime - https://ninjatrader.com/support/help...-us/totime.htm

    Draw.HorizontalLine - https://ninjatrader.com/support/help...zontalline.htm

    Similar syntax for this task could be generated by using the Strategy Builder as well. I'll include a link to our Strategy Builder 301 tutorial for more information on using that tool, and I will also link to various Condition Builder examples that can give direction on creating time checks and other typical uses of logic.

    Strategy Builder 301 - https://www.youtube.com/watch?v=HCyt90GAs9k

    Condition Builder examples - https://ninjatrader.com/support/help...on_builder.htm

    Action examples - https://ninjatrader.com/support/help...us/actions.htm

    Please let us know if we can be of further assistance.

    Comment


      #3
      Ok Jim thanks a lot for help. I will study the links you gave me.

      Comment


        #4
        Originally posted by Mirasol View Post
        Hello,
        I just need an indicator which draw a horizontal line at a prior days defined time automaticly.
        For example at this time I draw a line at the ym 4:00p.m. price, which represents the Dow Cash close. But I have to adjust it manualy each day for the ym, es and nq.
        Does anyone has an idea? Please see attached screenhot in case I haven´t described it detailed enough.
        Tried a bit with the existing Priorday OHLC indicator to adapt, but I cannot get the timetheme implemented .
        use opening price and specify the time you want
        Hello Traders, I have enhanced the capabilities a little. Now you can name the event. In the example, I have the CL Pit Open, the Equities Open and the CL Pit Close. I hope that this is useful for you… Bob Hello Traders, Here is an NT8 indicator that marks the pit open, or any […]

        Comment


          #5
          nkhoi, many thanks, exactly what I am searching for.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          579 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          334 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          554 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          551 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X