RSI divergence

Viewing 5 posts - 1 through 5 (of 5 total)
  • #151153

    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.

    Here are the indicator and the strategy in itf.
    Can someone help me solve this problem? 🙂

    #151194
    • Do not double post. Ask your question only once and only in one forum. All double posts will be deleted anyway so posting the same question multiple times will just be wasting your own time and will not get you an answer any quicker. Double posting just creates confusion in the forums.

    I or someone else, will answer in your other topic: https://www.prorealcode.com/topic/bot-with-rsi-divergence/

    Please respect the posting rules.

    #151200

    I tried for you, but neither the Algo in text above nor the .itf will run in backtest even.

    There are several issues thrown up with error messages that need sorting.

    does not give any trade

    Do you even get the Algo to run correctly in backtest??

    Please post a screen shot of backtest results.

    #151205

    Mods

    I reckon this post should be deleted … to save confusion.

    In Olivier duplicate post there is now a working Algo showing results.

    #151231

    Sorry Nicolas, I didn’t know this rule. I would be careful in the future.

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

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