For USA (dollar-priced assets):
CPI ticker: FRED:CPIAUCSL
Calculate ratio R:
R = ( y / FRED:CPIAUCSL) where y is the current value
Calculate real price:
Asset symbol * R
Example: calculate real price of Comex gold futures (COMEX:GC1!)
'COMEX:GC1!' * (256.16 / 'FRED:CPIAUCSL')
Note
1) Sometimes it is necessary to put symbol names in 'quotation marks' when...