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 charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        51 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        142 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        160 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        96 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        275 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X