I've never been able to do that in TOS.
You can do it in stockcharts.com using a colon, for instance to divide the HUI by the price of gold enter:
$HUI:$GOLD
Only problem is if you're not a member you're restricted to 3 years of data and only 2 timeframes.