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

Multi-Instrument Strategy Per Instrument PnL

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

    Multi-Instrument Strategy Per Instrument PnL

    The Control Center Strategies tab helpfully shows all Instruments in a multi-Instrument Strategy.

    However, for all but the primary Instrument, there is a comment in the Realized PnL column: "In order to display realized PnL per instrument the strategy developer must enable the strategy to include trade history.".

    Please advise what this means in practice and how one might implement this.

    Thanks.
    Multi-Dimensional Managed Trading
    jeronymite
    NinjaTrader Ecosystem Vendor - Mizpah Software

    #2
    Hello jeronymite,

    Thanks for your post.

    From the help guide: "IncludeTradeHistoryInBacktest" -"Determines if the strategy will save orders, trades, and execution history. When this property is set to false you will see significant memory savings at the expense of having access to the detailed trading information."

    Please see the help guide here: https://ninjatrader.com/support/help...inbacktest.htm

    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_PaulH View Post
      From the help guide: "IncludeTradeHistoryInBacktest" -"Determines if the strategy will save orders, trades, and execution history. When this property is set to false you will see significant memory savings at the expense of having access to the detailed trading information."

      Please see the help guide here: https://ninjatrader.com/support/help...inbacktest.htm
      I saw that and thought it was extremely poorly named, since the name itself
      literally screams out 'this only applies to the Strategy Analyzer'.

      Then I saw the Notes in the help guide,

      Notes:
      Since trade information is not stored you will only see entry/exit executions plotted on the chart with no connecting PnL trade lines.
      In a 32-bit environment the property is always defaulted to false, except when the strategy is running on a chart or in a single-instrument backtest
      In a 64-bit environment the property is always defaulted to true, except when the strategy is running on the strategy tab.

      The parts in red provide forensic clues telling us this property
      applies to more than just backtesting.

      I still think the suffix 'InBacktest' is an incredibly stupid choice
      by whomever made it. At the very least, it is wildly misleading,
      confusing as heck, and performs a grave disservice to the overall
      elegance of the product.

      Moral of the story:
      Just like the classic Unix manual, a careful reading of the help guide
      still needs some elbow grease for the brain, along with ample amount
      of experimentation to discern the underlying truth -- meaning, it's not
      as clearly written as it could be -- you gotta divine things for yourself.

      That is not a good thing.

      Just my 2˘.
      Last edited by bltdavid; 07-09-2021, 08:26 AM.

      Comment


        #4
        thanks for sharing this information

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Stanfillirenfro, Today, 07:23 AM
        4 responses
        20 views
        0 likes
        Last Post Stanfillirenfro  
        Started by DayTradingDEMON, Today, 09:28 AM
        1 response
        13 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by cmtjoancolmenero, Yesterday, 03:58 PM
        8 responses
        31 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by helpwanted, Today, 03:06 AM
        2 responses
        22 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Started by navyguy06, Today, 09:28 AM
        0 responses
        6 views
        0 likes
        Last Post navyguy06  
        Working...
        X