In this indicator has two DEMA with same period, but one of them has offset. So that when DEMA change its way the indicator show that.
IT IS COPIED FROM MACD DEMA INDICATOR WHICH IS CREATED BAY TOFFF. I JUST ADDED BUY/SELL SIGNAL WHERE LIGNE SIGNAL START TO TURN IT'S WAY TO UPWARD OR DOWNWARD.