MACD divergence
-
how is MACD divergence (bullish)and macd (Bearish ) calculated?
what are the condition for these blocks to be true -
@josh01
Its the difference between MACD signal line and the main line. If that is what you mean by divergence -
I don't remember, it's in the code. For a long time a was thinking to remove those blocks, but I only keep them because if I remove them, someone will complain. Otherwise I will recommend to use some indicator for the job

-
The divergence based on the RSI or the MACD is calculated by comparing the RSI/MACD and the price. In case of a bullish divergence : the price go down and the RSI or the MACD is getting up, so this case is called a normal bullish divergence. There are two types of scenarios for the divergence (Hidden, regular).
-
Ther are 2 common types of divergence concerning macd. Regular divergence and hidden divergence.
You may have a look here link text on how you may trade them.