Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Convert Multi-TF Strategy using Tick Replay To test with SA Historical Bid/Ask ?

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

    Convert Multi-TF Strategy using Tick Replay To test with SA Historical Bid/Ask ?

    Hello Support

    I've developed a Multi-timeframe strategy using Tick Replay. Works great.

    It only references 1 instrument at a time, but with multi-timeframes and uses these dataseries.
    AddDataSeries(Data.BarsPeriodType.Minute, 1);
    AddDataSeries(Data.BarsPeriodType.Minute, 3);
    AddDataSeries(Data.BarsPeriodType.Minute, 5);

    It calculates On.PriceChange and uses GetCurrentBid() & GetCurrentAsk().

    I need to test this strategy using Historical Bid/Ask using Strategy Analyzer with Optimization.

    I've been reading thru help I can't find "steps or howto's".

    Is there a Sample that I can look at in HELP ?

    For example, How can I add a dataseries's for Historical Bid & Ask for the "primary" instrument ?

    https://ninjatrader.com/support/help..._ask_serie.htm
    // Add an AAPL data series using the Ask series
    AddDataSeries("AAPL", BarsPeriodType.Minute, 30, MarketDataType.Ask);

    ONLY works to add MarketDataType.Ask of another instrument and not the primary.

    Please help.

    Thanks in advance.

    #2
    Hello rayko, thanks for writing in.

    Depending on the data feed you are using, some data providers do not give historical minute bid/ask data. e.g. Kinetick will not let you load a minute based ask or bid series but NinjaTrader Continuum does. You can check if your data feed supports this from this page:

    https://ninjatrader.com/support/help...y_provider.htm

    You can do this to add a data series of the same type as the primary series:

    Code:
    AddDataSeries(Instrument.FullName, Bars.BarsPeriod.BarsPeriodType, Bars.BarsPeriod.Value, MarketDataType.Ask);
    AddDataSeries(Instrument.FullName, Bars.BarsPeriod.BarsPeriodType, Bars.BarsPeriod.Value, MarketDataType.Bid);
    Please let me know if I can assist any further.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    58 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    133 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    73 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    50 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X