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

Strategy Realised Profit and Loss on session exit

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

    Strategy Realised Profit and Loss on session exit

    I am curious as to why when a running strategy is forced to close by Flatten All at e.g. 3.59 PM . The realised profit for the strategy doesn't reflect any gains or losses associated active strategy position at the time of closing the position.

    I have to go to the accounts tab to see what was the daily result from running the strategy for the day.

    Also it leave the strategy as being closed with the position still in place.

    Can this be fixed in the next release? THanks in advance.

    #2
    This is by design.

    Flatten all terminates all strategies, and closes any account positions. Closing of account positions are done outside of the terminated strategy and thus not reflected in the strategy.
    RayNinjaTrader Customer Service

    Comment


      #3
      Ok. Then I guess I will have to change my Flatten all time to a period after my last strategy session is set to end.


      THanks.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by usazencort, Today, 01:16 AM
      0 responses
      1 view
      0 likes
      Last Post usazencort  
      Started by kaywai, 09-01-2023, 08:44 PM
      5 responses
      603 views
      0 likes
      Last Post NinjaTrader_Jason  
      Started by xiinteractive, 04-09-2024, 08:08 AM
      6 responses
      22 views
      0 likes
      Last Post xiinteractive  
      Started by Pattontje, Yesterday, 02:10 PM
      2 responses
      21 views
      0 likes
      Last Post Pattontje  
      Started by flybuzz, 04-21-2024, 04:07 PM
      17 responses
      230 views
      0 likes
      Last Post TradingLoss  
      Working...
      X