Amita:
For what it's worth, here's some extremely simplistic coding I did some time ago for Elder's "Impulse System" .....
Entry Signal:
AVG:=Mov(Close,13,e);
Hist:=Fml("MACD Histogram");
Avg>Ref(AVG,-1) AND
Hist>Ref(Hist,-1)
Exit Signal:
AVG:=Mov(Close,13,e);
Hist:=Fml("MACD Histogram");
Avg<Ref(AVG,-1) OR
Hist<Ref(Hist,-1)
I had the system tester make entries and exits at the open on the day following the signal.
As I recall, the results I got from testing weren't interesting enough to pursue further ...