Relative Index Comparison Script

Optuma Forums Optuma Scripting Relative Index Comparison Script

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #48959
    • Topics: 1
    • Replies: 0
    • Posts: 1


    I am new to scripting. Within the watchlist, I would like to have a column which shows me whether the current RIC level is above or below its 26 moving average. True or False column.  For example below is the chart of Genting Singapore (G13).  It is one of the 30 index component stock of Straits Times Industrial Index. On the left it is weekly chart. Its current RIC is 75 which is below its 26 moving average RIC of 89 


    • Topics: 4
    • Replies: 255
    • Posts: 259

    Hi Ivor,

    Watchlists by default use daily data, so if you are wanting to check weekly indicator values you need to use a time frame override in the script:

    If you were applying the script to a weekly chart, you wouldn’t need the time frame override on the first line.


Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

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.