Closed Seungwoo321 closed 2 years ago
completedTrades based on trades should appear above the candlestick.
completedTrades
trades
candlestick
. . onchart: [ { name: 'Trades', type: 'CompletedTrades', data: trades, settings: { 'z-index': 1000 } } ] . .
The data sample must follow the current data structure.
"ohlcv": [ [1646830800000, 305.45, 306.2, 304.6, 305, 7082], [1646834400000, 305, 307.85, 305.05, 306.65, 8455] ], "onchart": [ { "name": "Trades", "type": "CompletedTrades", "data": [ [1649412063000, 1, 334.6, "long"], [1649415833000, 0, 331.25, "long", -1.0012] ], "settings": { "z-index": 1000 } } ]
No console error
(if needed to reproduce the issue)
(tvjs version, OS, browser, npm version...)
my mistake
(!important) Maybe you would prefer making an interactive demo with https://tvjs.io/play. If so, please select the PlayGround template.
(!important 2) Consider reading the FAQ first, because it helps to solve 82% of issues.
Description
completedTrades
based ontrades
should appear above thecandlestick
.Screenshot
Code (MVP)
Data Sample
The data sample must follow the current data structure.
Console errors (if any)
No console error
Additional Info
(if needed to reproduce the issue)
(tvjs version, OS, browser, npm version...)
my code: