MACD Divergence.

Viewing 9 posts - 1 through 9 (of 9 total)
  • #145720

    Hello Pro-coders

    Really hope someone can help me with this simple request.

    I require proscreener to provide MACD divergence results  over the last 10 days.

    Is there a way to do this?

    Kind Regards

    Alps

     

    #145732

    Here you have an indicator I did long time ago to find MACD divergences. The variables:

    • N: Number of bars the indicator lookback to find the divergences
    • a: Periods for the first average to calculate MACD line
    • b: Periods for the second average to calculate MACD line

    You can create a Proscreener with it but I cannot help you there because I don´t do Proscreeners.

    Good luck mate

    #145780

    Thank you Tempus,

    That file.. which application am I using to open it. It does not open in word or notepad.

    thanks

    Alps

    #145813

    ITF file can only be imported and opened within the platform. Read this simple how-to tutorial to do it: How to import and export codes from ProRealTime platform?

    #146014

    Thanks for the effort Tempus. Really appreciate you trying to help me.

    I am a zero case when it comes to programming or computing so I just don’t know how to make use of the great information you provided.

    So if Nicolas or anyone else can provide a solution to the following I will be forever grateful. I work 14 hr. days so I can only look at charts and study fundamentals over the weekend.

    So help required is for the following:

    1. MACD (12,26,9) divergence – bullish and bearish and hidden
    2. within the last 20 days

    To share my strategy it is as follows: Divergence moves happen to be big. So if it is a bullish divergence and the fundamentals are good ie profits are up or less debt etc. etc.. then I will buy that stock.

    The purpose of the screener is to identify stocks that have MACD divergence and then study the fundamentals over the weekend and place the trade

    SIMPLE STRATEGY and I like that.

     

     

    #146061

    If you have successfully imported the MACD divergence indicator that TempusFugit has nicely shared with us, copy/paste the below screener code into a new ProScreener and you’ll get the last 20 days divergences:

     

    #147141

    Some progress in the sense that:

    1. I have been able to upload the code kindly provided by Tempus on proscreener
    2. I have been able to add the 2 lines Nicolas has kindly provided.

    However when I run the code I get an error which  I have attached.

    It says:

    Syntax error: line45, character 1

    Characters Missing. Suggestions:

    -“eof”

     

    The code is as follows:

    With deep gratitude looking forward to further assistance from you kind sirs.

    #147145

    For clarity of messages on ProRealCode’s forums, please use the “insert code PRT” button to separate the text of the code part! Thank you! <<
    🙂

    Comment out line 44, RETURN must always be the last line. Moreover screeners don’t support it.

    #147147

    I think you should delete all but the last two lines, since when CALLing an indicator you don’t need to embed its code.

    Nicolas’code is a working screener by itself, not  lines to be appended to the indicator.

Viewing 9 posts - 1 through 9 (of 9 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login