Sure:Hi Njoan,
Would you be able to provide a little more detail or an example of what it is that you are trying to do?
Integer selection = getSettings().getInteger(Inputs.INPUT);
Instrument s;
switch (selection):
case 1: s.setSymbol("IBM");
break;
case 2: s.setSymbol("FB");
break;
case 3: s.setSymbol("GE");
break;
// In the initialize method:
settinggroup.addRow(new InstrumentDescriptor(Inputs.INSTRUMENT, "Selection"));
// In the calculate method:
Instrument i1 = getSettings().getInstrument(Inputs.INSTRUMENT);
if (series.getClose(i1) < 40.0) i1.setSymbol("FB");