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.

    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 DJ888, Today, 10:57 PM
      0 responses
      1 view
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by MacDad, 02-25-2024, 11:48 PM
      7 responses
      158 views
      0 likes
      Last Post loganjarosz123  
      Started by Belfortbucks, Today, 09:29 PM
      0 responses
      7 views
      0 likes
      Last Post Belfortbucks  
      Started by zstheorist, Today, 07:52 PM
      0 responses
      7 views
      0 likes
      Last Post zstheorist  
      Started by pmachiraju, 11-01-2023, 04:46 AM
      8 responses
      151 views
      0 likes
      Last Post rehmans
      by rehmans
       
      Working...
      X