try this. http://bit.ly/rUGFwD
@Configurable("")
public List prices= new ArrayList(Arrays.asList(new double[] {.004,.05,.01,.1}));
private int level=0;
...
// submitting the order with the specified amount, command and take profit
submitOrder(prices.get(level++), orderCmd, tpPipsOnLoss);
...