Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EasyLanguage to NinjaScript

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

    Thanks for NT8 chartcontrol guide. How would one display a particular position on the chart?

    Comment


      Originally posted by RobinT View Post
      Thanks for NT8 chartcontrol guide. How would one display a particular position on the chart?
      Can you expand on this a bit more? Is it a specific position?

      Comment


        The NTExternal interface for tradestation does not work for indices and I have found the problem and done a quick fix.

        The external interface does symbol mapping and that is the problem.

        For futures, the mapping almost works and @ES in TS gets mapped ok to ES 06 - 16 and ES 03 - 16 ok. However, ES ## - ## does not receive data.

        Stocks, mapping does not work but most stocks have the same name so it has not been noticed. MSFT is the same with most systems but if you put in a name in mapping of say MSFTA it would not be mapped.

        This is the problem with indices, mapping does not work. so $SPX.X. does not get mapped to ^SP500. However, if you make a new TSstrategy for SPX and change the symbol name before calling NTDirect.dll to ^SP500 it all works and the data comes through.

        Comment


          no one interested then. I thought this was quite important.

          Comment


            In the how bars are built section it talks about timestamped data. I feed NT fromTradestation and near the end of a bar there can be discrepancies. The way round it would be to send a timestamp. I cant see a way off getting timestamped data in to TS except through the market replay connection. I that how to do it?

            Comment


              Originally posted by RobinT View Post
              In the how bars are built section it talks about timestamped data. I feed NT fromTradestation and near the end of a bar there can be discrepancies. The way round it would be to send a timestamp. I cant see a way off getting timestamped data in to TS except through the market replay connection. I that how to do it?
              I do not follow. You should be able to import timestamped data in NinjaTrader from TradeStation. Please review our documentation on this at the following link: http://ninjatrader.com/support/helpG.../importing.htm

              Comment


                Sorry I meant real time data. Historical, no problem.

                Comment


                  Hello RobinT,

                  Thank you for clarifying.

                  There is a process for this, have you followed the instructions at the link below?
                  This would be the only means to "import" real-time data.

                  Comment


                    Yes, and TS data is not timestamped. I was just trying to deal with the tiny discrepancies that occur at the end of a bar due to different clocks.

                    Comment


                      Hello RobinT,

                      Are you stating the data when received by NinjaTrader from TradeStation is not timestamped?

                      Comment


                        yes, I am using the

                        [DllImport("NTDirect.dll")]
                        public static extern int Last(string instrument, double price, int size);

                        interface, and time is not passed to NT through this interface from TS or any other source.

                        Comment


                          Project has gone well and all working.

                          I am now trying to get data into the system automatically. As I cannot call the historical data manager, I am trying to create the .nta file myself. Is the format published?

                          Comment


                            Hello RobinT,

                            The NTM and NTD formats are not published.

                            Comment


                              Do you know how to connect the external interface via program.
                              teardown disconnects
                              and connected shows the status.

                              Calling any function in the DLL will automatically initiate a connection to the server, but that doesn't seem to happen with Last.

                              Comment


                                Hello RobinT,

                                I am not sure I follow your inquiry. Are you connecting via the External Data Feed connection? - http://ninjatrader.com/support/helpG...connection.htm

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                                0 responses
                                599 views
                                0 likes
                                Last Post Geovanny Suaza  
                                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                                0 responses
                                344 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
                                558 views
                                1 like
                                Last Post Geovanny Suaza  
                                Started by RFrosty, 01-28-2026, 06:49 PM
                                0 responses
                                557 views
                                1 like
                                Last Post RFrosty
                                by RFrosty
                                 
                                Working...
                                X