• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

calculating P&L for multiple accounts

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

    calculating P&L for multiple accounts

    I am using 2 strategies with 2 accounts.

    Strategy A with Account A
    Strategy B with Account B

    Is there a way for Strategy A the P&L of both accounts.

    I want to add a condition where if either strategy trades and hits a certain goal, stop trading on both strategies.

    #2
    Hello pmfracer,

    Welcome to the NinjaTrader support forums.

    A strategy by nature will only know about one account because it can only be applied to a single account. All of its properties will relate to either its virtual values or that selected account.

    Strategies are not intended to be used with more than one account, if you wanted to use more than one account that would be better executed as an addon. With addons you can store accounts as objects so you could in theory use two separate accounts in your tool. An addon is a blanket term, that can mean to use an Indicator in this case if you need price data to execute trades. You can see the following links for examples of accessing and usign an account:
    https://ninjatrader.com/support/help...ount_class.htm
    https://ninjatrader.com/support/help...nt8/submit.htm
    https://ninjatrader.com/support/helpGuides/nt8/get.htm


    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by polo0202, Today, 12:15 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_BrendanC  
    Started by GARZONJ, Today, 11:27 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by NtFan, Today, 11:08 AM
    0 responses
    6 views
    0 likes
    Last Post NtFan
    by NtFan
     
    Started by anamaria0589, Today, 09:39 AM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_Jermaine  
    Started by mcjosejavier, Today, 09:54 AM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Heath  
    Working...
    X