This is a programmers forum.
To learn the trading basics view some webinars from your broker (or search for them) or by a book.
The specifications what you are allowed to trade can you get from your broker.
Perhaps you should read the manual. There is minLot and maxLot.
You asked for lots being a function of money. Insufficient, you also need to know how much the market could move. A .01 lotsize is $0.01 per point (5 digit broker) but if the market move 100 pips that is worth only $10.
To add comments, please log in or register