Reply To: Back Tester and ROC

Optuma Forums Optuma Scripting Back Tester and ROC Reply To: Back Tester and ROC

  • Topics: 33
  • Replies: 183
  • Posts: 216

Hi John,

I think it’s a timeframe issue. The exit in your example is because the day’s close is less than the month-end close of the day before. So when using ROC(Week(PERIODAMOUNT=1), BARS=1) it will use the weekly (Friday) close, regardless of when the test is run. Instead use the CHANGE function set to one week and it will be a rolling week rather than from the Friday.


See here for more info on ROC vs CHANGE:

Pin It on Pinterest

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.