Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Don't see any historical trades

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

    Don't see any historical trades

    Hi,

    I migrated my strategies form NT6 to NT7. When I place a strategy on a chart I don't see any historical trades? Yes, there are enough bars for calculating trades. New trades are placed correctly ...

    Is there a new option or flag in NT7 to see historical trades? Performance view shows also no trades ...

    Thx
    DT

    #2
    DT, did you work with ExcludeTradeHistoryInBacktest somewhere in your code perhaps?

    Comment


      #3
      No I didn't. Thanks for the hint. I set it explicitly to ...

      ExcludeTradeHistoryInBacktest = false;

      ... but after reloading the strategy, there are still no historical trades.

      I tested the MACrossOver strategy on a new chart ... same behaviour ... so it can't rely on my strategies ... any other hints for NT 7 ...?

      Comment


        #4
        Hmm, there's no other property that would control this, they should show as long as the strategy is set to 'enabled' state, which is new for NT7 as strategies persist now. Which provider / symbol / chart are you testing on? Any log errors worth mentioning?

        Thanks

        Comment


          #5
          Ok ... I found an something interesting in my code. I'm using Pivot-Points and calculation is computed through ...

          Code:
          double value = Pivots(PivotRange.Daily, HLCCalculationMode.DailyBars, 0, 0, 0, 20).PP[0];
          Print("The current Pivots pivot value is " + value.ToString());
          ... during backtest and when there is no live-chart everething works as excpected. But on getting live ticks the PivotPoint 'value' is 0 for every day in history and for the current day too ...

          Have I use the Pivots-Indicator in some special way? In NT6 it works for me as shown above.

          Thx
          DT

          Comment


            #6
            Do you load enough historical data for them to calculate as expected? For calling hosted indicators like the Pivots you would need to ensure you have valid values before working with them, we have a dedicated sample for this topic here - http://www.ninjatrader.com/support/f...ad.php?t=33061

            Comment


              #7
              Yes, there are enough bars ... I found the bug by myself ... referring to this thread .. http://www.ninjatrader.com/support/f...ad.php?t=29991

              Using HLCCalculationMode.CalcFromIntradayData works for me, because Zen-Fire don't support DailyBars ...

              Thx for responses
              DT

              Comment


                #8
                Hello,

                Glad your up and running.

                Let us know if we can be of further assitance.
                BrettNinjaTrader Product Management

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                649 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                370 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                109 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                574 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                576 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X