I am using several external sector funds and looking for the one that has the highest rate of change. I have introduced each fund with
CODE:
Please log in to see this code.
I would then like to find the one with the highest value and then screen for stocks that are in that sector by saving the sector name of the ETF and requiring that each stock scanned have the same sector name. I have created an array of these ETF ROCS as follows:
CODE:
Please log in to see this code.
This array is apparently correct as the program compiles in WLP but I don't know how to use it.
I don't know how to pick out the one with the highest (or lowest) or second highest and save it as a variable to test in a later part of the strategy.
Thanks for your help.
Rich Man