RIC crossovers

Optuma Forums Optuma Scripting RIC crossovers

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #59765
    AvatarJoshua
    • Topics: 4
    • Replies: 4
    • Posts: 8

    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?

    roughage

    #59767
    DarrenDarren
    • Topics: 55
    • Replies: 461
    • Posts: 516

    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.
    #59781
    AvatarJoshua
    • Topics: 4
    • Replies: 4
    • Posts: 8

    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.

    #59784
    MatthewMatthew
    • Topics: 5
    • Replies: 292
    • Posts: 297

    Hi,

    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

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.

Close