Based on the code
https://www.prorealcode.com/prorealtime ... line-macd/Instead of having one signal line, the Top and Bottom lines depend on the current value of the indicator.
The “Signal” line is calculated the following way :
When some level is crossed in the desired direction,
ema of that value is calculated for the desired signal line
When that level is crossed in the opposite direction,
previous “signal” line value is simple “inherited” and it becomes a kind of a level