if(prev_calculated<0) return(-1); if(prev_calculated>0) return(1);
This means that the indicator will do nothing unless prev_calculated equals 0.
This means that the indicator will do nothing unless prev_calculated equals 0.
So I have to add a third condition to it or change the current conditions, correct ?
Thanks for your help
This means that the indicator will do nothing unless prev_calculated equals 0.
I changed it like this and the indicator is no longer displayed
if(prev_calculated<=0) return(-1); if(prev_calculated>=0) return(1);
I changed it like this and the indicator is no longer displayed
if(prev_calculated<=0) return(-1); if(prev_calculated>=0) return(1);
Are you kidding me??
Are you kidding me??
Please excuse me if I seem to disturb you unnecessarily.
but when I change the values, I get an error message showing that the value of the constant
prev_calulated
cannot be changed that's why
Are you kidding me??
I just did it, now it's good; thank you for your help
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
please help me fix this bug, i converted an MT4 indicator to MT5 i didn't get the same result but it works; the only concern is that it does not refresh when a new candle opens.
If you have any suggestions give me.
thank you in advance
MT5 code :