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 Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          648 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          369 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          108 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          572 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          573 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X