RSI Divergence

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • #23503 quote
    Johan
    Participant
    Average

    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 quote
    Nicolas
    Keymaster
    Master

    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.

    Johan, Lighthouse and Jean-Yves thanked this post
    #45974 quote
    unkown0403
    Member
    New

    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 quote
    unkown0403
    Member
    New

    p.s. I use RSI set in 2 periods

    #46155 quote
    Nicolas
    Keymaster
    Master

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

    #46156 quote
    unkown0403
    Member
    New

    Exacly Nicolas!!!

    #46157 quote
    unkown0403
    Member
    New

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

    #46474 quote
    Nicolas
    Keymaster
    Master

    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 quote
    unkown0403
    Member
    New

    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 quote
    Despair
    Blocked
    Master

    This should do it:

    if onmarket and barindex-tradeindex=4 then
      sell at market
      exitshort at market
    endif
    #46540 quote
    unkown0403
    Member
    New

    i WILL TRY IT SOON!!

    really thanks Nicolas!!!

    Despair thanked this post
    #46726 quote
    unkown0403
    Member
    New

    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 quote
    Mansoor
    Participant
    Average

    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 quote
    Nicolas
    Keymaster
    Master

    @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).

    Mansoor thanked this post
    #46766 quote
    unkown0403
    Member
    New

    Understood!!
    Thanks Nicolas!

Viewing 15 posts - 1 through 15 (of 18 total)
  • You must be logged in to reply to this topic.

RSI Divergence


ProOrder support

New Reply
Author
author-avatar
Johan @johan_holmberg Participant
Summary

This topic contains 18 replies,
has 7 voices, and was last updated by jayvee
6 years, 8 months ago.

Topic Details
Forum: ProOrder support
Language: English
Started: 02/02/2017
Status: Active
Attachments: 6 files
Logo Logo
Loading...