@Kahled: That’s right, the topic has drifted a bit. I’ve never used MACD Zero Lag myself. The advantage is to generate many signals, but maybe also many false signals? How could one use this to find a high/low? Do you have sample code?
You have two posts with the code of MACD ZL https://www.prorealcode.com/topic/macd-zero-retard-proorder/ and https://www.prorealcode.com/prorealtime-indicators/zerolag-macd/,
I use the first one with DEMA,
Now, for Swing H/L, you can see on the attached graph (Dow 1min TF) that when the price reverses in a significant manner the MACD (the “e”) changes direction. You may want to test it on TF 2min (or any other TF) for Exit. Is this what you’re looking for?
would you be so kind as to post your code for me?
Just posted it for you, see here …
Arrays and how they can *not* be used (?)
Hmmm, looks interesting for sure. I could try that. Thank you.