disclosure: noob to coding

Am I in the correct general area for thinking that in order to get a value for relative strength (security/index) I'll need to create a matrix and then divide them ?

Thanks

Author