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

Plot RTH Open

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

    Plot RTH Open

    I am trying to find/build an indicator that plots the opening RTH print. I don't need anything else, just a line that is automatically plotted on the opening print at 9am EST (CL pit open)

    #2
    Hello 1zach4,

    Thank you for your post and welcome to the NinjaTrader customer support!

    You can apply the RTH Session Template to your chart for the instrument you are using by right clicking in your chart > select Data Series > change the Session Template to the desired RTH Session Template > OK.

    Then right click in your chart > select Indicators > select the CurrentDayOHL > set the High and Low to Transparent for the colors > OK.

    This will plot the Open as a line on your chart for the the current day's RTH Open.

    For information on Session Template please visit the following link: http://www.ninjatrader.com/support/h...on_manager.htm

    For information on working with indicators in your chart please visit the following link: http://www.ninjatrader.com/support/h...indicators.htm

    Please let me know if I may be of further assistance.

    Comment


      #3
      Thanks Patrick

      I am trying to plot just the Open because when I try to backtest using the CurrentDayOHL, it does not use just the Open price, even when I set it to only use the Open

      Comment


        #4
        Hello 1zach4,

        Thank you for your response.

        You can use the following for the print of the Open at 9 AM EST (if your PC is set to EST):
        Code:
        if(ToTime(Time[0]) == 90000)
        {
        DrawHorizontalLine("open", Open[0], Color.Blue);
        }
        For information on DrawHorizontalLine() please visit the following link: http://www.ninjatrader.com/support/h...zontalline.htm

        Please let me know if I may be of further assistance.

        Comment


          #5
          100% new to NT coding. Where/how do I enter that string of code?

          Comment


            #6
            Hello 1zach4,

            Thank you for your response.

            We have Premium Paid Educational events where you will join a NinjaScript expert for a pair of 6-8 hour long intensive courses designed to provide you with an in depth look at programming indicators and automated strategies through the use of NinjaScript:


            If you would like to take on learning NinjaScript on your own, we have a fully documented help guide which will help you get started with Ninja Script. You will find language references to all of the methods and functions you will be using. You will also see a tutorial section which will help you create your first indicator and get you started with some of these concepts.
            A link to our Help Guide can be found below: http://www.ninjatrader.com/support/h...stribution.htm

            I am also linking you to the Educational Resources section of the Help Guide to help you get started with NinjaScript: http://www.ninjatrader.com/support/h..._resources.htm

            You will find Reference Samples online as well as some Tips and Tricks for both indicators and strategies:
            Click here to see our NinjaScript Reference Samples: http://www.ninjatrader.com/support/f...splay.php?f=30
            Click here to see our NinjaScript Tips: http://www.ninjatrader.com/support/f...ead.php?t=3229

            These samples can be downloaded, installed and modified from NinjaTrader and hopefully serve as a good base for your custom works.

            There is a also a growing library of user submitted custom indicators (100+) that can be downloaded from our support form. Please look in the NinjaScript File Sharing section of our support forum as you may find what you are looking for there: http://www.ninjatrader.com/support/f...splay.php?f=37

            If you have limited time or programming capabilities, you can discuss your requirements with any of our certified NinjaScript consultants.
            Click here for a list of certified NinjaScript Consultants: http://www.ninjatrader.com/partners#...pt-Consultants

            Please let me know if you have any questions.

            Comment


              #7
              Originally posted by 1zach4 View Post
              I am trying to find/build an indicator that plots the opening RTH print. I don't need anything else, just a line that is automatically plotted on the opening print at 9am EST (CL pit open)
              The opening range indicator plots

              -> the regular open
              -> the opening range based on a selectable interval
              -> the night session range (pre-low and pre-high)

              You can disable the plots not needed by setting them to "Transparent".

              The best futures trading community on the planet: futures trading, market news, trading charts, trading platforms, trading strategies


              Alternatively you can use the SessionPivots indicator from the download section to plot the current regular open. However, this indicator requires the use of a session template, which subdivides the trading day into night session, regular session and evening session.



              Charts attached for both indicators.
              Attached Files

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Mindset, 05-06-2023, 09:03 PM
              10 responses
              261 views
              0 likes
              Last Post NinjaTrader_BrandonH  
              Started by michi08, 10-05-2018, 09:31 AM
              5 responses
              741 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by The_Sec, Today, 02:29 PM
              0 responses
              2 views
              0 likes
              Last Post The_Sec
              by The_Sec
               
              Started by tsantospinto, 04-12-2024, 07:04 PM
              4 responses
              62 views
              0 likes
              Last Post aligator  
              Started by sightcareclickhere, Today, 01:55 PM
              0 responses
              1 view
              0 likes
              Last Post sightcareclickhere  
              Working...
              X