• 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 akuntysh, Today, 02:43 AM
        0 responses
        4 views
        0 likes
        Last Post akuntysh  
        Started by thgamey, Today, 02:05 AM
        0 responses
        6 views
        0 likes
        Last Post thgamey
        by thgamey
         
        Started by tpdk2012, Today, 12:51 AM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_ChrisSch  
        Started by simonerg, Today, 12:13 AM
        0 responses
        7 views
        0 likes
        Last Post simonerg  
        Started by rickyblah12, 07-20-2019, 01:01 PM
        2 responses
        24 views
        0 likes
        Last Post NinjaTrader_ChrisSch  
        Working...
        X