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 Haiasi, 04-25-2024, 06:53 PM
                  2 responses
                  17 views
                  0 likes
                  Last Post Massinisa  
                  Started by Creamers, Today, 05:32 AM
                  0 responses
                  5 views
                  0 likes
                  Last Post Creamers  
                  Started by Segwin, 05-07-2018, 02:15 PM
                  12 responses
                  1,786 views
                  0 likes
                  Last Post Leafcutter  
                  Started by poplagelu, Today, 05:00 AM
                  0 responses
                  3 views
                  0 likes
                  Last Post poplagelu  
                  Started by fx.practic, 10-15-2013, 12:53 AM
                  5 responses
                  5,407 views
                  0 likes
                  Last Post Bidder
                  by Bidder
                   
                  Working...
                  X