VERSION 1.11 @ 2017-10-20 09:30:18.576618
Enable anonymousIP in Google Analytics #2011 Time labels (X axis) disappear in Opera #1870 "timeframe" parameter not work #1864 Drawing with a point in future disappears when requesting more data #1858 Allow a feed to return more data than requested to optimize server requests #1814 How to hide screenshot icon in the footer #1802 Chinese translations #1794 Setting exact visible range (time) via setVisibleRange method #1793 Setting the timezone after constructor is called #1791 Kagi displays 1 last bar for forex #1790 "showLoadChartDialog()/showSaveAsChartDialog()" not available #1779 Widgetbar issue on small screen resolution #1774 Don't hide left toolbar when resizing chart #1773 Trading Terminal 1.10: undefined if currency is not set #1772 Make Account Manager opened by default in Trading Terminal #1770 Save settings to the server #1758 Save "Show buy/sell panel" state after page refresh #1757 Add Price Channel indicator #1750 Add Connors RSI indicator #1749 closePopupsAndDialogs not work when custom (showNoticeDialog) showed!!! #1729 Add risk and account size to long/short position tool #1721 Choosing published date format in news widget #1719 nextTime doesn't fire more GetBars calls #1717 Fullscreen unable to close in IOS #1716 Trading Terminal: account manager show/hide columns #1708 Indonesian language #1707 Browser freezing when switching to a specific instrument #1698 Order dialog is not showing #1696 CRITICAL ISSUE - Data won't load after loading chart layout #1664 Add featureset to disable property pages at all #1660 Show showNoticeDialog must be on top of Indicator Menu List #1638 OHLC text color #1533 onChartReady does not fire if no bars are returned #1380 Trading View leaks all widget/chart event listeners on widget.remove() #1357 Add Moving Average Channel #1125 What do the grey circles on candlesticks indicate? Can we remove them? #1121 Add Accumulative Swing Index Indicator #1057 closePopupsAndDialogs method does not close screenshot dialog #935 datafeed content-type can't be application/json #867 Add EMA Cross and MA with EMA Cross #612 timeframes toolbar translation bug #287
This commit is contained in:
@@ -47,7 +47,10 @@ Datafeeds.UDFCompatibleDatafeed.prototype.getServerTime = function(callback) {
|
||||
if (this._configuration.supports_time) {
|
||||
this._send(this._datafeedURL + '/time', {})
|
||||
.done(function(response) {
|
||||
callback(+response);
|
||||
var time = +response;
|
||||
if (!isNaN(time)) {
|
||||
callback(time);
|
||||
}
|
||||
})
|
||||
.fail(function() {
|
||||
});
|
||||
@@ -356,19 +359,19 @@ Datafeeds.UDFCompatibleDatafeed.prototype.getBars = function(symbolInfo, resolut
|
||||
for (var i = 0; i < barsCount; ++i) {
|
||||
var barValue = {
|
||||
time: data.t[i] * 1000,
|
||||
close: data.c[i]
|
||||
close: +data.c[i]
|
||||
};
|
||||
|
||||
if (ohlPresent) {
|
||||
barValue.open = data.o[i];
|
||||
barValue.high = data.h[i];
|
||||
barValue.low = data.l[i];
|
||||
barValue.open = +data.o[i];
|
||||
barValue.high = +data.h[i];
|
||||
barValue.low = +data.l[i];
|
||||
} else {
|
||||
barValue.open = barValue.high = barValue.low = barValue.close;
|
||||
barValue.open = barValue.high = barValue.low = +barValue.close;
|
||||
}
|
||||
|
||||
if (volumePresent) {
|
||||
barValue.volume = data.v[i];
|
||||
barValue.volume = +data.v[i];
|
||||
}
|
||||
|
||||
bars.push(barValue);
|
||||
@@ -523,7 +526,6 @@ Datafeeds.SymbolsStorage.prototype._onExchangeDataReceived = function(exchangeNa
|
||||
force_session_rebuild: tableField(data, 'force-session-rebuild', symbolIndex) || false,
|
||||
has_daily: tableField(data, 'has-daily', symbolIndex) || true,
|
||||
intraday_multipliers: tableField(data, 'intraday-multipliers', symbolIndex) || ['1', '5', '15', '30', '60'],
|
||||
has_fractional_volume: tableField(data, 'has-fractional-volume', symbolIndex) || false,
|
||||
has_weekly_and_monthly: tableField(data, 'has-weekly-and-monthly', symbolIndex) || false,
|
||||
has_empty_bars: tableField(data, 'has-empty-bars', symbolIndex) || false,
|
||||
volume_precision: tableField(data, 'volume-precision', symbolIndex) || 0
|
||||
|
||||
Reference in New Issue
Block a user