Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Does MarketPosition Cross Strategies?

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

    Does MarketPosition Cross Strategies?


    Is MarketPosition global or local?

    Say I'm running three different strategies simultaneously. In one of the strategies, I go long. Then, in the second and third strategies. will Position.MarketPosition == MarketPosition.Long?

    Thanks again.





    #2
    Hello timmbbo,

    Thanks for your post.

    Position.MarketPosition allows you to determine what the strategy's position is for that specific strategy instance .

    Note that NinjaScript strategies are only able to see orders placed by that specific strategy instance, not manually placed orders or orders placed by other strategy instances.

    PositionAccount.MarketPosition allows you to check what your actual account position is for the account the strategy is enabled on.

    See the help guide documentation below for more information and sample code.

    Position.MarketPosition: https://ninjatrader.com/support/help...etposition.htm
    PositionAccount.MarketPosition: https://ninjatrader.com/support/help...etposition.htm

    Please let me know if I may assist you further.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    88 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    135 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X