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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        47 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        22 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        15 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        21 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        23 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X