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 NM_eFe, Today, 05:15 PM
                        0 responses
                        2 views
                        0 likes
                        Last Post NM_eFe
                        by NM_eFe
                         
                        Started by vitaly_p, Today, 05:09 PM
                        0 responses
                        1 view
                        0 likes
                        Last Post vitaly_p  
                        Started by cmtjoancolmenero, Today, 05:05 PM
                        0 responses
                        1 view
                        0 likes
                        Last Post cmtjoancolmenero  
                        Started by lucasmelo152, 06-28-2021, 12:51 PM
                        8 responses
                        2,124 views
                        0 likes
                        Last Post Ymcapital  
                        Started by Creamers, 04-27-2024, 05:32 AM
                        11 responses
                        69 views
                        0 likes
                        Last Post Creamers  
                        Working...
                        X