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 cmoran13, Yesterday, 01:02 PM
        0 responses
        31 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        22 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        162 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        95 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        151 views
        2 likes
        Last Post CaptainJack  
        Working...
        X