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

Access to the From and To parameters of the Backtest dialog Box

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

    Access to the From and To parameters of the Backtest dialog Box

    Hi,

    Is there a way we can access in a .cs strategy to the

    From
    and
    To

    timeframe parameters that we have specified in a backtest dialog box of a strategy analyser ?

    If so, what are te names of the parameters to call in the strategy to get access to these parameters.

    Thank you.

    #2
    BackTestTo
    BackTestFrom

    For Ex:

    Code:
    Print("BackTestFrom=" + BackTestFrom.ToString("M/d/yyyy"));
    Print("BackTestTo=" + BackTestTo.ToString("M/dd/yyyy"));
    Last edited by bltdavid; 02-01-2017, 11:01 AM.

    Comment


      #3
      Hello Jean-Marc-Molina,

      Thank you for your patience.

      The calls will be from BarsArray[0].BarsData. For example:
      Code:
      			Print(BarsArray[0].BarsData.From);
      			Print(BarsArray[0].BarsData.To);
      Please let me know if you have any questions.

      Comment


        #4
        Thank you Patrick

        Comment


          #5
          Thank you bltdavid.

          Both suggested answers work.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by xiinteractive, 04-09-2024, 08:08 AM
          3 responses
          11 views
          0 likes
          Last Post NinjaTrader_Erick  
          Started by Johnny Santiago, 10-11-2019, 09:21 AM
          95 responses
          6,193 views
          0 likes
          Last Post xiinteractive  
          Started by Irukandji, Today, 09:34 AM
          1 response
          3 views
          0 likes
          Last Post NinjaTrader_Clayton  
          Started by RubenCazorla, Today, 09:07 AM
          1 response
          6 views
          0 likes
          Last Post RubenCazorla  
          Started by TraderBCL, Today, 04:38 AM
          3 responses
          26 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X