%
var instruments = model.models;
if (!instruments){
return;
}
var difPercentBar;
var maxValue;
if (instruments.length > 0) {
maxValue = instruments[0].getDescriptorValue(INFOBOLSA.Descriptors.ChangePercent, 2);
}
%>
<% var mv = '';
var decimals;
var topFlopCls;
var ticker;
var min;
var max;
_.each(model.models, function(instrument, index) {
decimals = instrument.getDecimals();
if (instrument.isRising()) {
mv = instrument.getDescriptorValue("MV");
difPercentBar = (index==0 && maxValue) ? 100 : Math.round((instrument.getDescriptorValue(INFOBOLSA.Descriptors.ChangePercent, 2)*100)/maxValue);
url = instrument.composeDetailsUrl();
%>
-
<%=instrument.getDescriptorValue(INFOBOLSA.Descriptors.InstrumentTicker)%>
<%= instrument.formatAsNumber(INFOBOLSA.Descriptors.ChangePercent, 2) %>%
<%= instrument.formatAsNumber(INFOBOLSA.Descriptors.Last, decimals) %>
<% }
});
%>