Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to: EOD I would like to print out my trade performance stats

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

    How to: EOD I would like to print out my trade performance stats

    As part of my strategy, I would like to printout the trade statistics for the day (i.e., ETD, MAE, MFE, etc.) and am wondering how to recognize that EOD has been hit? I can do this with DateTime but seemed like an un-necessary burden to undertake to print these readily available stats at end of trading day. Any guidance?

    #2
    Hello WattMan,

    A DateTime would be the best way to do that so you can print the value before the end of the session. Once the end of session happens the scirpt is no longer processing so it would not be able to print anything out until the start of the next session.

    Comment


      #3
      Originally posted by NinjaTrader_Jesse View Post
      Hello WattMan,

      A DateTime would be the best way to do that so you can print the value before the end of the session. Once the end of session happens the scirpt is no longer processing so it would not be able to print anything out until the start of the next session.
      Got it - thanks. Just wondering if metrics would differ if I used DateTime (assume I stop trading earlier than EOD) versus Bars.IsLastBarOfSession?
      Last edited by WattMan; 09-12-2023, 08:10 AM.

      Comment


        #4
        Hello WattMan,

        If you stopped trading before the time you print the values they shouldn't be changing because there is no open trade.

        IsLastBarOfSession would only be true on the open of the new session when the previous session bar is closed.

        If you know the session end time it would be best to just make a time condition that becomes true once at that time. You can also use the session iterator to get the end of session time to calculate a time before the session close to print the information.




        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Today, 05:17 AM
        0 responses
        48 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        126 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        66 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        42 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        46 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X