if( BuyAtStop( bar+1, Highest.Series( High,20 )bar ) != null ) { string symbol = Bars.Symbol; LastPosition.Tag = (symbol == "AAPL") ? 20.0 : // 20% equity for Apple (symbol == "MSFT") ? 10.0 : // 10% equity for Microsoft 5.0; // or 5% for anything else }