Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Basic getting started questions

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

    Basic getting started questions

    Hello,
    Im new to developing but have been with NijnaTrader for more than 15 years. I have just started working on my indicators for my static trading plan.
    Bear with me if there might be some strange questions, but one got to start somewhere! :-)

    These are some of my basic questions
    1. Where do I find a list of the basic code? for example how a bar is created (Open, Close, Hi and Low).
      1. Is there a way of accessing the code for a single bar from a chart? Meaning that I would like to open it and study the code.
    2. If I want to start 100 bars back from the current bar with my indicator analysis, where could i find information about this? I have looked in the NinjaTrader Help Guide, but there is no real basic stuff there.
    3. Does anybody have any good links to study material or tutorials?
    I would be so great full for some advice and pointer in the right direction..:-)

    All the best to all of you!
    //TraderBrunotte

    #2
    Hello TraderBrunotte

    Thanks for your post and welcome to the NinjaTrader forums.

    Ninjscript is the programming language of NinjaTrader. Ninjascript is based on C# Programming language and we recommend a good working knowledge of C#. We do not provide C# education/tutorials as these can be found on the internet in many places.

    If you are not familiar with C# and do not wish to learn to program, you can still create strategies (automated trading) without programming knowledge by using the Strategy Builder. The strategy Builder allows you to create basic to medium complexity strategies. The Strategy Builder will also convert your conditions and actions into viable C# code so that you get the same speed and performance as a Ninjascript created strategy. You can also view this code that is created and that can be very useful in learning Ninjascript as well. You can copy and paste code from the builder into another script.

    Here are the educational resource available on the strategy builder:
    Free live webinar every other Thursday at 4:00 PM EST, through this link to all webinars: https://ninjatrader.com/PlatformTraining
    Previous recording of the Strategy Builder 301 webinar:
    https://youtu.be/HCyt90GAs9k?list=PL...auWXkWe0Nf&t=2
    Help guide for the strategy builder: https://ninjatrader.com/support/help...gy_builder.htm

    To create an indicator or a non strategy builder strategy, you would need to use the indicator or strategy wizard. These will create the basic structures including the inputs and outputs. Here are is where you can find out further about the wizards: https://ninjatrader.com/support/help...?ns_wizard.htm

    Once you have created a Ninjascript strategy or indicator you would need to use the Ninjascript editor for further coding and debugging, here is a link to the overall Ninjascript editor: https://ninjatrader.com/support/help...t8/?editor.htm

    Here is a link to live webinars where you can find the Ninjascript editor and strategy builder, alternating on Thursdays: https://ninjatrader.com/PlatformTraining

    Here is a link to a recording of the Ninjascript editor webinar:
    https://www.youtube.com/watch?v=H7aD...We0Nf&index=14


    Here are various links to key help guide sections, each link will have further cascading links:

    https://ninjatrader.com/support/help...erence_wip.htm

    https://ninjatrader.com/support/help..._reference.htm

    https://ninjatrader.com/support/help..._resources.htm

    https://ninjatrader.com/support/help...ce_samples.htm

    https://ninjatrader.com/support/help.../nt8/?tips.htm


    In addition, you may want to review, use, or modify the freely available scripts from the NT user apps in the Ninjatrader Ecosystem. (Note this includes both NinjaTrader7 and Ninjatrader8 scripts that are not compatible with the other version, you can click the "show all" button for segregation)



    The 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 add-ons 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.


    This is a lot of information to digest so take your time and review and you may need to review again and again in order for some things to make sense.

    1) How a bar is created is actually a very advanced topic but I would suggest getting an overview here: https://ninjatrader.com/support/help..._are_built.htm and https://ninjatrader.com/support/help...?bar_types.htm

    2) One thing to understand is that when you apply your script to a chart, the script will start on the very first historical bar and will execute its code bar by bar until reaching the right edge, live data. So if you need something from 100 bars ago you need to make sure that the script does not access the 100th bar ago until the script has processed 100 bars and that can be done by checking the value of CurrentBar which is the systems bar counter.

    3) See above.

    Comment


      #3
      Hello Paul,
      Thanks for your fantastic reply.
      I know that the NinjaScript has C# as its underlying language.
      Im going to go through all the links that you posted. The main obstacle for me is to get over the first step, im on my way but it is difficult to find a good starting point. Your 2 point was great to read, that makes it a little bit easier with the historical bars i need my program to analyze.

      I did find some examples for addons, indicators, and strategies. I was thinking of working through them to understand the syntax and how it is built.

      Thanks again for your help! I really appreciate it :-)

      Im building my future indicators and strategy in Visual Studio 2019.

      //TraderBrunotte
      Last edited by TraderBrunotte; 07-08-2021, 12:40 PM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      596 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      343 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      556 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      554 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X