Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Slowly running

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

    #16
    You're welcome. Good luck.
    Josh P.NinjaTrader Customer Service

    Comment


      #17
      jrbolsa,

      I would read the file only once at Initialize() and store the data in a local data structure. Then you could read from there on every bar's update.

      Regards
      Ralph

      Comment


        #18
        Hi jrbolsa,

        for the C# input, those are great tutorials we recommend - http://www.softsteel.co.uk/tutorials.../contents.html

        Comment


          #19
          Bertrand,

          Thanks for the link. You can never have too many good C# "How To" links. Just a suggestions: NT might want to create a list of the best C# sites the same way the "Samples" are organized. Might be of help for the partially knowledgable C# coders such as myself and reduce some support questions.

          Comment


            #20
            Hi TAJTrades,

            Very true and thanks for the suggestion. The link was actually taken from our Getting started with NinjaScript section - http://www.ninjatrader-support.com/H...verview20.html

            Comment


              #21
              reading the file only once at Initialize()

              That's not a bad idea, but i'm afraid it would be very heavy for the PC's RAM (the xls files have - if only considered from year 2000 - 78 KB with 500 lines and 13 columns, a 500x13 array...). I'll test it.

              Thank you very much for the suggestion.

              Nevertheless, it will take some time to read the file and fill the array. I was talking to Daniel about this: if this indicators run well, it would be better to convert these data into a "ninjatrader" format if there is any. I don't know hoy Ninjatrader keeps the historical data, but if it does, this would be the better solution.

              thanks a lot to all of you, sincerely,
              jr.

              Comment


                #22
                Hi jr,

                yes, I think you should expect 100k Bytes of ram usage or even more. But I am sure that would operate much, much faster.

                To read the data into the NT database is a good idea. You could import a textfile with the HistoricalData-Import utility. Perhaps you need to define a new instrument in the instrument manager, in case your data doesn't represent a real-world instrument. Finally you would probably develop a multi-instrument strategy to get the desired comparison done.

                Regards
                Ralph

                Comment


                  #23
                  Ok.
                  I only need to resolve some questions. Two of them are:
                  i) how can i know from coding what product (index, stock, etc.) is in the chart in order to search for its cot. It would be ok to print it.
                  ii) if i can import that data, the data should be abble to be used like an indicator using some coding, but not like a chart in the chart window. It should appear in the indicator window.

                  and now, go on coding ...

                  regards,
                  jr.

                  Comment


                    #24
                    1. http://www.ninjatrader-support.com/H...mentClass.html
                    2. Why would imported data show up as an indicator? Imported data is data for an instrument and will show up as an instrument's data for a chart. Under no circumstance would imported data show up as an indicator.
                    Josh P.NinjaTrader Customer Service

                    Comment


                      #25
                      Because the data that you have must be imported in different ways depending of the chart you have. It is not the same how you must import it to a weekly chart or if you have a daily chart (the data is in weekly format). And you must consider the dates. You can have a chart starting in 1995 and the data of the cot only from 2000 and viceversa. You must consider when they consider the "starting" of the week (tuesday, friday, sunday?) and when Ninjatrader consider it in the weekly chart. Don't worry. If you can import the data you can do almost anything ;-)
                      thanks,
                      jr.

                      Comment


                        #26
                        Hi jrbolsa,

                        Please see this link - http://www.ninjatrader-support.com/H...V6/Import.html

                        It explains the guidelines how to import historical data in NinjaTrader.

                        You should then be able to access it like any other instrument...

                        Comment


                          #27
                          Ok. I know. I did it with Metastock (take a look at http://www.jrbolsa.com/080423ms.htm or http://www.jrbolsa.com/080428lu.htm) you can see there probably what you are telling me to do with Ninjatrader. Ok, but it need be done in a different way (http://www.jrbolsa.com/080601pc.htm).
                          Give me a month or two (you know, Christmas holidays...).
                          jr.

                          Comment


                            #28
                            Another question: You can't see any stock from yahoo at this moment (it isn't end-of-day), can you?. I'm having again the same problem (I don't need ZenFire with "ES" only in minute bar and Yahoo doesn't work in these hours)... aarrrggg!
                            Problems to work...

                            Comment


                              #29
                              Hi jrbolsa,
                              The connection to Yahoo runs fine, but you will get daily equity data from them.

                              Please see this grid as an overview over your data options in NinjaTrader - http://www.ninjatrader-support.com/H...ricalData.html

                              What symbol and interval are you looking for?

                              Comment


                                #30
                                I don't mind the symbol. And I don't mind the interval. A daily or weekly chart of any symbol. If it could be a commodity (crude oil, soybean, soybean oil, wheat, oat ...) much better but it doesn't mind by now. I'm still learning how to programm in C# and i'm fighting with dates and reading from a text file.
                                thank you,
                                jr.

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                                0 responses
                                648 views
                                0 likes
                                Last Post Geovanny Suaza  
                                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                                0 responses
                                369 views
                                1 like
                                Last Post Geovanny Suaza  
                                Started by Mindset, 02-09-2026, 11:44 AM
                                0 responses
                                108 views
                                0 likes
                                Last Post Mindset
                                by Mindset
                                 
                                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                                0 responses
                                572 views
                                1 like
                                Last Post Geovanny Suaza  
                                Started by RFrosty, 01-28-2026, 06:49 PM
                                0 responses
                                573 views
                                1 like
                                Last Post RFrosty
                                by RFrosty
                                 
                                Working...
                                X