Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ntmarketposition not working

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

    ntmarketposition not working

    ntmarketposition("12345!Dorman!Dorman") is returning zero
    when there is a live trade in the account.
    Sim101 is working.
    help

    #2
    Please be sure that is the correct account string since Sim101 works for you.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      please see the screen shots
      log below

      post deleted.
      Last edited by kiwibird; 01-07-2009, 03:22 PM.

      Comment


        #4
        Order generated from TradeStation? Submitted to 24920!Dorman!Dorman?
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          correct, you can see that sim101 works fine and dorman executed, but did not run.
          Last edited by kiwibird; 01-07-2009, 03:08 PM.

          Comment


            #6
            If you open the NTMarketPosition function you will see it just wraps the NTDirect.dll function "MarketPosition". Can you try ammending the NTMarketPosition function temporarily and replace the GetSymbolName paramter with "FDAX 03-09" and try again and see if you get the proper return value?

            Thanks
            RayNinjaTrader Customer Service

            Comment


              #7
              Also, what NT version are you running, Help > About.
              RayNinjaTrader Customer Service

              Comment


                #8
                version 6.5 1000.7 mb live
                thanks for the tip on
                NTMarketPosition = MarketPosition(GetSymbolName, Account);
                I had been running it on a es chart.
                All makes sense now.

                Comment


                  #9
                  That would be it then kiwibird. Also, we do recommend upgrading to NT6.5.1000.8.
                  Josh P.NinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by RubenCazorla, Today, 09:07 AM
                  2 responses
                  11 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Started by i019945nj, 12-14-2023, 06:41 AM
                  7 responses
                  81 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Started by timmbbo, 07-05-2023, 10:21 PM
                  4 responses
                  158 views
                  0 likes
                  Last Post NinjaTrader_Gaby  
                  Started by tkaboris, Today, 08:01 AM
                  1 response
                  7 views
                  0 likes
                  Last Post NinjaTrader_Gaby  
                  Started by Lumbeezl, 01-11-2022, 06:50 PM
                  31 responses
                  819 views
                  1 like
                  Last Post NinjaTrader_Adrian  
                  Working...
                  X