The basket will be composed of the stocks selected using criteria you entered, and the number of shares of each stock will be calculated using historical correlations between daily changes of the index value and daily changes of the stocks that are in the index. TWS will choose coefficients to maximize correlation of the basket with the index, and will propose to buy or sell as many shares of each stock as is necessary to achieve the best possible correlation.