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 rbeckmann05, Today, 06:48 PM
    0 responses
    4 views
    0 likes
    Last Post rbeckmann05  
    Started by rhyminkevin, Today, 04:58 PM
    4 responses
    52 views
    0 likes
    Last Post dp8282
    by dp8282
     
    Started by iceman2018, Today, 05:07 PM
    0 responses
    5 views
    0 likes
    Last Post iceman2018  
    Started by lightsun47, Today, 03:51 PM
    0 responses
    8 views
    0 likes
    Last Post lightsun47  
    Started by 00nevest, Today, 02:27 PM
    1 response
    14 views
    0 likes
    Last Post 00nevest  
    Working...
    X