Please can anyone translate the Ehlers Roofing Filter Indicator From MT5 to proReal. I have found an indicator that someone has written called Ehlers roofing Filter here https://www.prorealcode.com/topic/john-ehlers-roofing-filter/ but the results are far less accurate than the MT5 version and I don’t have the programming skills to know why. Also the MT5 version has two lines and generates signals at the crossover.
I have attached the MQ5 File or I can cut and paste the code if that helps
Here is a rough conversion of the source code you provided, I don’t know why but I think there is something missing somewhere, I might investigate more later.