Rewrite CalcTradeOptions for faster performance