Source: https://fxcodebase.com/code/viewtopic.php?f=17&t=72874
Forum: 17 · Topic 72874 · 2 post(s)
Apprentice · Thu Oct 27, 2022 3:07 am

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
Discontinued signal line MACD.lua
Apprentice · Thu Oct 27, 2022 3:28 am
