This MACD indicator uses two lines for long and sell long. It also uses a MACD indicator line with a historian. When the MACD historian crosses over the buy line, a long signal is executed. When the MACD historian crosses over the sell line, a close entry is signal is executed. There is a also a built in stop loss and you can adjust the buy and sell lines accordingly.
This does not repaint and I use it for autoview with an alert to autotrade this strategy.