Bot with RSI divergence

Forums ProRealTime English forum ProOrder support Bot with RSI divergence

  • This topic has 18 replies, 5 voices, and was last updated 4 years ago by avatarZigo.
Viewing 15 posts - 1 through 15 (of 19 total)
  • #149843

    Hello,

    I’m trying to create an algorithm based on the divergences.
    I tried to call divergence indicators (RSI or MACD) found on the site but it doesn’t work, I think the error comes from my code.

    For example I tried to call the indicator “DivergenceRSIWithLookback”, and to indicate as conditions to buy if the indicator is > to 0 and the close is > to the highest of the previous candle, or to short if the indicator is < to 0 and the close is < to the lowest of the previous candle, But this does not give any trade. I removed the conditions close >high [1] and close

    I removed the variables from the indicator to integrate them directly into the code but it still didn’t work. It still doesn’t work.

    Can someone help me solve this problem? 🙂

    #149846

    PS : Sorry for the readability. I did use the add code function in the initial message, then when I modified it when I noticed the bug but the code continued to be displayed with the text. 🙂

    #149919

    Are you sure the indicator is sending signals? Did you try to GRAPH indicator1, for example?

    #150052

    Hello @Nicolas,

    Yes the indicator returns signals as you can see in the screenshot.
    I also tried with the indicator “DivergenceRSIopensource” and the result is the same.

    I also tried with the other indicators you shared on this page: https://www.prorealcode.com/topic/rsi-divergence/#post-23530 but there are still no trades triggered, whatever the asset or time unit.

    Can you help me to program a divergence algorithm? 🙂

    #150217

    You are not GRAPH the indicator in the strategy, I only see the indicators values from ProBuilder on your charts. Please provide the ITF file of your strategy so I can use the same exact indicator as you.

    #150728

    Hello Nicolas,

    Here are the 2 indicators and the strategy in itf.

    Thank you for your help.

    #150974

    Hello @Nicolas,

    Indicators and strategy in itf can be found in the previous message.
    Thank you for your help.

    #151196

    You have wrongly called an indicator that don’t exist? The signals were not present? In any case, test your variables with GRAPH, it is the first step to debug a code that is malfunctioning.

    PFA the itf file in order to get the complete code working (with indicator embedded).

     

    1 user thanked author for this post.
    #151201

    Below is one error.

    Maybe Nicolas fixed this in the .itf above … I’ll try Nicolas file.

    needs to be

     

    #151202

    Nicolas code works fine … see attached

    1 user thanked author for this post.
    #151240

    Evening,

    I am working on a set up for this topic. What I have already is coupling of the signals on a target-price (TP).

    In the attachment is every line a TP after a signal. Green lines for long trading, yellow lines for short trading.

    #151242

    Last signal on 144 sec frame

    #151244

    I know my eyes aren’t great, but I feel like I’ve had 10 pints when looking at the attachment 2 posts above  … it’s all fuzzy with text superimposed on top of other text … is it just me!? 🙂

    #151245

    is it just me!? 🙂

    It looks perfectly focused if you view it through the bottom of your second bottle of wine. Don’t ask me how I know.

    1 user thanked author for this post.
    #151251

    Maybe this looks better, if you have to much C2H5OH in your head.

    Its the same instrument only 100 times lesser candles. To morrow it clearing out.

    1 user thanked author for this post.
Viewing 15 posts - 1 through 15 (of 19 total)

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