Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

strategy historical data

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

    strategy historical data

    Hi, I have two questions.
    1 - I created an indicator that uses the bid, ask and historical tick data.
    I see it when inserted into the chart.
    My question is whether to use this indicator on a strategy I have to add the bid and ask in the Initialize block, to take the data for calculating the indicator. Although the system does not use them for anything.

    This is what I have in the indicator and do not know if I have to add in the strategy to work within it.

    protected override void Initialize ()
    {
    Add ("TF ##-##", PeriodType.Tick, 1, MarketDataType.Ask)
    Add ("TF ##-##", PeriodType.Tick, 1, MarketDataType.Bid)

    2-That connection I have to activate the software so you can make the backtest of my historical data that I have in the NinjaTrader database.

    Excuse my poor English.

    #2
    Hello,

    Thanks for the forum post its no problem.

    1) This is correct you have added this data in correctly. You would also need to add this in a strategy if you needed access to it in the strategy as well.

    2) Not sure what you mean by this question. Can you please restate or reclarify so that I may further assist.

    I look forward to assisting you further.
    BrettNinjaTrader Product Management

    Comment


      #3
      I think juanfer might need a license key or other upgrade to use backtesting capability

      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
      71 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
      79 views
      0 likes
      Last Post PaulMohn  
      Working...
      X