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

  • Harry
    replied
    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

    Leave a comment:


  • NinjaTrader_PatrickH
    replied
    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.

    Leave a comment:


  • 1zach4
    replied
    100% new to NT coding. Where/how do I enter that string of code?

    Leave a comment:


  • NinjaTrader_PatrickH
    replied
    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.

    Leave a comment:


  • 1zach4
    replied
    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

    Leave a comment:


  • NinjaTrader_PatrickH
    replied
    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.

    Leave a comment:


  • 1zach4
    started a topic Plot RTH Open

    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)

Latest Posts

Collapse

Topics Statistics Last Post
Started by funk10101, Today, 09:43 PM
0 responses
6 views
0 likes
Last Post funk10101  
Started by pkefal, 04-11-2024, 07:39 AM
11 responses
37 views
0 likes
Last Post jeronymite  
Started by bill2023, Yesterday, 08:51 AM
8 responses
44 views
0 likes
Last Post bill2023  
Started by yertle, Today, 08:38 AM
6 responses
26 views
0 likes
Last Post ryjoga
by ryjoga
 
Started by algospoke, Yesterday, 06:40 PM
2 responses
24 views
0 likes
Last Post algospoke  
Working...
X