Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
7.2k views
in Technique[技术] by (71.8m points)

javascript - TradingView onMoreTickmarksRequested I undefined

I'm trying to use TradingView to show a chart with historical + live data.

When the chart is instantiated & history loaded nothing show up. If I scroll the chart to the right I have this error

Uncaught TypeError: i is undefined onMoreTickmarksRequested library.767121b9742321e63a67.js:199 requestMoreTickmarks library.767121b9742321e63a67.js:206 s library.767121b9742321e63a67.js:204 _doWhenSeriesSymbolIdIsReady library.767121b9742321e63a67.js:205 requestMoreTickmarks library.767121b9742321e63a67.js:206 requestMoreTickmarks library.767121b9742321e63a67.js:20 requestMoreData library.767121b9742321e63a67.js:601 onData library.767121b9742321e63a67.js:597 _handler library.767121b9742321e63a67.js:591 _invokeHandler library.767121b9742321e63a67.js:207 _invokeNotificationHandler library.767121b9742321e63a67.js:207 _dispathNotification library.767121b9742321e63a67.js:207 receiveLocalResponse library.767121b9742321e63a67.js:204 onSeriesCompleted library.767121b9742321e63a67.js:299 createSeries library.767121b9742321e63a67.js:198 recalc library.767121b9742321e63a67.js:196 recalc library.767121b9742321e63a67.js:568 update library.767121b9742321e63a67.js:568 s library.767121b9742321e63a67.js:568 fire library.767121b9742321e63a67.js:164 _recalc library.767121b9742321e63a67.js:164 recalc library.767121b9742321e63a67.js:164 recalc library.767121b9742321e63a67.js:568 update library.767121b9742321e63a67.js:568 s library.767121b9742321e63a67.js:568 fire library.767121b9742321e63a67.js:164 subs library.767121b9742321e63a67.js:163 subscribe library.767121b9742321e63a67.js:194 _returnHistoryDataToSubscriber library.767121b9742321e63a67.js:378 _processPendingSubscribers library.767121b9742321e63a67.js:378 _processPendingSubscribers library.767121b9742321e63a67.js:378 _processBars library.767121b9742321e63a67.js:379 _ensureRequestedTo library.767121b9742321e63a67.js:379

If I go to the left the history show up and I have the live quote too.

All my times is in UTC, I return only 1 min candle from the back end and my intraday_multiplier only have ['1'] for the tests (I have this issue with all timeframe)

My timezone defined on the "resolveSymbol" function is always Etc/UTC too...

Any idea welcome, I've tried with debug = true too but I have nothing except this error.

Thanks a lot


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
by (100 points)

If you are doing this for crypto, I will suggest you to try TradingView alternative like Coiningy 

Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...