how to chk microlot is allowed

 
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 ?

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);

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

Reason: