i am trying to achieve the following:
I have a basket of stocks that get compared on relative strength and then sortet by lowest to highest value. Taking the last 5 values of the sorted list will give me a key/value pair of the instruments i want to buy. So i actually have for example (List<KeyValuePair<double, string>>):
1.9, IEV
1.67, QQQ
1.51, EFA
This works so far. What i now want is to actually EnterLong() on the three calculated positions, but i am unsure how to actually do that, since EnterLong() does not have a valid method for entering a specific instrument. Is it possible to compare my SYM string to anything? I am looking for something like:
EnterLong("IEV");
EnterLong("QQQ");
EnterLong("EFA");
Thanks for reading.

Comment