Skip to main content

TopLoosers

TopLoosers provides a list of (valid at the moment) worst performers. Data is compiled by the data provider of your choice.

TopLoosers.update#

Refreshes the list of the current top performers. eshes the list of the current top performers.

• parameters

NONE

• return value:

NONE

TopLoosers.all#

Returns a list of the most recently updated worst performers. The list should be refreshed with a call to TopGainers.update(), otherwise it may be outdated. If the top gainers/loosers feature is not supported by your data provider, an empty list will be returned.

• parameters

NONE

• return value:

ResultReturn value
on successiterable list symbols of worst performers
on erroran empty list
TopLoosers.update();
var list = TopLoosers.all();
list.forEach(function(gainer) {
if (gainer.currentPrice < 10.0) {
Positions.add(gainer.symbol);
}
});