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 alifarahani, Today, 09:40 AM
    2 responses
    12 views
    0 likes
    Last Post alifarahani  
    Started by junkone, Today, 11:37 AM
    3 responses
    15 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by pickmyonlineclass, Today, 12:23 PM
    0 responses
    1 view
    0 likes
    Last Post pickmyonlineclass  
    Started by frankthearm, Yesterday, 09:08 AM
    12 responses
    44 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by quantismo, 04-17-2024, 05:13 PM
    5 responses
    35 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X