I am looking for MACD / Price divergence AFL. I know it should be right under my nose but I had "a man's look" and everything I tried does not quite work to my expectations. MACD divergence scripts I found on this forum and in AFL library fail to identify and compare major peaks and troughs in MACD fast line and compare them to Price action peaks and troughs. Often a minor change in fast MACD line triggers divergence signal. Even though this my delay the signal, I am thinking of using slow/fast MACD line cross over as a confirmation that the "major" peaks and troughs have occurred and are locked in.
I appreciate if members could point me to a simple code example that works. Regards Richard
