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

SMA High and Low lines not close of bar

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

    SMA High and Low lines not close of bar

    The SMA that comes with NT 8 option is on bar close. I need a SMA that draws two lines, one line for the HIGH of previous bars and the other line for the LOW of previous bars. Would someone please help me with this? I have no experience with writing code. Thank you in advance!

    #2
    Hello Rancher,

    Thanks for your post.

    You could consider creating a NinjaScript indicator that draws a line at the High of the previous bar and the Low of the previous bar.

    High[1] would be used to get the High price of the previous bar. Low[1] would be used to get the Low price of the previous bar.

    Draw.Line() could be used to draw a line on a chart from a NinjaScript.

    The C# programming language is used for developing NinjaScript indicators and strategies.

    To create a NinjaScript indicator, open a New > NinjaScript Editor window, select the '+' tab at the bottom of the Editor window, select 'New Indicator'. Then, you could set up as much of the indicator as possible in the Indicator Builder. This will create the framework of the indicator or strategy

    Once you finish setting up as much as possible in the Indicator Builder, you must manually program the rest of the indicator.

    Below is a link to a forum post with helpful information about getting started with NinjaScript.
    https://ninjatrader.com/support/foru...040#post786040

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

    If you are new to C#, to get a basic foundation for the concepts and syntax used in NinjaScript I would recommend this section of articles in our help guide first:
    https://ninjatrader.com/support/help...g_concepts.htm

    And the MSDN (Microsft Developers Network) C# Language Reference.
    https://ninjatrader.com/support/help...erence_wip.htm​​

    See the help guide documentation below for more information.

    High PriceSeries: https://ninjatrader.com/support/helpGuides/nt8/high.htm
    Low PriceSeries: https://ninjatrader.com/support/helpGuides/nt8/low.htm
    Draw.Line(): https://ninjatrader.com/support/help.../draw_line.htm

    If you need someone to write this script for you on your behalf, you can also contact a professional NinjaScript Consultant who would be eager to create this script at your request or assist you with your script.

    You can search our extensive library of NinjaScript consultants through the link below. Simply enter a consultant name or search by using our filter categories. Once you have identified your consultants of choice, please visit each consultant's site for more information or contact them directly to learn more!

    https://ninjatraderecosystem.com/sea...mming-services

    Educators - https://ninjatraderecosystem.com/sea...ures=education

    You can locate the contact information for the consultants on their direct websites for any additional questions you may have. Since these consultants are third-party services for NinjaTrader, all pricing and support information will need to be obtained through the consultant.

    This NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The companies and services listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      Oh my gosh. Thank you for your detailed reply. I should have known to post to the thread I started. In my defense, I'm severely disabled and in unbelieveable pain 24/7 so please excuse my ignorance and confusion.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by fx.practic, 10-15-2013, 12:53 AM
      5 responses
      5,403 views
      0 likes
      Last Post Bidder
      by Bidder
       
      Started by Shai Samuel, 07-02-2022, 02:46 PM
      4 responses
      94 views
      0 likes
      Last Post Bidder
      by Bidder
       
      Started by DJ888, Yesterday, 10:57 PM
      0 responses
      6 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by MacDad, 02-25-2024, 11:48 PM
      7 responses
      158 views
      0 likes
      Last Post loganjarosz123  
      Started by Belfortbucks, Yesterday, 09:29 PM
      0 responses
      8 views
      0 likes
      Last Post Belfortbucks  
      Working...
      X