Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Position.MarketPosition

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

    Position.MarketPosition

    Say I have two automated strategies running on the same instrument during market hours.

    If automated strategy #1 contains the NinjaScript condition...

    Code:
    [COLOR=black][FONT=Verdana]if(Position.MarketPosition == MarketPosition.Flat)
    [/FONT][/COLOR]
    ... will this be evaluated just in respect of the market position vis-à-vis strategy #1, or will the market position of strategy #2 for the same instrument also be taken into account, too?

    #2
    Hello AnotherTrader,

    Thank you for your post.

    That statement is only evaluated against the strategy that is calling it. There is no communication between two different strategies.
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    64 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    35 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    58 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    61 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    49 views
    0 likes
    Last Post CarlTrading  
    Working...
    X