Accessing the price of different instruments

Can we access the price of different instruments in one custom indicator? Like writing a custom indicator that takes the price of NQ and ES and then use that to build a function? Currently what I see is that wherever you hook the custom indicator it uses the price of that instrument. Could we access this?