Having trouble with Ehlers High Pass Filter
Hello,
I am trying to make an indicator with Ehlers formula for a high pass filter with a user input cut off period. The formula Ehlers writes in is paper "Predictive Indicators for Effective Trading Strategies" is coded in EasyLanguage as follows:
I wrote in mql4 the follwing excerpt:
Everything compiles fine with no errors or warnings but when attached to a chart the Data Window returns a value of "-nan(ind)" for the highPass buffer.
I'm assuming I have a syntax problem somewhere but I have not found out where. Does anyone have any ideas?
Thanks
(1-alpha)/2 isn't interpreted like (1-alpha/2)
Try this.
Hello,
I am trying to make an indicator with Ehlers formula for a high pass filter with a user input cut off period. The formula Ehlers writes in is paper "Predictive Indicators for Effective Trading Strategies" is coded in EasyLanguage as follows:
I wrote in mql4 the follwing excerpt:
Everything compiles fine with no errors or warnings but when attached to a chart the Data Window returns a value of "-nan(ind)" for the highPass buffer.
I'm assuming I have a syntax problem somewhere but I have not found out where. Does anyone have any ideas?
Thanks