Indicator of an Indicator

Optuma Forums Optuma Scripting Indicator of an Indicator

Tagged: 

  • This topic has 5 replies, 5 voices, and was last updated 1 month ago by Ben.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #57917
    Brian
    • Topics: 2
    • Replies: 0
    • Posts: 2

    How do you create the script for an indicator of an indicator, such as Stochastic of RSI?

    #57919
    James
    • Topics: 14
    • Replies: 10
    • Posts: 24

    How to apply indicators on indicators

    V1 = RSI(BARS=14);
    STOCH(V1, BAR1=10, BAR2=3)

    #57923
    Darren
    • Topics: 66
    • Replies: 617
    • Posts: 683

    Thanks Jamie. Also, see the first video here on Nested functions:

    https://learn.optuma.com/course/intermediate-scripting/

    • This reply was modified 1 year ago by Darren.
    #63919
    Ben
    • Topics: 7
    • Replies: 10
    • Posts: 17

    Thanks for the info!
    I’m trying to apply indicators to a Show Plot script that I have made, but am running into some issues.

    The Show Plot script is:
    var1 = LRSLOPE(BARS=10);
    var2 = LRINT(BARS=10);

    (var1*10)+var2

    When I apply a MA(10) I would expect it to plot along the Show Plot, what I get is in the attached.
    I am also trying to add a PSAR to the Show Plot, it appears to plot the downward dots well, but puts the upward dots at or below zero on the Y axis.

    #63950
    Matthew
    • Topics: 5
    • Replies: 366
    • Posts: 371

    Hi Ben,

    Some functions have hidden Highs / Low values that don’t appear in view but can effect tools that reference them, when adding a tool to a single value plot like this i always recommend setting the calc style to Close only.

    If you adjust the Moving Average (applied to the Show View) to use the Close only in its properties, it displays as you would expect.

    Ex1

    With the PSAR script, i can’t repeat the issue you are using.  Can you include the script and a screen shot of the result.  (I am using PSAR().PSAR to test with)

    #63953
    Ben
    • Topics: 7
    • Replies: 10
    • Posts: 17

    Thanks for your help Matthew! Have got the MA and PSAR working.

    Fixed the PSAR issue by setting the Show Plot formula as a variable nested inside a CLOSE() function as you recommended for the MA.

    Many Thanks!

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

Pin It on Pinterest