For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See:

How to detect divergences?

  • Hello experts

    Maybe this is a silly question (sorry :) ) but how can I detect if I have an indicator divergences (rsi, mfi, ...etc)

    Is their such a method or code that can tell me if the price trend is going up while the indicator trend is going down for example ?

    Appreciate any help.

    Thanks in advance

  • The question is not silly, but quite complex. Divergences are graphical representations, so you may want to use pattern recognition approaches or write certain math expressions to identify them.