MACD >= than the MACD Signal line

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15553 quote
    Henry
    Participant
    Average

    A request that was addressed to ProRealTime:

     

    Can you write me two screeners please?

    1. A screener for where MACD equals or is greater than the MACD Signal line to show the possibility of a change of direction. I’d like to be able to have user defined values for the normally default values of 12,26,9 if possible. The screener should also report RSI so that I can sort the result by RSI. (I’d like to use the Screener in all the longer timescales).

    2. A Screener for where two MACD Signal lines are compared to get an earlier indication of the possibility of a change of direction. Again I’d like to be able to have user definable values for the normally default values of 12,26,9 if possible. What I’m thinking is:
    MACD1 = MACD[12,26,9]
    MACD2 = MACD[12,26,6] for example

    The Screener would report where the value for the Signal value for MACD2 > MACD1 Signal value (i.e the ‘6’ value of MACD2 is greater than the ‘9’ value of MACD1). Again, RSI is included in the Screener so that the results can be sorted by RSI.

    In both the examples above, I’d like to play with the code so that I can use it to screen for stocks going the other way (It’s how I can learn the code)

    I’ve tried to do this but failed miserably and got very cheesed off with myself!

     

    Suggestion for an anwser:

     

    First code:

    p=12
    q=26
    r=9
    
    condition=MACD[p,q,r](close)>=0
    
    criteria=RSI[14](close)
    screener[condition](criteria as "value of rsi")

     

     

    Second code:

    p=12
    q=26
    r=9
    r1=6
    
    LineMACD=MACDLINE[p,q,r](close)
    signal=exponentialaverage[r](LineMACD)
    signal1=exponentialaverage[r1](LineMACD)
    
    condition=signal1>signal
    
    criteria=RSI[14](close)
    screener[condition](criteria as "value of rsi")

     

    #15632 quote
    Hallgente
    Participant
    New

    Thank you for this.  I’d like to ask if you could do one more iteration on the following code please?

    Question: For the following code, could you add a results column before the RSI column that counts the number of periods that the condition has been met?  I am using Proreatime on IG.  Thank you

    p=12
    q=26
    r=9
    r1=6
    
    LineMACD=MACDLINE[p,q,r](close)
    signal=exponentialaverage[r](LineMACD)
    signal1=exponentialaverage[r1](LineMACD)
    
    condition=signal1>signal
    
    criteria=RSI[14](close)
    screener[condition](criteria as "value of rsi")
    
    
    
    
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

MACD >= than the MACD Signal line


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Henry @henry Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Hallgente
9 years, 4 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 10/26/2016
Status: Active
Attachments: No files
Logo Logo
Loading...