• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Sample scripts

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

    Sample scripts

    I remember working through some simple "from scratch" scripts for NT7 which were accompanied by detailed explanations for the non-programmer. Does anything like that exist for NT8?

    #2
    Hello sgordet,

    NinjaScript is written in C#.

    If you would like to take on learning NinjaScript, we have a fully documented help guide which will help you get started.

    In the help guide there are 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.

    All links below are publicly available.

    First up is a link to a set of specific tutorials for creating conditions in the NinjaTrader 8 Strategy Builder in the NinjaTrader 8 help guide:
    http://ninjatrader.com/support/helpG...on_builder.htm

    The entire Alphabetical Reference can be found with the following link:
    http://ninjatrader.com/support/helpG..._reference.htm

    Below are links to Reference Samples online as well as some Tips and Tricks for both indicators and strategies. These samples can be downloaded, installed and modified from NinjaTrader and hopefully serve as a good base for your custom works.

    Click here to see our NinjaScript Reference Samples:
    https://ninjatrader.com/support/help...ce_samples.htm

    Click here to see our NinjaScript Tips:
    https://ninjatrader.com/support/helpGuides/nt8/tips.htm

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


    The best way to begin learning NinjaScript is to use the Strategy Builder. With the Strategy Builder you can setup conditions and variables and then see the generated code in the NinjaScript Editor by clicking the View Code button.

    I'm also proving a link to a pre-recorded set of videos 'Strategy Builder 301' and 'NinjaScript Editor 401' for you to view at your own convenience.
    Strategy Builder 301 - https://www.youtube.com/watch?v=HCyt...We0Nf&index=10
    NinjaScript Editor 401 - https://youtu.be/H7aDpWoWUQs?list=PL...We0Nf&index=14

    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:
    http://ninjatrader.com/support/helpG...g_concepts.htm

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

    I have personally found DotNetPerls to be a very helpful 3rd party educational resource with simple, direct, and easy to follow examples.
    https://www.dotnetperls.com/

    There is a also a growing library of community submitted custom indicators (200+) that can be downloaded from our forum. Please look in the NinjaScript File Sharing section of our support forum as you may find what you are looking for there.
    https://ninjatraderecosystem.com/user-app-share/

    Last, I'm also sharing a link to another forum post that reviews how to use prints to understand behavior and debug a script when the behavior is unexpected.
    http://ninjatrader.com/support/forum...979#post510979


    Other useful resources on learning C#:
    NinjaScript Debugging
    Softsteel Soluions
    CSharp Essentials
    C# Station
    The Code Project

    Please let me know if you have any questions.


    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.
    Last edited by NinjaTrader_ChelseaB; 06-21-2020, 09:33 PM.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      For help with automatic conversion of NT7 indicators to NT8 --> study this.

      Comment


        #4
        EXCELLENT INFORMATION, Chelsea. Thanks much!

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Wingo, Today, 04:52 PM
        0 responses
        8 views
        0 likes
        Last Post Wingo
        by Wingo
         
        Started by Bionian, Today, 10:10 AM
        3 responses
        20 views
        0 likes
        Last Post Bionian
        by Bionian
         
        Started by D Trader, Today, 01:41 PM
        0 responses
        13 views
        0 likes
        Last Post D Trader  
        Started by rexmie888, Today, 04:00 AM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_ShawnB  
        Started by terminatorT1000, Today, 01:23 AM
        1 response
        15 views
        0 likes
        Last Post NinjaTrader_ShawnB  
        Working...
        X