My Indicator doesn't appear on one minute time frames & some of the 5 minutes time frames .. please help
Fix your broken code. You obviously have a divide by zero.
double y = ((xxxx[i]-xxxx[i])/(xxxx[i]-xxxx[i])) * xxxx;
William Roeder:
Fix your broken code. You obviously have a divide by zero.
Fix your broken code. You obviously have a divide by zero.
Assume that xxxx-xxxx are like high price - low price , so it can't be equal to zero ever. kindly please take another close look , perhaps there is something else ...
Forex Analyst: Assume that xxxx-xxxx are like high price - low price , so it can't be equal to zero ever.
-
Please edit your (original) post and use the CODE button (Alt-S)! (For large amounts of code, attach it.)
General rules and best pratices of the Forum. - General - MQL5 programming forum 2019.05.06
Messages Editor - xxxx[i]-xxxx[i] is always zero. You didn't say xxxx[i]-yyyy[i] If you want real help post your real code.
We can't see your broken code.
How To Ask Questions The Smart Way. 2004
Be precise and informative about your problem - Of course, it can be zero. If you get one tick during the minute chart that is exactly what it will be. There can be minutes between ticks during the Asian session, think M1 chart.
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, every one ..
Kindly be generous with info.
Lately I changed my platform to meta trader 4 & I was struggling to convert my indicators to mql4 ,, as it is a new language to me , so after a lot of work & advises ,, at last I built something but unfortunately there is a little problem as mentioned above in the title, that indicators lines didn't appear on the minute time frames & some of the 5 minutes time frames , I will paste here most of the code , hoping that any gentlemen or ladies of course could help by telling me what I do wrong ?? how can I correct it.
Note: the four Xes in the equations like this "xxxx" supposed to be cache values, please ignore it, I will replace them later by another values that has meaning.