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 geddyisodin, 04-25-2024, 05:20 AM
    8 responses
    61 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by jxs_xrj, 01-12-2020, 09:49 AM
    4 responses
    3,287 views
    1 like
    Last Post jgualdronc  
    Started by Option Whisperer, Today, 09:55 AM
    0 responses
    5 views
    0 likes
    Last Post Option Whisperer  
    Started by halgo_boulder, 04-20-2024, 08:44 AM
    2 responses
    22 views
    0 likes
    Last Post halgo_boulder  
    Started by mishhh, 05-25-2010, 08:54 AM
    19 responses
    6,189 views
    0 likes
    Last Post rene69851  
    Working...
    X