Reply To: Relative strength scan using RIC

Optuma Forums Optuma Scripting Relative strength scan using RIC Reply To: Relative strength scan using RIC

  • Topics: 63
  • Replies: 557
  • Posts: 620

To change the RIC() lookback periods to something other than the default Last Month, Last Quarter, etc you can use this trick to set to something else.

The first line finds the date 10 bars ago (2 trading weeks) which is then used in the second line for the Start_Date= field.

You can use this script to build options for all the different time frames you were after by adjusting the value on the first line. So for 6 weeks you’d use a 30 bar (6 x 5 trading days) offset:

$A = BARDATE()[30];

The script can then be used in a Show View tool or Watchlist column:


1 user thanked author for this post.

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.