RIC crossovers

Optuma Forums Optuma Scripting RIC crossovers


Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #59765
    • Topics: 14
    • Replies: 13
    • Posts: 27

    Hi there,

    i’m attempting to use the show bar to alert me to a crossover when the RIC of a security crosses above its 200ema.  I have successfully scripted the RIC and 200ema of the RIC into the watchlist but can’t get the correct data when i merge the two scripts into a showbar.  any suggestions?


    • Topics: 66
    • Replies: 680
    • Posts: 746

    Hi Josh,

    Your formula needs to be applied to the price chart, not the RIC tool (when a RIC function is applied to the RIC tool it calculates the RIC of the RIC). If you want the arrows just on the tool apply the Show Bar to the RIC using the following:

    Also, the variable Z1 is the same as R1 so isn’t required.

    1 user thanked author for this post.
    • Topics: 14
    • Replies: 13
    • Posts: 27

    Thank you Darren – I was able to get the result that I’m looking for in the showbar tool.. having some fun I moved to the backtester and signal tester but the result isn’t what i was looking for as it pulled the 200ema of the issue and not the RIC.

    • Topics: 5
    • Replies: 430
    • Posts: 435


    Because the Show Bar had been applied directly to the RIC tool, you did not need to set the RIC details in the script. The show bar was referencing that as the main data source already, so the script Darren gave you worked for that scenario.

    Moving from a Show Bar applied to the RIC directly, to the Back Tester, the RIC needs to be setup in the script as the code being back tested is now the main data source.

    For the Back Tester, your original script (with the duplicate z1 line removed) should produce the result you’re looking for:


    1 user thanked author for this post.
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Pin It on Pinterest