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

Seeing positions of other strategies

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

    Seeing positions of other strategies

    Hey guys, is there anyway to see if another strategy has a position open?

    Here's what I want to do:
    Inside strategy 2, I want to check to see if strategy 1 already has an open position, if so, bypass strategy 2 opening a position, if strategy 1 is flat, then strategy 2 would open a position.

    Anyway to do this?

    Thanks,
    EliteTraderNYC

    #2
    Hello EliteTraderNYC,

    I am not aware of a way to get a Strategy's position from one strategy to another besides writing values to a file and reading them in another strategy but there is an unsupported method to be able to get an Account's position that you may use to see if your account is Flat or in a position so that you may bypass this.

    The following link will give you an example of this unsupported way to get a position from an account.
    JCNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Brevo, Today, 01:45 AM
    0 responses
    6 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    3 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    242 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    384 views
    1 like
    Last Post Gavini
    by Gavini
     
    Started by oviejo, Today, 12:28 AM
    0 responses
    6 views
    0 likes
    Last Post oviejo
    by oviejo
     
    Working...
    X