Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Accessing order fill price and quantity

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

    Accessing order fill price and quantity

    There is no method to access the actual fill information of a specific order. At this time, what can be done is check the Position properties such as:

    Position.AvgPrice
    Position.MarketPosition
    Position.Quantity

    This will return values based on the strategies total position regardless of signal names. We already have on our list to enhance this by providing a future method(s) to access positions tagged by an entry order signal name.

    Ray
    RayNinjaTrader Customer Service

    #2
    Hi Ray, I was wondering about having both long and short positions--but not always together! :-) I was wondering what the Position object is supposed to represent, but I guess this post answers my question, and is consistent with the documentation on Positions, which states that "This property should only be used when your strategy is executing orders against multiple instruments."

    As silly as it sounds, I am currently thinking about keeping both a long and a short position open on the same instrument while I am in the middle of reversing my position.

    Do you have any further thoughts on the subject?

    Comment


      #3
      "Position" and "Positions" are a little different. "Positions" is used to help you determine your position on multiple instruments (if you have a multi-instrument strategy). "Position" informs you of your position of the current instrument being processed.
      Josh P.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CortexZenUSA, Today, 12:53 AM
      0 responses
      1 view
      0 likes
      Last Post CortexZenUSA  
      Started by CortexZenUSA, Today, 12:46 AM
      0 responses
      1 view
      0 likes
      Last Post CortexZenUSA  
      Started by usazencortex, Today, 12:43 AM
      0 responses
      5 views
      0 likes
      Last Post usazencortex  
      Started by sidlercom80, 10-28-2023, 08:49 AM
      168 responses
      2,265 views
      0 likes
      Last Post sidlercom80  
      Started by Barry Milan, Yesterday, 10:35 PM
      3 responses
      11 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Working...
      X