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

Stategy Analyzer with tick data

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

    Stategy Analyzer with tick data

    My strategy includes AddDataSeries(Data.BarsPeriodType.Tick, 1) and I trade using this tick data.

    On the chart (Volume 1000) it works well but on Strategy Analyzer it doesn't. Not even my Print statements get executed. OnBarUpdate

    Any thoughts?
    Last edited by dibDab; 03-06-2023, 10:40 AM.

    #2
    Hello, thanks for writing in. Your live data connection might not be able to request the 1 tick data for the requested time frame. E.g. the NinjaTrader connection will go back 180 days of single tick data. You can check how much data is loaded by switching to the Chart view at the top left view setting.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      ok thanks, I'm just using 1 day of tick data, I get no results on 1 minute either. No chart displayed. I don't think ticks are arriving.


      Last edited by dibDab; 03-06-2023, 11:17 AM.

      Comment


        #4
        Hi, Make sure to print specifically from the added series e.g. in OnBarUpdate:

        if(BarsInProgress == 1)
        {
        Print(Closes[1][0]);
        Print(Times[1][0]);
        }

        Also check the log tab of your Control Center, and note that the connections Interactive Brokers and TDA do not support historical tick data.
        Chris L.NinjaTrader Customer Service

        Comment


          #5
          I get trades, prints everything at 7am UK time.

          I'll try again 2pm UK time.

          could it be that I have to wait much longer for the ticks to arrive once the US market get busy? (using Kinetick)
          Last edited by dibDab; 03-07-2023, 05:45 AM.

          Comment


            #6
            Hello, thanks for the follow up. During market hours you can only pull up to 8 hours of tick data from Kinetick. It would be best to run large backtests outside of regular trading hours for best results.
            Chris L.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by rhyminkevin, Yesterday, 04:58 PM
            5 responses
            62 views
            0 likes
            Last Post dp8282
            by dp8282
             
            Started by realblubb, Today, 09:28 AM
            0 responses
            2 views
            0 likes
            Last Post realblubb  
            Started by AaronKoRn, Yesterday, 09:49 PM
            1 response
            18 views
            0 likes
            Last Post Rikazkhan007  
            Started by ageeholdings, Today, 07:43 AM
            0 responses
            12 views
            0 likes
            Last Post ageeholdings  
            Started by pibrew, Today, 06:37 AM
            0 responses
            4 views
            0 likes
            Last Post pibrew
            by pibrew
             
            Working...
            X