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 jclose, Today, 09:37 PM
                        0 responses
                        4 views
                        0 likes
                        Last Post jclose
                        by jclose
                         
                        Started by WeyldFalcon, 08-07-2020, 06:13 AM
                        10 responses
                        1,413 views
                        0 likes
                        Last Post Traderontheroad  
                        Started by firefoxforum12, Today, 08:53 PM
                        0 responses
                        10 views
                        0 likes
                        Last Post firefoxforum12  
                        Started by stafe, Today, 08:34 PM
                        0 responses
                        10 views
                        0 likes
                        Last Post stafe
                        by stafe
                         
                        Started by sastrades, 01-31-2024, 10:19 PM
                        11 responses
                        169 views
                        0 likes
                        Last Post NinjaTrader_Manfred  
                        Working...
                        X