Hi!
I'm a newbie on MQL4, but I've done a lot of programming in other languages so the structure is not unknown for me.
But, I have a littel problem that I just can not understand. I have two variables, that i can't divide! I'v tried all ways, but it doesn't work.
Lets say I giva one variabel the value of High > double dHigh=High[i];
where 'i' is the barnr that should be calculated (everything is in a loop).
The other variabel Low > double dLow=Low[i];
If I send those values to the buffer everything is ok, and if I try to divide each of them by a constant everything is ok too.
But, If I try to divide dHigh with dLow - I get nothing? Why doesn't this work? Something fundamental that i've missed? It doesn't matter what value that is assigned to the variables, it just does not work! (the indicator filed in metatrader is blank)
I would really need help with this one guys. Thanks in advance!
/johan
I'm a newbie on MQL4, but I've done a lot of programming in other languages so the structure is not unknown for me.
But, I have a littel problem that I just can not understand. I have two variables, that i can't divide! I'v tried all ways, but it doesn't work.
Lets say I giva one variabel the value of High > double dHigh=High[i];
where 'i' is the barnr that should be calculated (everything is in a loop).
The other variabel Low > double dLow=Low[i];
If I send those values to the buffer everything is ok, and if I try to divide each of them by a constant everything is ok too.
But, If I try to divide dHigh with dLow - I get nothing? Why doesn't this work? Something fundamental that i've missed? It doesn't matter what value that is assigned to the variables, it just does not work! (the indicator filed in metatrader is blank)
I would really need help with this one guys. Thanks in advance!
/johan