OrderLots() ==SellLots*1
Doubles rarely compare equal.
Bid/Ask: (No Need) to use NormalizeDouble in OrderSend - MQL4 forum
Can price != price ? - MQL4 forum
Help ... how to know broker's accepted volume ? - MQL4 forum
WHRoeder:
Doubles rarely compare equal.
Bid/Ask: (No Need) to use NormalizeDouble in OrderSend - MQL4 forum
Can price != price ? - MQL4 forum
Help ... how to know broker's accepted volume ? - MQL4 forum
yeah thanks dude....
kmnatarajan:
Read the threads, there are many options to correctly compare double variables/values.
yeah thanks dude....
hmmm, i got an alternative idea for that and now is working...i converted them to integer by multiplying them with some 100s, and stored in integer variables, then compared them.... thanks dudes..
kmnatarajan:
hmmm, i got an alternative idea for that and now is working...i converted them to integer by multiplying them with some 100s, and stored in integer variables, then compared them.... thanks dudes..
You mean like this ?
https://www.mql5.com/en/forum/140534
hmmm, i got an alternative idea for that and now is working...i converted them to integer by multiplying them with some 100s, and stored in integer variables, then compared them.... thanks dudes..
yeah, similar to the likes of it...i solved the issue...thanks..

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
In this code snippet, Instead of BuyLots*1, BuyLots*3,BuyLots*9, if i use digits like 0.1,0.3,0.9 respectively. The code works, if not the the below code does not work. can anyone point out what wrong i have done in this code??