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 sjsj2732, 03-23-2026, 04:31 AM
          0 responses
          69 views
          0 likes
          Last Post sjsj2732  
          Started by NullPointStrategies, 03-13-2026, 05:17 AM
          0 responses
          311 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          305 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          146 views
          1 like
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          105 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Working...
          X