Error Operand expected but it is there
Hi, total noob here. I have an error and several warning s but I cant work out the issue. It says there is a '>=' - operand expected, but it is right there where it says the error is(marked in red background). What am I missing?? Also does anyone know of a tutor to help with learning MQL4? Happy to pay an hourly rate.
Files:
PriceActionTest.mq4
3 kb
- Please help me get this code working
- [Archive!] Pure mathematics, physics, chemistry, etc.: brain-training problems not related to trade in any way
- Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes
Da dadaa:
Hi, total noob here. I have an error and several warning s but I cant work out the issue. It says there is a '>=' - operand expected, but it is right there where it says the error is(marked in red background). What am I missing?? Also does anyone know of a tutor to help with learning MQL4? Happy to pay an hourly rate.
Hi, total noob here. I have an error and several warning s but I cant work out the issue. It says there is a '>=' - operand expected, but it is right there where it says the error is(marked in red background). What am I missing?? Also does anyone know of a tutor to help with learning MQL4? Happy to pay an hourly rate.
at first define variables and make your calculation there
then use them instead
i modify your code and >= solved
Files:
PriceActionTest.mq4
3 kb
Mohsen Bjp:
Thanks Mohsen. I was thinking of breaking it down like that..... Is that something you suggest in the future to solve problems? And really Thanks again!!
at first define variables and make your calculation there
then use them instead
i modify your code and >= solved
Da dadaa:
Thanks Mohsen. I was thinking of breaking it down like that..... Is that something you suggest in the future to solve problems? And really Thanks again!!
Thanks Mohsen. I was thinking of breaking it down like that..... Is that something you suggest in the future to solve problems? And really Thanks again!!
your welcome...what kind of problem do you mean?
if you have any question about mql you can pose in forum
if u didnt raech to answer send me a messege...i will try my best
| Your code | if(MathMin(Open[i],Close[i])-Low[i])) >= (2*MathAbs(Open[i]-Close[i])) && Close[i] > (((High[i]-Low[i])/2)+Low[i]); return(true); return(false); |
| Simplified | return MathMin(Open[i],Close[i])-Low[i])) >= (2*MathAbs(Open[i]-Close[i])) && Close[i] > (((High[i]-Low[i])/2)+Low[i]; |