RSI Divergence

Tagged: 

Viewing 15 posts - 1 through 15 (of 18 total)
  • #23503

    This indicator is included in PRT. But when i’m trying to use it in automatic strategy it can’t be called. Not with it’s name like “RSI” or with the “call” method. Is there a way to solve this or download the code somewhere?

    #23530

    Here are topics about indicators divergences from price, you’ll find indicators in their posts:

    And find attached a bunch of divergences indicators I found in my own platform. Hope it helps.

     

    3 users thanked author for this post.
    #45974

    Hello everyone!!

    I’ve tried the RSI DIVERGENCE open source, but I think it doesn’t work as I wonder…

    The default one that exists on prorealtime works very well, but it is unusefull if I want to use it with an automatic trading system…(I can’t)

    Does anyone can create it as the one set for default?

    I wish it can consider at max 3 or 4 candels to get the divergence…not like this one that calculate the divergences even with the last 10 bars……

    can anyone please help me?

     

     

    #45978

    p.s. I use RSI set in 2 periods

    #46155

    So you want to limit the maximum lookback periods to validate a divergence?

    #46156

    Exacly Nicolas!!!

    #46157

    With the default one on the prorealtime, I can set number of RSI period and also how many candles for the lookback…

    #46474

    With the indicators in this post you can already change the periods.

    Anyway, I changed the RSI Divergence Open Source code to add a “lookback” variable to limit the bars quantity to validate or not a divergence. Please find it attached to this post.

     

    #46528

    Thanks a lot Nicolas…!!!!!!

    really!!

    There is another thing that I would like to know about automatic trading…

    …don’t know if you can help…don’t know if this is the right place to ask!!!…sorry about that…

    the question is:

    Is there a way to stop an open position after a right numbers of bars?

    for exemple:  the automatic platform opens a position, and I would like that that position will be closed after n.4 (exemple) bars…

    …so if I use 10 min timeframe it will close the operation after 40 min….

     

    Thanks Nicolas=)

     

     

    #46534

    This should do it:

     

    #46540

    i WILL TRY IT SOON!!

    really thanks Nicolas!!!

     

    1 user thanked author for this post.
    #46726

    Good evening Nicolas…

    …first I have to thanks despair for the codes!

    Regarding that divergence rsi indicator that you have kindly modified for me…

    I’ve tried it, but…sorry…it doesn’t give the same signals as the default one.

    I’ve compare the original indicator (rsi divergence of prt)with this and both set like this:

    num of rsi indicator 2

    oversold 20

    overbought 80

    lookback 4

     

    The modified indicator gives many more signals than the original one.

    If it is not a problem…try to look at it…

    if u got time…! otherway don’t worry about it!!

    Thanks a lot!!

     

    #46747

    Hi Nicolas. You’ve done a great job with the codes. May I ask what do these acronyms stand for?

    hico, loco, …

    hico1, loco1, …

    sto1b, sto2b, …

    sto1h, sto2h, …

    p1b, p2b, …

    Cheers

    #46760

    @fabioerliam

    The default indicator of the platform use lookback functions that cannot be reproduce by ProBuilder code. That’s why it is an internal tool with no source code available. These indicators I shared are for most part adapted on someone else code that deal with stochastic divergence, that’s why you can find variables names that sounds like ‘sto’ in the code.


    @Mansoor

    hico and loco variables deal with prices (high ones and low ones).

    Same for stochastic/RSI or whatever indicators for the sto1 or sto2 variables, b mean “bas” in french for “lows” and h for “haut” = “high”

    p1b, p2b, etc are the previous price highs or lows that are stored in these variables before saving new values into hico and loco (needed to compare old and fresh prices to spot divergences with the old and current indicators values).

    1 user thanked author for this post.
    #46766

    Understood!!
    Thanks Nicolas!

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

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