Announcement

Collapse
No announcement yet.

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 charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          51 views
          0 likes
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          142 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          160 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 05-10-2026, 08:12 PM
          0 responses
          96 views
          0 likes
          Last Post CarlTrading  
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          275 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Working...
          X