Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Just client.MarketData()

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

    Just client.MarketData()

    Just getting into the NinjaTrader and I think its great. It allows .NET programming with VS8.0 using a NinjaTrader client class, but what I found is that the ONLY market data is from a MarketData() function allowing reading of the current, ask or bid prices. I can't read any indicator or volume data!?

    I have searched through the COM Reference online and thats it!?

    That seems wrong, so I thought I would post and ask.

    What am I missing?

    #2
    Unfortunately your findings are accurate.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Why Not

      Why is this so and is this a restriction being placed on the platform? Any thing I can do to obtain data to outside NT?

      Thanks

      Comment


        #4
        Not a restriction. What is available is what was documented and anything above that is just unfortunately a limitation.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          OK Then

          I played with the Scipts in NT and was able to compile a new strategy that uses some 3rd party .DLL (mine). The dlls allowed me to communicate with another app via TCP/IP. Everything compiled OK with code snippets I have used and tried before. I went to start the strategy and it bombed.

          protected override void OnBarUpdate()
          {
          if (!com_start)
          {
          StartComs("168.168.1.109",10100);
          com_start = true;
          }
          else
          {
          value += 0.01;
          SendMarketData("Value",value);
          }
          }

          StartComs opens the com port and SendMarketData sends data via the opened channel.

          Is there somthing wrong with my approach?

          Comment


            #6
            Originally posted by ilTallman View Post
            I played with the Scipts in NT and was able to compile a new strategy that uses some 3rd party .DLL (mine). The dlls allowed me to communicate with another app via TCP/IP. Everything compiled OK with code snippets I have used and tried before. I went to start the strategy and it bombed.

            protected override void OnBarUpdate()
            {
            if (!com_start)
            {
            StartComs("168.168.1.109",10100);
            com_start = true;
            }
            else
            {
            value += 0.01;
            SendMarketData("Value",value);
            }
            }

            StartComs opens the com port and SendMarketData sends data via the opened channel.

            Is there somthing wrong with my approach?
            I don't have an answer for you...only voicing my interest here as well. I'm trying to learn how to communicate with my own app on every ninja trader trade. I'll be interested in learning what you end up doing.

            Comment


              #7
              What do you mean "it bombed"? Are there any errors in the logs (right-most tab in Control Center)?
              AustinNinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              650 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              370 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              109 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              574 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              577 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X