hi in mql any builtin function for check if the broker support microlot or not. if not any builtin functions then any ideas ?
lakshij:
hi in mql any builtin function for check if the broker support microlot or not. if not any builtin functions then any ideas ?
hi in mql any builtin function for check if the broker support microlot or not. if not any builtin functions then any ideas ?
MarketInfo(Symbol(),MODE_MINLOT);//Minimum permitted amount of a lot. MarketInfo(Symbol(),MODE_LOTSTEP);//Step for changing lots. MarketInfo(Symbol(),MODE_MAXLOT);//Maximum permitted amount of a lot.
tahnz for the replies .n can u more explaon about MarketInfo(Symbol(),MODE_LOTSTEP);
lakshij:
tahnz for the replies .n can u more explaon about MarketInfo(Symbol(),MODE_LOTSTEP);
tahnz for the replies .n can u more explaon about MarketInfo(Symbol(),MODE_LOTSTEP);
Minimum lotsize might be 0.1 lots but minimum lotstep could be 0.01 lots, or 0.1 lots, etc. Meaning allowed lotsizes could be 0.10, 0.11, 0.12, etc or 0.1, 0.2, 0.3, etc.
LotStep = MarketInfo(Symbol(), MODE_LOTSTEP), //IBFX= 0.01 maxLot = MarketInfo(Symbol(), MODE_MAXLOT ), //IBFX=50.00 minLot = MarketInfo(Symbol(), MODE_MINLOT ); //IBFX= 0.01 //Was IBFX= 0.10 size = MathFloor(size/LotStep)*LotStep; if (size < minLot){ // Insufficient margin.
thanx guys nw i clear the points
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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