Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting bars continously from the past #117

Open
xescuder opened this issue Jun 20, 2024 · 0 comments
Open

Getting bars continously from the past #117

xescuder opened this issue Jun 20, 2024 · 0 comments

Comments

@xescuder
Copy link

xescuder commented Jun 20, 2024

Hi. The chart is shown correctly at the start, but the datafeed is requested continuously for all past ticks (never ends). I've activated the debug to see what happens but I don't see why it's doing this strange behaviour:

library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Processing pending subscribers, count=1
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Leftmost subscriber requires 300 bars prior 2024-06-20T00:00:00.000Z
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Requesting data: [2023-04-27T00:00:00.000Z ... 2024-06-20T00:00:00.000Z, 300 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Receiving bars: total 301 bars in [2023-04-06T00:00:00.000Z ... 2024-06-17T00:00:00.000Z], requested range: [2023-04-27T00:00:00.000Z ... 2024-06-20T00:00:00.000Z, 300 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Processing pending subscribers, count=1
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Leftmost subscriber requires 0 bars prior 2023-04-10T00:00:00.000Z
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Bars to return for request 0: total 300 bars in [2023-04-10T07:30:00.000Z ... 2024-06-17T07:30:00.000Z]
datafeed.js:93 [subscribeBars]: Method call with subscriberUID: MRNA.US_#USD#_1D
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Subscribed to realtime
library.0f3decc3cfc32a3eb326.js:847 Event "onChartReady", arguments: []
library.0f3decc3cfc32a3eb326.js:847 Event "undo_redo_state_changed", arguments: [{"enableUndo":false,"undoCommandCount":0,"enableRedo":false,"redoCommandCount":0}]
library.0f3decc3cfc32a3eb326.js:847 Event "study", arguments: [{"category":"studies","value":"Volume"}]
library.0f3decc3cfc32a3eb326.js:847 Event "study_event", arguments: ["eRBymP","price_scale_changed"]
library.0f3decc3cfc32a3eb326.js:847 Event "undo_redo_state_changed", arguments: [{"enableUndo":true,"undoCommandCount":1,"undoText":"insert Volume","enableRedo":false,"redoCommandCount":0,"originalUndoText":"insert Volume"}]
library.0f3decc3cfc32a3eb326.js:847 Event "study", arguments: [{"category":"studies","value":"Moving Average"}]
library.0f3decc3cfc32a3eb326.js:847 Event "study_event", arguments: ["RWXsPc","price_scale_changed"]
library.0f3decc3cfc32a3eb326.js:847 Event "undo_redo_state_changed", arguments: [{"enableUndo":true,"undoCommandCount":2,"undoText":"insert Moving Average","enableRedo":false,"redoCommandCount":0,"originalUndoText":"insert Moving Average"}]
library.0f3decc3cfc32a3eb326.js:847 Event "legend_action", arguments: [{"category":"GUI","label":"Show not main sources","value":""}]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Processing pending subscribers, count=2
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Leftmost subscriber requires 208 bars prior 2023-04-06T00:00:00.000Z
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Requesting data: [2022-06-19T00:00:00.000Z ... 2023-04-06T00:00:00.000Z, 208 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Processing is skipped due active request
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Receiving bars: total 209 bars in [2023-08-18T00:00:00.000Z ... 2024-06-17T00:00:00.000Z], requested range: [2022-06-19T00:00:00.000Z ... 2023-04-06T00:00:00.000Z, 208 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Received history up to now instead of incremental update. Return exactly what is requested.
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Processing pending subscribers, count=2
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Leftmost subscriber requires 209 bars prior 2023-08-18T00:00:00.000Z
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Requesting data: [2021-08-31T00:00:00.000Z ... 2022-06-19T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Receiving bars: total 210 bars in [2023-08-17T00:00:00.000Z ... 2024-06-17T00:00:00.000Z], requested range: [2021-08-31T00:00:00.000Z ... 2022-06-19T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Received history up to now instead of incremental update. Return exactly what is requested.
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Processing pending subscribers, count=2
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Leftmost subscriber requires 209 bars prior 2023-08-17T00:00:00.000Z
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Requesting data: [2020-11-12T00:00:00.000Z ... 2021-08-31T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Receiving bars: total 210 bars in [2023-08-17T00:00:00.000Z ... 2024-06-17T00:00:00.000Z], requested range: [2020-11-12T00:00:00.000Z ... 2021-08-31T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Time range of received data is the same as cached one. Skip the update.
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Processing pending subscribers, count=2
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Leftmost subscriber requires 209 bars prior 2023-08-17T00:00:00.000Z
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Requesting data: [2020-01-25T00:00:00.000Z ... 2020-11-12T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Receiving bars: total 210 bars in [2023-08-17T00:00:00.000Z ... 2024-06-17T00:00:00.000Z], requested range: [2020-01-25T00:00:00.000Z ... 2020-11-12T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Time range of received data is the same as cached one. Skip the update.
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Processing pending subscribers, count=2
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Leftmost subscriber requires 209 bars prior 2023-08-17T00:00:00.000Z
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Requesting data: [2019-04-08T00:00:00.000Z ... 2020-01-25T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Receiving bars: total 210 bars in [2023-08-17T00:00:00.000Z ... 2024-06-17T00:00:00.000Z], requested range: [2019-04-08T00:00:00.000Z ... 2020-01-25T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Time range of received data is the same as cached one. Skip the update.
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Processing pending subscribers, count=2
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Leftmost subscriber requires 209 bars prior 2023-08-17T00:00:00.000Z
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Requesting data: [2018-06-20T00:00:00.000Z ... 2019-04-08T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Receiving bars: total 210 bars in [2023-08-17T00:00:00.000Z ... 2024-06-17T00:00:00.000Z], requested range: [2018-06-20T00:00:00.000Z ... 2019-04-08T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Time range of received data is the same as cached one. Skip the update.
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Processing pending subscribers, count=2
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Leftmost subscriber requires 209 bars prior 2023-08-17T00:00:00.000Z
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Requesting data: [2017-09-01T00:00:00.000Z ... 2018-06-20T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Receiving bars: total 210 bars in [2023-08-17T00:00:00.000Z ... 2024-06-17T00:00:00.000Z], requested range: [2017-09-01T00:00:00.000Z ... 2018-06-20T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Time range of received data is the same as cached one. Skip the update.
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Processing pending subscribers, count=2
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Leftmost subscriber requires 209 bars prior 2023-08-17T00:00:00.000Z
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Requesting data: [2016-11-13T00:00:00.000Z ... 2017-09-01T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:847 Event "onAutoSaveNeeded", arguments: []
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Receiving bars: total 210 bars in [2023-08-17T00:00:00.000Z ... 2024-06-17T00:00:00.000Z], requested range: [2016-11-13T00:00:00.000Z ... 2017-09-01T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Time range of received data is the same as cached one. Skip the update.
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Processing pending subscribers, count=2
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Leftmost subscriber requires 209 bars prior 2023-08-17T00:00:00.000Z
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Requesting data: [2016-01-26T00:00:00.000Z ... 2016-11-13T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Receiving bars: total 210 bars in [2023-08-17T00:00:00.000Z ... 2024-06-17T00:00:00.000Z], requested range: [2016-01-26T00:00:00.000Z ... 2016-11-13T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Time range of received data is the same as cached one. Skip the update.
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Processing pending subscribers, count=2
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Leftmost subscriber requires 209 bars prior 2023-08-17T00:00:00.000Z
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Requesting data: [2015-04-09T00:00:00.000Z ... 2016-01-26T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Receiving bars: total 210 bars in [2023-08-17T00:00:00.000Z ... 2024-06-17T00:00:00.000Z], requested range: [2015-04-09T00:00:00.000Z ... 2016-01-26T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Time range of received data is the same as cached one. Skip the update.
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Processing pending subscribers, count=2
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Leftmost subscriber requires 209 bars prior 2023-08-17T00:00:00.000Z
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Requesting data: [2014-06-21T00:00:00.000Z ... 2015-04-09T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Receiving bars: total 210 bars in [2023-08-17T00:00:00.000Z ... 2024-06-17T00:00:00.000Z], requested range: [2014-06-21T00:00:00.000Z ... 2015-04-09T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Time range of received data is the same as cached one. Skip the update.
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Processing pending subscribers, count=2
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Leftmost subscriber requires 209 bars prior 2023-08-17T00:00:00.000Z
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Requesting data: [2013-09-02T00:00:00.000Z ... 2014-06-21T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Receiving bars: total 210 bars in [2023-08-17T00:00:00.000Z ... 2024-06-17T00:00:00.000Z], requested range: [2013-09-02T00:00:00.000Z ... 2014-06-21T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Time range of received data is the same as cached one. Skip the update.
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Processing pending subscribers, count=2
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Leftmost subscriber requires 209 bars prior 2023-08-17T00:00:00.000Z
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Requesting data: [2012-11-14T00:00:00.000Z ... 2013-09-02T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Receiving bars: total 210 bars in [2023-08-17T00:00:00.000Z ... 2024-06-17T00:00:00.000Z], requested range: [2012-11-14T00:00:00.000Z ... 2013-09-02T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Time range of received data is the same as cached one. Skip the update.
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Processing pending subscribers, count=2
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Leftmost subscriber requires 209 bars prior 2023-08-17T00:00:00.000Z
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Requesting data: [2012-01-27T00:00:00.000Z ... 2012-11-14T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Receiving bars: total 210 bars in [2023-08-17T00:00:00.000Z ... 2024-06-17T00:00:00.000Z], requested range: [2012-01-27T00:00:00.000Z ... 2012-11-14T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Time range of received data is the same as cached one. Skip the update.
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Processing pending subscribers, count=2
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Leftmost subscriber requires 209 bars prior 2023-08-17T00:00:00.000Z
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Requesting data: [2011-04-10T00:00:00.000Z ... 2012-01-27T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Receiving bars: total 210 bars in [2023-08-17T00:00:00.000Z ... 2024-06-17T00:00:00.000Z], requested range: [2011-04-10T00:00:00.000Z ... 2012-01-27T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Time range of received data is the same as cached one. Skip the update.
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Processing pending subscribers, count=2
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Leftmost subscriber requires 209 bars prior 2023-08-17T00:00:00.000Z
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Requesting data: [2010-06-22T00:00:00.000Z ... 2011-04-10T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Receiving bars: total 210 bars in [2023-08-17T00:00:00.000Z ... 2024-06-17T00:00:00.000Z], requested range: [2010-06-22T00:00:00.000Z ... 2011-04-10T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Time range of received data is the same as cached one. Skip the update.
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Processing pending subscribers, count=2
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Leftmost subscriber requires 209 bars prior 2023-08-17T00:00:00.000Z
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Requesting data: [2009-09-03T00:00:00.000Z ... 2010-06-22T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Receiving bars: total 210 bars in [2023-08-17T00:00:00.000Z ... 2024-06-17T00:00:00.000Z], requested range: [2009-09-03T00:00:00.000Z ... 2010-06-22T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Time range of received data is the same as cached one. Skip the update.
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Processing pending subscribers, count=2
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Leftmost subscriber requires 209 bars prior 2023-08-17T00:00:00.000Z
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Requesting data: [2008-11-15T00:00:00.000Z ... 2009-09-03T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Receiving bars: total 210 bars in [2023-08-17T00:00:00.000Z ... 2024-06-17T00:00:00.000Z], requested range: [2008-11-15T00:00:00.000Z ... 2009-09-03T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Time range of received data is the same as cached one. Skip the update.
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Processing pending subscribers, count=2
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Leftmost subscriber requires 209 bars prior 2023-08-17T00:00:00.000Z
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Requesting data: [2008-01-28T00:00:00.000Z ... 2008-11-15T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Receiving bars: total 210 bars in [2023-08-17T00:00:00.000Z ... 2024-06-17T00:00:00.000Z], requested range: [2008-01-28T00:00:00.000Z ... 2008-11-15T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Time range of received data is the same as cached one. Skip the update.
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Processing pending subscribers, count=2
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Leftmost subscriber requires 209 bars prior 2023-08-17T00:00:00.000Z
library.0f3decc3cfc32a3eb326.js:40 FEED [Moderna Inc|1D|USD]: Requesting data: [2007-04-11T00:00:00.000Z ... 2008-01-28T00:00:00.000Z, 209 bars]
library.0f3decc3cfc32a3eb326.js:40

My getBarscode is:

getBars: async (symbolInfo, resolution, periodParams, onHistoryCallback, _onErrorCallback) => {
		const { to, countBack, firstDataRequest } = periodParams;
		const url = `/bars/${symbolInfo.ticker}?countback=${countBack}&end=${to}&resolution=${resolution}&firstdatarequest=${firstDataRequest}`;

		const payload = await fetcher(url);					
		
		let bars = [];	
		if (payload.length) {
			bars = payload.map((el) => {
				return {
					time: el.ts * 1000, // TradingView requires bar time in ms
					low: el.low,
					high: el.high,
					open: el.open,
					close: el.close,
					volume: el.volume,
				};
			});

			// Once all the bars (usually countBack is around 300 bars) the array of candles is returned to the library.				
			onHistoryCallback(bars, { noData: false });
		} else {
			// If no result, return an empty array and specify it to the library by changing the value of `noData` to true.
			onHistoryCallback(bars, { noData: true });				
		}
	},

Someone can help me? I've tried a lot of things, but I am stuck. Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant