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 sjsj2732, Yesterday, 04:31 AM
        0 responses
        39 views
        0 likes
        Last Post sjsj2732  
        Started by NullPointStrategies, 03-13-2026, 05:17 AM
        0 responses
        290 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        289 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        135 views
        1 like
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        96 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Working...
        X