Announcement

Collapse
No announcement yet.

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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    62 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    32 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    44 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    58 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    47 views
    0 likes
    Last Post CarlTrading  
    Working...
    X