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

MarketDepthEventArgs Price

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

    MarketDepthEventArgs Price

    Good Morning,

    with OnMarketDepth(MarketDepthEventArgs e)

    Print(e.Price.ToString()); doesn't print anything
    whereas Print(e.Position.ToString()) does.

    Why is that?

    NT 7.0.1000.9, kinetick, with /es

    Regards

    #2
    diff42rac,

    Do you have a subscription to Kinetick for real time data? I currently am getting price prints using this method and kinetick.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      yes i do

      JF

      Comment


        #4
        It's only working in onmarketdata

        Comment


          #5
          JF,

          Do you subscribe to Market Depth in your Kinetick subscription? It may be you are not receiving this data.
          Adam P.NinjaTrader Customer Service

          Comment


            #6
            i do receive the data: e.position, e.volume, e.marketdatatype, e.mar****peration, e.time, i just don't get e.price.

            Comment


              #7
              diff42rac,

              You may need to contact kinetick and verify that you have the market depth subscription here. I am currently unable to replicate on my end using this method with such a subscription. The subscription is an extra monthly fee.



              If you could also post more of your code I could test on my end.
              Adam P.NinjaTrader Customer Service

              Comment


                #8
                here is the billing:

                Market Depth 4/1/2012 - 5/1/2012 $20.00 USD

                Comment


                  #9
                  diffrac,

                  Ok thanks for verifying; I wasn't clear if you did or not from your previous posts.

                  Do you perhaps have a code sample I may run on my end? If it works here I may need to test your kinetick connection.

                  If you simply run this :

                  protected override void OnBarUpdate()
                  {
                  }

                  protected override void OnMarketDepth(MarketDepthEventArgs e)
                  {
                  Print(e.Price.ToString());
                  }

                  Does it work?
                  Adam P.NinjaTrader Customer Service

                  Comment


                    #10
                    i've closed the chart and opened a new one, now it's working.

                    Comment


                      #11
                      sorry to have bothered you, but it was just too odd

                      Comment


                        #12
                        diffrac,

                        You are definitely not bothering us. We are here to help. I am happy your issue is resolved, please let us know if you require additional assistance.
                        Adam P.NinjaTrader Customer Service

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by The_Sec, Yesterday, 03:37 PM
                        1 response
                        11 views
                        0 likes
                        Last Post NinjaTrader_Gaby  
                        Started by vecnopus, Today, 06:15 AM
                        0 responses
                        1 view
                        0 likes
                        Last Post vecnopus  
                        Started by Aviram Y, Today, 05:29 AM
                        0 responses
                        5 views
                        0 likes
                        Last Post Aviram Y  
                        Started by quantismo, 04-17-2024, 05:13 PM
                        3 responses
                        27 views
                        0 likes
                        Last Post NinjaTrader_Gaby  
                        Started by ScottWalsh, 04-16-2024, 04:29 PM
                        7 responses
                        36 views
                        0 likes
                        Last Post NinjaTrader_Gaby  
                        Working...
                        X