Can a code be written to detect what account type is being used e.g. Nano or Mini etc

 

Hello

Is there away of detecting the type of account traded Standard or nano or mini

 

Check the output of MarketInfo(Symbol(),MODE_LOTSTEP) and MarketInfo(Symbol(),MODE_MINLOT).


CB

 
    double  maxLossPerLot   = SL_points/Point
                            * MarketInfo( Symbol(), MODE_TICKVALUE );
    // IBFX demo/mini       EURUSD TICKVALUE=0.1 MAXLOT=50 LOTSIZE=10,000
    // In tester I had a sale: open=1.35883 close=1.35736 (0.00147)
    // gain$=97.32/6.62 lots/147 points=$0.10/point or $1.00/pip.
    // IBFX demo/standard   EURUSD TICKVALUE=1.0 MAXLOT=50 LOTSIZE=100,000
    //                                  $1.00/point or $10.00/pip.
Reason: