• 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

BackTesting Historical Levels From Excel

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

    BackTesting Historical Levels From Excel

    Hello,

    I trade support and resistance breakouts.

    I would like to backtest using historical data /ES support and resistance I have in a spreadsheet.

    Is there away I can import these levels on NinjaTrader chart and write a code to backtest these level?

    Please see screenshot of the levels.

    Thank you,
    Attached Files

    #2
    Hello simple_goodoboy,

    It would be possible create a script that draws these lines.

    If the file is a .cvs file you can read this as a text file and split the values by comma or semicolon depending on the way the file is delimited.

    Below is a link to a reference sample that demonstrates reading from a text file.
    http://ninjatrader.com/support/forum...ead.php?t=3476

    If you would like to take on learning NinjaScript, 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 with tutorials can be found below:
    http://ninjatrader.com/support/helpG.../tutorials.htm

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

    The best way to begin learning NinjaScript is to use the Strategy Wizard. With the Strategy Wizard 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 Wizard 301' and 'NinjaScript Editor 401' for you to view at your own convenience.
    Strategy Wizard 301 - https://www.youtube.com/watch?v=FmBi...56536A44DD7105
    NinjaScript Editor 401 - https://www.youtube.com/watch?v=K8v_...56536A44DD7105

    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

    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

    Please let me know if you have any questions.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_ChelseaB View Post
      Hello simple_goodoboy,

      It would be possible create a script that draws these lines.

      If the file is a .cvs file you can read this as a text file and split the values by comma or semicolon depending on the way the file is delimited.

      Below is a link to a reference sample that demonstrates reading from a text file.
      http://ninjatrader.com/support/forum...ead.php?t=3476

      If you would like to take on learning NinjaScript, 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 with tutorials can be found below:
      http://ninjatrader.com/support/helpG.../tutorials.htm

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

      The best way to begin learning NinjaScript is to use the Strategy Wizard. With the Strategy Wizard 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 Wizard 301' and 'NinjaScript Editor 401' for you to view at your own convenience.
      Strategy Wizard 301 - https://www.youtube.com/watch?v=FmBi...56536A44DD7105
      NinjaScript Editor 401 - https://www.youtube.com/watch?v=K8v_...56536A44DD7105

      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

      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

      Please let me know if you have any questions.
      Thank you soo much for all the resources.

      Can you recommend a paid service to teach the basics of programming in NinjaTrader with #C with examples?

      Comment


        #4
        Hello simple_goodoboy,

        This is Ryan L. from the NinjaTrader Ecosystem responding on behalf of my colleague Chelsea.

        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!



        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.

        Please let me know if you have any questions, concerns or if I can provide any further assistance by responding to this thread at your convenience.
        Ryan L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by superkolleech, Today, 12:46 AM
        1 response
        10 views
        0 likes
        Last Post MojoJojo  
        Started by davidwade, Today, 02:51 AM
        0 responses
        2 views
        0 likes
        Last Post davidwade  
        Started by aviat72, 04-26-2020, 09:41 PM
        10 responses
        90 views
        0 likes
        Last Post kissandfly  
        Started by healthooa, Today, 01:28 AM
        0 responses
        7 views
        0 likes
        Last Post healthooa  
        Started by harjinderjit, Yesterday, 08:24 PM
        0 responses
        20 views
        0 likes
        Last Post harjinderjit  
        Working...
        X