• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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.
    BertrandNinjaTrader Customer Service

    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.
        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by MarianApalaghiei, Today, 12:21 PM
        0 responses
        2 views
        0 likes
        Last Post MarianApalaghiei  
        Started by williamzz, Today, 11:37 AM
        1 response
        9 views
        0 likes
        Last Post Emma1
        by Emma1
         
        Started by thecashguys, Today, 10:18 AM
        0 responses
        8 views
        0 likes
        Last Post thecashguys  
        Started by pjsmith, Today, 09:58 AM
        0 responses
        11 views
        0 likes
        Last Post pjsmith
        by pjsmith
         
        Started by bebbus, Today, 09:13 AM
        0 responses
        6 views
        0 likes
        Last Post bebbus
        by bebbus
         
        Working...
        X