You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried for few hours to have built-in indicators show on the chart, to no veil.
I even used data from macd-data.json (that exists in the night-vision project itself) as the sole source for chart's data, which contains has the following code:
It shows the candles with volume, but the lower pane is empty. Same issue for RSI. Same issue for BB done on same pane.
Checking the source code, it seems to me that indicators should be loaded on their own, and standard chart initialization should work fine: let chart = new NightVision("chart-container", { data: sdata, autoResize: true, colors: { back: "#111113", grid: "#2e2f3055" } });
I tried to find any reference code for the usage of built-in indicators, but found no single example. Please note that I have used trading-vue in the past and tvxp with some code changes. I mean if it took me few hours to add a built-in indicator, I think every new user who needs to use built-in indicators would face a similar struggle.
Am I doing anything wrong? Or can someone point me to a working example with a built-in indicator like MACD/RSI?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I tried for few hours to have built-in indicators show on the chart, to no veil.
I even used data from macd-data.json (that exists in the night-vision project itself) as the sole source for chart's data, which contains has the following code:
{ "panes": [ { "overlays": [ { "main": true, "type": "Candles", "name": "Ape Tether US 1h", "data": [ ... actual candles data ... ] } ], "scripts": [], "settings": { "scales": { "A": { "precision": 3 } } } }, { "overlays": [], "scripts": [ { "type": "MACD", "props": {} } ] } ] }
It shows the candles with volume, but the lower pane is empty. Same issue for RSI. Same issue for BB done on same pane.
Checking the source code, it seems to me that indicators should be loaded on their own, and standard chart initialization should work fine:
let chart = new NightVision("chart-container", { data: sdata, autoResize: true, colors: { back: "#111113", grid: "#2e2f3055" } });
I tried to find any reference code for the usage of built-in indicators, but found no single example. Please note that I have used trading-vue in the past and tvxp with some code changes. I mean if it took me few hours to add a built-in indicator, I think every new user who needs to use built-in indicators would face a similar struggle.
Am I doing anything wrong? Or can someone point me to a working example with a built-in indicator like MACD/RSI?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions