Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 wzgy0920, 04-20-2024, 06:09 PM
              2 responses
              27 views
              0 likes
              Last Post wzgy0920  
              Started by wzgy0920, 02-22-2024, 01:11 AM
              5 responses
              32 views
              0 likes
              Last Post wzgy0920  
              Started by wzgy0920, 04-23-2024, 09:53 PM
              2 responses
              49 views
              0 likes
              Last Post wzgy0920  
              Started by Kensonprib, 04-28-2021, 10:11 AM
              5 responses
              193 views
              0 likes
              Last Post Hasadafa  
              Started by GussJ, 03-04-2020, 03:11 PM
              11 responses
              3,235 views
              0 likes
              Last Post xiinteractive  
              Working...
              X