Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by AaronKoRn, Today, 09:49 PM
    0 responses
    6 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Today, 08:42 PM
    0 responses
    9 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Today, 07:51 PM
    0 responses
    10 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,976 views
    3 likes
    Last Post jhudas88  
    Started by rbeckmann05, Today, 06:48 PM
    0 responses
    9 views
    0 likes
    Last Post rbeckmann05  
    Working...
    X