Lot Validation ?
Siti Latifah:
hello,
need help please.
how to get validation to use lot = 1.0 or lot=1.10 ?
check against MODE_LOTSTEP
MarketInfo() Identifiers - Appendixes - MQL4 Tutorial
- book.mql4.com
MarketInfo() Identifiers - Appendixes - MQL4 Tutorial
Siti Latifah:
i use minstep, error also
double ilot_step =MarketInfo(Symbol(),MODE_MINSTEP);
What is MODE_MINSTEP?
Does your code compile?
Keith Watford:
sorry, I mean LotStep
What is MODE_MINSTEP?
Does your code compile?
yes.. thanks.. done
Try the function RoundVolume() in my Math Utils library
Math Utils
- www.mql5.com
Handy functions for comparison and rounding of floating-point numbers (prices, lots and money).
hello,
need help please.
how to get validation to use lot = 1.0 or lot=1.10 ?
input lot = 1.02, error
input lot = 1.1, error
if I input manual Lot=1 or lot = 1.10, then passed.
But if I use script validation below, then get error 131
OrderSend error 131
i use minstep, error also
Thanks for help..