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 MarianApalaghiei, Today, 10:49 PM
                  1 response
                  5 views
                  0 likes
                  Last Post NinjaTrader_Manfred  
                  Started by love2code2trade, Yesterday, 01:45 PM
                  4 responses
                  28 views
                  0 likes
                  Last Post love2code2trade  
                  Started by funk10101, Today, 09:43 PM
                  0 responses
                  7 views
                  0 likes
                  Last Post funk10101  
                  Started by pkefal, 04-11-2024, 07:39 AM
                  11 responses
                  37 views
                  0 likes
                  Last Post jeronymite  
                  Started by bill2023, Yesterday, 08:51 AM
                  8 responses
                  45 views
                  0 likes
                  Last Post bill2023  
                  Working...
                  X