- Post all relevant code. Your question is about indicator data, yet your posted code contains no such code.
- There are no buffers, no IndicatorCounted() or prev_calculated. No way to know if older bars have changed or
been added (history update.)
Just get the value(s) of the indicator(s) into the EA (using iCustom) and do what you want with it.
You should encapsulate your iCustom calls to make your code self-documenting.
Detailed explanation of iCustom - MQL4 programming forum
iCustom MT4 sample here:
https://www.mql5.com/en/forum/317466#comment_12381978
![i need help in writing icustom function for this indicator for sell and buy signal i need help in writing icustom function for this indicator for sell and buy signal](https://c.mql5.com/36/27/i-need-help-in-writing-icustom__1.jpg)
i need help in writing icustom function for this indicator for sell and buy signal
- 2019.07.08
- www.mql5.com
Need help in writing icustom function for this indicator to produce sell and buy signal...
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
I tried to automate it but I got wrong entries even I detect the right numbers of each trend of the indicator .
any idea about wrong entries ? or how to detect the signals ?
this is a part of my code