Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Compare Results vs previous day range

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

    Compare Results vs previous day range

    I am trying to figure out how to group the results of trades based on the range or the close of the previous day. For example, what were the results of all trades where the previous day was a down day. How do I do this in ninjatrader?

    #2
    habibalex, interesting question - it sounds like you would need to look into grouping the AllTrades collection you get for your script then according to the price action of the prior day(s). So you would determine the date of the down day for example and then include in your new copied to collection only the trades that would fall on the next day. This would need to be done for all days evaluated of course.

    Comment


      #3
      Is there a way to add notes to the trades that appear in the trade output window? That way when i export the trades I can just do it in excel easily. If I use the all trades collection, do I just write the output to a file or something? Where would I put this code?

      Comment


        #4
        Hello habibalex,

        Thanks for your post. There is no external means put user text next to an executed trade within NinjaTrader window.

        If you are writing your own script you could certainly do this and write the trades information and any text you wish to a text file using the streamwriter.

        Here is a link to reference sample using streamWriter: http://www.ninjatrader.com/support/f...ead.php?t=3475

        Please us know if you have further questions.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        61 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        40 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        21 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        23 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        51 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X