making indicator

 

hi

i  am gonna making andicator  which get stock  and index data and compare them.

is there any function for this in mql5?