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 NullPointStrategies, Today, 05:17 AM
      0 responses
      20 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      119 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      63 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      41 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      45 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X