Cannot get any built-in Indicator to show on the pane #73
Unanswered
valery-abueid
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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