Scanning RSI and MACD 3 years high

Optuma Forums Optuma Scripting Scanning RSI and MACD 3 years high

This topic contains 3 replies, has 2 voices, and was last updated by Darren Darren 5 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #47311

    Mohd
    • Topics: 11
    • Replies: 14
    • Posts: 25

    Hi,

    I want to write an end of month  scan for a  below criteria

    Monthly RSI move to three years (36 monthly bar) high or 
      A new RSI move past 70 or
      All time RSI high Or new price breakout while the monthly RSI already above 70
      AND 
      MACD( parameter 12,26,9 OR 4,9,3) make three years high. 

    I am trying these scrip

    M1 = RSI(TYPE=RSI,BARS=14);

    H1 = HIGHESTHIGH(M1,BARS=36);

    L1 = LOWESTLOW(M1,BARS=36);

    M1 CROSSESABOVE H1 OR M1 CROSSESBELOW L1  AND 

    M1 = MACD(TYPE=COMBO,DEFAULT=OSCILLATOR,BAR1=12,BAR2=26,OSC=9);

    H1 = HIGHESTHIGH(M1,BARS=36);

    L1 = LOWESTLOW(M1,BARS=36);

    M1 CROSSESABOVE H1 OR M1 CROSSESBELOW L1

    But some requirement like A new RSI move past 70 or
      All time RSI high Or new price breakout while the monthly RSI already above 70 is not fullfil please edit my script as required.

    #47327
    Darren
    Darren
    • Topics: 29
    • Replies: 152
    • Posts: 181

    Hi Mohd,

    All variables have to be defined first, followed by the logic. Also, they must be unique (you are using M1, H1 and L1 twice). Try this:

    To include where RSI>70 you can add ‘and M1>70’ at the end.

    #47331

    Mohd
    • Topics: 11
    • Replies: 14
    • Posts: 25

    Hi Darren, 

    Thanks for guide but the script of new price breakout while the monthly RSI already above 70 is missing in the script.

    #47335
    Darren
    Darren
    • Topics: 29
    • Replies: 152
    • Posts: 181

    Hi Mohd,

    See the last line:

    To include where RSI>70 you can add ‘and M1>70’ at the end.

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