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 fx.practic, 10-15-2013, 12:53 AM
                  5 responses
                  5,406 views
                  0 likes
                  Last Post Bidder
                  by Bidder
                   
                  Started by Shai Samuel, 07-02-2022, 02:46 PM
                  4 responses
                  98 views
                  0 likes
                  Last Post Bidder
                  by Bidder
                   
                  Started by DJ888, Yesterday, 10:57 PM
                  0 responses
                  8 views
                  0 likes
                  Last Post DJ888
                  by DJ888
                   
                  Started by MacDad, 02-25-2024, 11:48 PM
                  7 responses
                  160 views
                  0 likes
                  Last Post loganjarosz123  
                  Started by Belfortbucks, Yesterday, 09:29 PM
                  0 responses
                  9 views
                  0 likes
                  Last Post Belfortbucks  
                  Working...
                  X