def strategy(buySellList,sharePrice,trafficTax=0.0035,tafficCost=0.001):
    """
    Function that returns the % of profit fro a given buy-sell strategy
    
    buySellList = list of tuple indexes with (buyIndex,sellIndex)
    sharePrice = list of sharePrice over time
    """
    profitPercent=100
    buyValue=1

    for buySell in buySellList:
        buyValue=round(sharePrice[buySell[0]],2)*(1+trafficTax)*(1+tafficCost)
        sellValue=round(sharePrice[buySell[1]],2)*(1-trafficTax)*(1-tafficCost)
        profitPercent=profitPercent*sellValue/buyValue
        
    return round(profitPercent-100,2)