Divergence on RSI with Bollinger Band

Forums ProRealTime English forum ProBuilder support Divergence on RSI with Bollinger Band

Viewing 15 posts - 1 through 15 (of 17 total)
  • #103117

    Hello, below mentioned (in the code section) is the code for a RSI and its related Bollinger Band (BB). Help is needed for plotting divergence (defined by (1) ZSR (defined in the PRT code) touching LB (defined in the PRT code) and then price going down to make a lower low but ZSR staying above LBB, (2) ZSR touching UB and then price going up to make a higher high but ZSR staying below UBB).

    #103876

    Hello,

    Anyone up for the challenge?

    Regards,

    #103900

    I think that your description is upside down.. Or is it me? Well, here is the code I made from what I understood from it:

     

    #103919

    Many thanks Nicolas. Your time and effort is really appreciated.

    The code is only printing UP arrow for (1) Bullish divergence, however it is not printing DOWN red arrow for (2) Bearish divergence as shown with dates for EURUSD daily chart.

    Also some of the UP Arrows are missing on valid setup as shown with dates for EURUSD daily chart.

    Appreciate the corrected code please.

    Thank you again.

    Best regards,

    #103931

    You did not mention anything about bearish divergences, that’s why I did not code it..

    Here is a version with some fixes, please confirm bullish version is ok.

     

    #104009

    Hello Nicolas, many thanks for the fix. the bullish divergence is working fine now.

    I actually mentioned initially for the bearish divergence, although in brief, keeping in mind your coding knowledge level as very high, as well, as, ” (2) ZSR touching UB and then price going up to make a higher high but ZSR staying below UBB). ”

    Appreciate if you can incorporate the the code for bearish divergence please.

    Many thanks.

    Best regards,

    #104013

    Here is the complete version that include the bullish and bearish divergences.

     

    #104023

    Many many thanks dear Nicolas.

    Much appreciate your fast and reliable response, as always.

    Its all fine now.

    Best regards,

    #104044

    Hello Nicolas,

    I can not create Alert on this divergence. Is it possible to plot the divergence as value return so that Alert can be set please.

    Your help is much appreciated, Nicolas.

    Best regards,

    #104048

    Try this. It returns a 1 for a buy signal and a -1 for a sell signal.

     

    #104050

    Hello Vonashi,

    Thank you for your prompt response, however your code is not after Nicolas’s last post which was recent. We have to build an alert on that.

    Your code is not running and giving the enclosed error.

    Regards,

    #104053

    You must have done a bad copy and paste because it works just fine for me. Use the button in the top right of the PRT code window to highlight it all and then hit CTRL+C.

    #104054

    if they are unused, then delete all their references in code, simple as 1.2.3. 😆

    #104072

    Many thanks Vonasi.

    Much appreciate your time, effort and helping attitude.

    Thank you again for your prompt response.

    Regards,

    #104073

    Yes Nicolas. You are correct.

Viewing 15 posts - 1 through 15 (of 17 total)

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