Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Get Backtest Data Series parameters

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

    Get Backtest Data Series parameters

    Hi!

    I would like to know how to obtain through my code the values ​​of the Data Series parameters used in the backtest, as "Type" and "Value".



    Tks.

    #2
    Hi brunoviveiros, thanks for your question.

    Those values can be accessed through the BarsPeriod property e.g.:

    Print(BarsPeriod.BarsPeriodType);
    Print(BarsPeriod.BaseBarsPeriodValue);

    If my strategy analyzer is set to 1 minute, it will print "Minute" then "1"

    Kind regards,

    ChrisL

    Comment


      #3
      ChrisL,

      Thank you!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      43 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      29 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      46 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      38 views
      0 likes
      Last Post CarlTrading  
      Working...
      X