Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MarketPosition question

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

    MarketPosition question

    Goal: To have a strategy run that compares actual positions to strategy positions for an instrument and alerts me when they are different.

    1st test: Test a strategy that if the MarketPosition = "flat", write a message to the log saying "Order is flat" in my Sim101 account.

    Results: Was flat in the market and indeed the strategy logged this. Then I manually entered into the market. The strategy still logs "Order is flat".

    Question: Why is this? I thought that marketposition is the actual position. Am I wrong? What methods can be used to determine strategy positions and actual positions?
    Attached Files

    #2
    Position.MarketPosition is in the scope of the strategy. NT7 will support access to account based position.

    Here is some more relevant information - http://www.ninjatrader-support.com/v...ead.php?t=4033
    RayNinjaTrader Customer Service

    Comment


      #3
      Ray,

      Thanks for the reply. I had already read the link explaining the difference between a strategy position and a "real" account position. That I understand. From your post, it sounds like Position.MarketPosition refers to the strategy position and NT7 will contain a new method to access the actual position for an instrument. Is there a time frame on when NT7 will be available to start using?

      Comment


        #4
        Your understanding is correct. Targeting end of year for beta.
        RayNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        558 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        324 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        545 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        547 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X