Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EasyLanguage to NinjaScript

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

    #91
    Thank you for the nthLowest suggestion.

    I am not connected my data is all Historical.

    I have 1 minute data from Tradestation going back to 1/1/15 for both @ES continuous futures and SPX. I import these both with Historic Data Manager. SPX (^SP500) works fine and if I rename ES to SPY stock it works fine too. However, as ES 03-16 it only goes back to 12/11/15.

    Comment


      #92
      I thought I had a brainwave and everything I needed would be in the registry but alas NT does not appear to use the registry. I have nearly finished the app and here is what I still need:

      1- How do I get the screen resolution into NT, I mean of the chart not the actual screen res.

      2 - How do I scroll to a DateTime on the chart?

      3 - How do I get the license key or system ID so I can use my security?

      4 - You can RemoveDrawObject( tgt.Tag ) ; using the Tag but is there a way of getting the other properties via the Tag. I had to store all the IRay objects in an array and index them, very tedious.

      5 - Is there a way of automating the Historical Data Import process?

      Comment


        #93
        More on the data problem.

        All data Historical, not connected to a feed. Exported 1 minute data from Tradestation using the NT supplied strategy.

        Data taken from @ES which is continuous futures back to 1/1/15.

        Two copies, one named ES 03-16 and one called SPY.

        Both import OK but ES only goes back to 12/11 but SPY works.

        New problem, Timezone.

        The data is all timestamped correctly from 2:30 pm to 9PM (UK NYSE opening hours).

        The data is all imported ok as I have checked it with the data editor in Historical data manager. All data has same timestamps for whole year.

        But, when loaded, NT compensates for summer time and leaves a blank for a hour when summer time put the clocks out of sync. I cant find any way of turning this off. Ideas?

        Comment


          #94
          what do you know about:

          int y = ChartControl.

          this seems to include everything I want, but there is no documentation.

          Comment


            #95
            It looks like

            int z = ChartControl.BarSpace ;

            give me screen resolution.

            do you know which one give me scroll position?

            Comment


              #96
              I was able to solve all my screen resolution issues with:

              res = ChartControl.BarSpace ; // gives bar spacing
              value1 = ChartControl.Width ; // gives horizontal window size
              value3 = ChartControl.BarsPainted ; // gives number of bars visible
              res_offset = ( MAX( High, value3 )[0] - MIN( Low, value3 )[0] ) / 35;
              // gives vertical resolution
              so all resolution problems solved.

              I think scroll position is something to do with:

              Point z = new Point ( 200, 200 ) ;
              ChartControl.AutoScrollOffset = z ;

              and I would appreciate help with the timezone problem and license key.

              Comment


                #97
                Hello RobinT,

                Can you attach the ES historical data to your response so we may test on our end?

                What Licensing item do you refer to?

                Comment


                  #98
                  I had to trim the file to upload it and I was referring to the NT license.
                  Attached Files

                  Comment


                    #99
                    For my security got Windows ID from registry.

                    string key = @"Software\Microsoft\Windows NT\CurrentVersion" ;
                    string pid = Registry.LocalMachine.OpenSubKey( key ).GetValue("ProductId").ToString();

                    Comment


                      And is there a reference guide to ChartControl ?

                      Comment


                        Originally posted by RobinT View Post
                        I had to trim the file to upload it and I was referring to the NT license.
                        The data in the file only goes back to 20150302, is this the same on your end?

                        For the Licensing Item can you clarify on what you are experiencing?

                        Comment


                          Originally posted by RobinT View Post
                          For my security got Windows ID from registry.

                          string key = @"Software\Microsoft\Windows NT\CurrentVersion" ;
                          string pid = Registry.LocalMachine.OpenSubKey( key ).GetValue("ProductId").ToString();
                          I am not sure what you are looking for here.

                          Comment


                            Originally posted by RobinT View Post
                            And is there a reference guide to ChartControl ?
                            Not for NinjaTrader 7 as it was unsupported. In NinjaTrader 8 it is available at the following link: http://ninjatrader.com/support/helpG...artcontrol.htm

                            Comment


                              No as I had to trim the file to get it down to 1mb.The problem is that NT compensates for summer time.

                              Comment


                                Originally posted by RobinT View Post
                                I dont seem to be able to display ES 03-16 before 12/11/15 even thogh I have 1 minute historical data going back to 12-30-14. I have SPX data for the same period and it displays ok. What am I doing wrong?
                                Probably nothing. ES 03-16 became the current contract on 12/11/2015 or thereabouts. There's really no recording of data before that. You should be on ES 12-15.

                                Anyways - Try to use ES ##-##.. Search on it here. continuous contract stuff. (sorry, I don't use it).

                                *edit* ack - this was 3 days ago... my bad
                                Last edited by sledge; 03-10-2016, 08:52 PM.

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                                0 responses
                                601 views
                                0 likes
                                Last Post Geovanny Suaza  
                                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                                0 responses
                                347 views
                                1 like
                                Last Post Geovanny Suaza  
                                Started by Mindset, 02-09-2026, 11:44 AM
                                0 responses
                                103 views
                                0 likes
                                Last Post Mindset
                                by Mindset
                                 
                                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                                0 responses
                                559 views
                                1 like
                                Last Post Geovanny Suaza  
                                Started by RFrosty, 01-28-2026, 06:49 PM
                                0 responses
                                558 views
                                1 like
                                Last Post RFrosty
                                by RFrosty
                                 
                                Working...
                                X