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

Mulit-Instrument Strategy P&L

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

    Mulit-Instrument Strategy P&L

    On the strategies tab I only get the P&L for the main instrument, and on the other added instruments there is the text

    "In order to display Realized PnL per instrument the strategy developer must enable the strategy to include trade history".

    Please advise what code exists to enable this trade history.

    Regards and thx

    #2
    Hello everington_f,

    IncludeTradeHistoryInBacktest must be set to true in State.SetDefaults or State.Configure. You must also be using 64-bit NinjaTrader 8.

    After any changes to State.SetDefaults, you will need to remove the instance of the script and add a new instance for the changes to take affect.

    Below is a public link to the help guide.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by lorem, Yesterday, 09:18 AM
    5 responses
    19 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by WHICKED, Today, 12:56 PM
    2 responses
    15 views
    0 likes
    Last Post WHICKED
    by WHICKED
     
    Started by Felix Reichert, Today, 02:12 PM
    0 responses
    1 view
    0 likes
    Last Post Felix Reichert  
    Started by Tim-c, Today, 02:10 PM
    0 responses
    1 view
    0 likes
    Last Post Tim-c
    by Tim-c
     
    Started by cre8able, Today, 01:16 PM
    2 responses
    9 views
    0 likes
    Last Post cre8able  
    Working...
    X