• 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

Import csv indicators

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

    Import csv indicators

    Hello, I created an indicator in python produces a csv file. I would like to import this data into ninjatrader to use it as an indicator, how can I do it?

    #2
    Use how?

    I mean, using any csv data as an indicator ... huh? ... not sure what you mean.

    Can you be more specific?

    What exactly are you wanting to do with the csv data?

    Comment


      #3
      I presume you mean you need to import the csv data, and then your indicator
      will use that data to do something.

      Is your question how to import the csv data into your NinjaScript indicator?
      If so, that's actually pretty simple ...

      I built my solution based upon this StackOverflow topic,
      https://stackoverflow.com/questions/...-c-with-header

      Good stuff in there.

      Comment


        #4
        unfortunately ninjatrader is limited. I created an indicator in python that processes me daily data. the output is a csv. I have a column with the date other column with values. I would like to see them under an NQ chart.

        Comment


          #5
          Originally posted by bebbus View Post
          unfortunately ninjatrader is limited.
          NinjaTrader is extremely unlimited when used by the skilled Jedi warrior, er, I mean, C# programmer.

          “The dark side of the Force is a pathway to many abilities some consider to be unnatural.” — Chancellor Palpatine

          Naturally, The Emperor was referring to C# and the .NET Framework, and how it provides many opportunities
          for both the Sith and Jedi to extend NinjaTrader in a huge variety of ways.

          Originally posted by bebbus View Post
          I created an indicator in python that processes me daily data. the output is a csv. I have a column with the date other column with values. I would like to see them under an NQ chart.
          Hmm, you mean, like, in a separate panel, like what the CCI or MACD does?

          That is not impossible.

          But it will take some pretty solid C# skills to do that.

          Are you proficient in C# programming?


          Comment


            #6
            Originally posted by bltdavid View Post

            NinjaTrader is extremely unlimited when used by the skilled Jedi warrior, er, I mean, C# programmer.

            “The dark side of the Force is a pathway to many abilities some consider to be unnatural.” — Chancellor Palpatine

            Naturally, The Emperor was referring to C# and the .NET Framework, and how it provides many opportunities
            for both the Sith and Jedi to extend NinjaTrader in a huge variety of ways.



            Hmm, you mean, like, in a separate panel, like what the CCI or MACD does?

            yes

            That is not impossible.

            But it will take some pretty solid C# skills to do that.

            Are you proficient in C# programming? no
            I'm not an expert on C.


            I'm not an expert on C.

            Comment


              #7
              This project is more suited for a skilled C# programmer familiar with NinjaScript.

              You may want to reach out to a 3rd party developer, try looking at this post for more information.

              Hang in there, what you want may be relatively straightforward.

              Good luck!

              PS: Are you an member of http://futures.io?
              This website offers lots of support for NinjaTrader users, they have many free indicators and
              lots of informative threads, esp this one.

              Comment


                #8
                bebbus

                You should consider the chart lag that you will create by plotting an extensive amount of text data in an indicator. Too much data can make your chart practically unusable. I have an indicator that displays about 10 rows of short Draw.Text elements for my design and troubleshooting needs, and can only display 2-3 days worth of 1 minute data before the chart starts to lag. I'm using an 8 core/16 thread/32GB PC with a mid-level gaming graphics card. I believe that using OnRender for your display elements can mitigate the lag, but not totally prevent it.

                Cheers!

                Comment


                  #9
                  Hi bebbus, thanks for your post.

                  There an example of reading in a CSV file in a simple way in this example:

                  https://stackoverflow.com/questions/...-into-an-array

                  To plot the data it will take careful use of plotting and most likely a custom series:

                  https://ninjatrader.com/support/help.../?iseriest.htm

                  For an example on plotting, there are many reference indicators in the NinjaScript editor such as the SMA.
                  Chris L.NinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Alfred, Today, 10:20 AM
                  1 response
                  4 views
                  0 likes
                  Last Post NinjaTrader_PatrickG  
                  Started by emuns, Today, 10:34 AM
                  0 responses
                  1 view
                  0 likes
                  Last Post emuns
                  by emuns
                   
                  Started by swcooke, Yesterday, 10:39 PM
                  3 responses
                  17 views
                  0 likes
                  Last Post bltdavid  
                  Started by stoner, Today, 09:13 AM
                  1 response
                  9 views
                  0 likes
                  Last Post NinjaTrader_Tyler  
                  Started by [email protected], Today, 08:56 AM
                  2 responses
                  6 views
                  0 likes
                  Last Post sabankaradeniz@gmail.com  
                  Working...
                  X