I am new to programming world and i am struggling to learn programming. Can anybody backtest  this strategy on my behalf

selecting the stock from top 1500 companies

total number of stocks held maximum 20

rebalance the portfolio yearly basis

rankiing the stocks with

1 price to earning

2,price to book value,

3 price to free cashflow 

4 price to sales

adding quality constraint of

1 no additional debt this year compared to last year

2 no increase of total number of shares

thank you in advance