How to buy stocks from different stocks

Hi,

Can anyone tell me how to specify a buy rule that will buy stocks from different sectors (random) ?

For eg. My sim picks 4 stocks so I would like these 4 stocks to be from 4 different sectors. These can be any sectors from the complete sector list, and I would not like to put a restriction on which sectors to choose from.

Is this possible ?

You would use a rule like this in your Buy Rules: SecWeight<=25.
This would do exactly what you wanted. In practice, you would want to use 30 or 35% instead of 25 so that the system would have some wiggle room to invest any gains you have when you sell a stock and replace it with another.

You can also try indweight<x% or combination of secweight+indweight.

Thanks a lot. It worked.

:slight_smile:

Dear Dan & Tonysf,

what if I have to select 2 stocks out of 5 stocks not based on sectors issue but based on market timing & stock’s technical parameters ?

regards,
isam