Your topic has been moved to the section: Technical Indicators
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Fernando Carreiro #:
Your topic has been moved to the section: Technical Indicators
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Ok, thanks.
Your topic has been moved to the section: Technical Indicators
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi All,
First time reaching out on the forum. I normally try fixing issues by using the documentation and other online references but this has proven fruitless this time around.
I have created a custom indicator based on a MA and some calculations (Code below). When I apply it to the screen, it works fine (Screenshot 1 attached). I have created an EA to use BufferSlope[] from the custom indicator, passed through using the iCustom() function, as a signal. When testing the EA and printing out the value of the BufferSlope[i], I am getting nothing but zeroes. So I then ran the indicator through the tester and got the same results, zeroes. (Screenshot 2 attached) It loads and plots data fine prior to the testing period but as soon as the test starts, nothing but zeroes.
I have created a custom indicator before based on several MA's which create bands based on ATR and it works fine. I am currently using that indicator in an EA which is currently running flawlessly on a chart. I have compared everything about the 2 indicators and 2 EA's and cannot find the issue with the new indicator.
Any help you can offer would be greatly appreciated.