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 lightsun47, Today, 03:51 PM
    0 responses
    2 views
    0 likes
    Last Post lightsun47  
    Started by 00nevest, Today, 02:27 PM
    1 response
    8 views
    0 likes
    Last Post 00nevest  
    Started by futtrader, 04-21-2024, 01:50 AM
    4 responses
    41 views
    0 likes
    Last Post futtrader  
    Started by Option Whisperer, Today, 09:55 AM
    1 response
    13 views
    0 likes
    Last Post bltdavid  
    Started by port119, Today, 02:43 PM
    0 responses
    8 views
    0 likes
    Last Post port119
    by port119
     
    Working...
    X