Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Strategy Analzer

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

    Strategy Analzer

    will the back test work with if I'm using a 100 volume chart but trading on AddDataSeries(Data.BarsPeriodType.Tick, 1)?

    #2
    Hello, thanks for writing in. The 1 tick data should be able to go back 180 days for the NinjaTrader Continuum connection. You can test if you are getting the required data series by pulling up a 1 tick chart of the same instrument and checking if the data goes back to your backtest date range.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      ok thanks, I'm only doing a few days. when I hit run on strategy analyzer, after a few seconds it stops with no results (strategy runs ok on chart).

      I normally debug these issues with visual studio but it doesn't catch when using strategy analyzer.

      Any ideas?

      Comment


        #4
        Hi, Please first use Print in your strategy to see if the code is actually running. E.g. place a print within your Entry condition to see if it's hitting the signal:

        Print("Processing entry condition " + Time[0])
        if(<entry condition>)
        {
        Print("Entry Condition Reached " + Time[0]);
        EnterLong();
        }
        Chris L.NinjaTrader Customer Service

        Comment


          #5
          ok thanks again.

          Can I just check if there is anything I can use to detect if the code is running on a chart or backtest (SA)?

          would be good if Visual Studio could be used to debug SA? anyway tracked issue down to

          Code:
          //chart ok but issues with SA
          Draw.TextFixed(this, "tagTK", msg, TextPosition.BottomLeft, Brushes.White, ChartControl.Properties.LabelFont, null, Brushes.Gray, 70);
          
          //all ok
          Draw.TextFixed(this, "tagTK", msg, TextPosition.BottomLeft, Brushes.White, this.myFont, null, Brushes.Gray, 70);

          Last edited by dibDab; 03-02-2023, 03:53 AM.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by guyonabuffalo, Yesterday, 10:01 PM
          2 responses
          16 views
          0 likes
          Last Post guyonabuffalo  
          Started by thumper57, Yesterday, 04:30 PM
          5 responses
          14 views
          0 likes
          Last Post thumper57  
          Started by reynoldsn, 05-10-2024, 07:04 PM
          5 responses
          26 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by llanqui, Today, 11:10 AM
          1 response
          16 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by llanqui, Today, 10:29 AM
          1 response
          12 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Working...
          X