Announcement

Collapse
No announcement yet.

Fixed Backtesting Time Period

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

  • Fixed Backtesting Time Period

    It would be handy to have an option to limit backtesting to a fixed time period (e.g., "today only" or "last two days"). Some of my trading routines work better on different time frames and I try to backtest them initially using different time templates. This is a little burdensome, but workable. Having an option would speed things up a little.

    I don't seem to be able to find any other way to do this other than to use different time templates and load a different number of bars based on the chart interval. Thanks.

  • #2
    Just put an if statement in the code for getYear, getMonth etc.
    Or combine all these to restrict your test period.

    A

    Comment


    • #3
      Thanks. I was a little too focused on trading logic and overlooked the simple solution.

      Comment

      Working...
      X