Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to use Strategy Analyzer with Tick Data

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

    How to use Strategy Analyzer with Tick Data

    Hello,

    The strategy I've written requires Tick Data. I have been back testing using Market Replay, however I want to test using a greater domain of data covering several days and months.

    I've tried using Strategy Analyzer but I get no trade results returned to me following the tests.

    How do I specify Calc On Bar Close = false to the Strategy Analyzer explicitly ?

    I already have CalculateOnBarClose=false; statement in Initialize() of the strategy itself.

    Thank you

    #2
    Hi Lucius,

    Calculate on bar close is always true with historical data. This is due to the fact that with a historical data set, only the Open, High, Low, Close, Volume, and Time of the bar is known and not each tick that made up the bar.

    Below is a link to the help guide on CalculateOnBarClose.
    http://www.ninjatrader.com/support/h...onbarclose.htm

    You can add 1 tick granularity to your script and process on that secondary data series to simulate COBC as false.

    Below is a link to a reference sample that shows this.
    http://www.ninjatrader.com/support/f...ead.php?t=6652
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hello Chelsea,

      Thanks for the links. I've read through them and I would need to alter the script to add 1 tick bar series as well as addition logic to trade on the tick events of the series only and not the primary series.

      Thanks for the suggestion.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      144 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      70 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      125 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      78 views
      0 likes
      Last Post PaulMohn  
      Working...
      X