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

Historical Data Calculate.OnEachTick 1 tick data series

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

    Historical Data Calculate.OnEachTick 1 tick data series

    Hello,
    I'm trying to use the strategy analyzer to do OnEachTick calculation. It is my understanding that the strategy analyzer uses historical data which only uses OHLC data so in essence it is doing a Calculate.OnBarClose. Is it possible to add a 1 tick data series and reference that data series to enter trades so the strategy analyzer can be used.

    I want to do this because otherwise I will have to do market replay on months and months of data whereas the strategy analyzer is quicker. Is it possible in concept to do this?

    Appreciate any help offered.

    #2
    Hello byebyemoney,

    Welcome to the NinjaTrader forums!

    TickReplay is necessary to use Calculate with OnEachTick or OnPriceChange.

    A 1 tick data series can be added to a strategy with AddDataSeries(BarsPeriodType.Tick, 1); and used for accuracy with historical fill prices.

    Below is a link to a forum post on intra-bar granularity. Please see section on TickReplay and the linked SampleIntrabarBacktest reference sample.
    https://ninjatrader.com/support/foru...377#post773377

    The connected data provider must support historical tick data for the instrument type.
    https://ninjatrader.com/support/help...y_provider.htm
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mestor, 03-10-2023, 01:50 AM
    16 responses
    388 views
    0 likes
    Last Post z.franck  
    Started by rtwave, 04-12-2024, 09:30 AM
    4 responses
    31 views
    0 likes
    Last Post rtwave
    by rtwave
     
    Started by yertle, Yesterday, 08:38 AM
    7 responses
    29 views
    0 likes
    Last Post yertle
    by yertle
     
    Started by bmartz, 03-12-2024, 06:12 AM
    2 responses
    22 views
    0 likes
    Last Post bmartz
    by bmartz
     
    Started by funk10101, Today, 12:02 AM
    0 responses
    7 views
    0 likes
    Last Post funk10101  
    Working...
    X