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

Tick Level data

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

    Tick Level data

    I wish to analyze the data at the tick level. Do you have an example I might look at? What variables are available?
    Thanks!

    #2
    Hello morrnel,

    Thanks for your post.

    You could create an indicator that uses a Calculate mode of OnEachTick to have an indicator process and calculate values for each incoming tick.

    See this help guide page for more information about Calculate: https://ninjatrader.com/support/help.../calculate.htm

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

    Here is a link to our publicly available training video, 'NinjaScript Editor 401', for you to view at your own convenience.

    NinjaScript Editor 401 - https://youtu.be/H7aDpWoWUQs?list=PL...We0Nf&index=14

    I am also linking you to the Educational Resources section of the Help Guide:
    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

    Let us know if we may assist further.
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      this is awesome! THanks.
      btw, I am quite experienced with C#. I just need the logic unque to NinjaTrader.

      Next question, I wish to develop logic using the Python language. I know I can create data putting it into a csv or xlsx. But how do I go ab out accessing the data live? Or do I need to use another brokerage for that?

      I just need the live feed.

      Comment


        #4
        Hello morrnel,

        Thanks for your note.

        NinjaTrader uses C# for developing NinjaScripts, not the Python programming language.

        Unfortunately, working with the Python programming language is not something we would be able to provide assistance with. Further, we do not provide C# programming education services in our support. This is so that we can maintain a high level of service for all of our clients as well as our partners.

        That said, NinjaTrader does have an API available as a C# managed and unmanaged assembly. Support for the API is very limited.

        The Application Programming Interface (API) is available in the NTDirect.dll (unmanaged) and NinjaTrader.Client.dll (managed) files for you to use in an external application to interface with NinjaTrader. These two files provide the same functions, however, you may find the NinjaTrader.Client.dll is easier to reference in your custom application.

        Support for the API is limited from NinjaTrader Support. We are not able to assist with any code in an application external to NinjaTrader. We are able to detail the usage of any methods available from the API.

        Below I am providing a publicly available link to the help guide that lists the functions available to the API.
        Help Guide NT8 API functions - http://ninjatrader.com/support/helpG..._interface.htm

        Please also refer to this forum post link for more information about the NinjaTrader API — https://ninjatrader.com/support/foru...art#post793626

        This forum thread will be open for other developers in the community to share their insight if anyone has tips for unsupported external application code.

        Let us know if we may assist further.
        Brandon H.NinjaTrader Customer Service

        Comment


          #5
          After reading the first response again, perhaps I asked the wrong quesiton. I will try again.

          I wish to analyze the data at the tick level. Do you have an example analyzing tick level data I might look at? What variables are available?

          Comment


            #6
            Hello morrnel,

            Thanks for your note.

            Please provide a brief description explaining what exactly you mean by "analyzing tick level data".

            What exactly is the data are you wanting to analyze in your script?

            You could create a NinjaScript that uses a Calculate mode of OnEachTick to have the script process information for each incoming tick that occurs. For example, if you are wanting to print out Open, High, Low, Close price data for each incoming tick that occurs, you could add prints to the script that print out the current Open[0], High[0], Low[0], Close[0].

            OnMarketData() could be used to get the bid, ask, last price, and volume for every change in level one market data for an underlying instrument.

            See the help guide documentation below for more information.

            PriceSeries: https://ninjatrader.com/support/help...riceseries.htm
            Calculate: https://ninjatrader.com/support/help.../calculate.htm
            OnMarketData: https://ninjatrader.com/support/help...marketdata.htm

            Let us know if we may assist further.
            Brandon H.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by jaybedreamin, Today, 05:56 PM
            0 responses
            3 views
            0 likes
            Last Post jaybedreamin  
            Started by DJ888, 04-16-2024, 06:09 PM
            6 responses
            18 views
            0 likes
            Last Post DJ888
            by DJ888
             
            Started by Jon17, Today, 04:33 PM
            0 responses
            1 view
            0 likes
            Last Post Jon17
            by Jon17
             
            Started by Javierw.ok, Today, 04:12 PM
            0 responses
            6 views
            0 likes
            Last Post Javierw.ok  
            Started by timmbbo, Today, 08:59 AM
            2 responses
            10 views
            0 likes
            Last Post bltdavid  
            Working...
            X