• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Position.Quantity

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

    #16
    Is it possible to plot the current position size held? I've tried AddPlot() using the Position.Quantity, but have not been able to find the proper sequence.

    Comment


      #17
      Hello scottd77,

      Thank you for your post and welcome to the NinjaTrader Support Forum!

      Originally posted by scottd77 View Post
      Is it possible to plot the current position size held? I've tried AddPlot() using the Position.Quantity, but have not been able to find the proper sequence.
      Are you looking to do this in NinjaTrader 7 or 8? Are you looking for a specific strategy's position or the account position?

      I look forward to your response.
      Patrick H.NinjaTrader Customer Service

      Comment


        #18
        Sorry should have been more specific. I"m using NT8 and I'm looking for a specific strategy position.

        Comment


          #19
          Hello scottd77,

          Thank you for your response.

          Attached is an example of plotting the Unrealized PnL from within a strategy.
          Attached Files
          Patrick H.NinjaTrader Customer Service

          Comment


            #20
            Thanks Patrick. I've taken the code example and played around with it a bit to try and get the total number of contracts i'm net short/long for the strategy, While i now can get a plot line, it's just a zero horizontal line and it doesn't pickup when i see in simulation where the strategy has bought or sold a contract.

            Comment


              #21
              Hello scottd77,

              Thank you for your response.

              Can you attach your strategy to your response so we may investigate further?
              If you prefer you can send it to platformsupport[at]ninjatrader[dot]com with 'ATTN: Patrick H - 1506626' in the subject line.

              Strategy file will be under Documents\NinjaTrader 8\bin\Custom\Strategies on your PC.
              Patrick H.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Captain_Qwark, Today, 10:55 AM
              3 responses
              18 views
              0 likes
              Last Post NinjaTrader_PaulH  
              Started by kmpc1, Today, 11:03 AM
              1 response
              13 views
              0 likes
              Last Post NinjaTrader_PatrickG  
              Started by jransom, Today, 09:08 AM
              1 response
              17 views
              0 likes
              Last Post NinjaTrader_Kate  
              Started by mtamaku, Today, 09:19 AM
              0 responses
              23 views
              0 likes
              Last Post mtamaku
              by mtamaku
               
              Started by traderMNQ, Today, 09:00 AM
              4 responses
              20 views
              0 likes
              Last Post traderMNQ  
              Working...
              X