Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    JimNinjaTrader Customer Service

    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 zstheorist, Today, 07:52 PM
          0 responses
          5 views
          0 likes
          Last Post zstheorist  
          Started by pmachiraju, 11-01-2023, 04:46 AM
          8 responses
          150 views
          0 likes
          Last Post rehmans
          by rehmans
           
          Started by mattbsea, Today, 05:44 PM
          0 responses
          6 views
          0 likes
          Last Post mattbsea  
          Started by RideMe, 04-07-2024, 04:54 PM
          6 responses
          33 views
          0 likes
          Last Post RideMe
          by RideMe
           
          Started by tkaboris, Today, 05:13 PM
          0 responses
          6 views
          0 likes
          Last Post tkaboris  
          Working...
          X