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
Candles and ema work on same scale. When I add macd I get this:
Previous scale of candles and ema are displayed on the macd scale.
Is there a way to fix it and display candles and ema lines on one scale and macd on another?
I mean is it possible on candlesticks charts?
Tried to find out on documentation and other discussions on git and internet but I have not found an answer so far.
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hello and thank you for your great work.
I created a candlestick chart with simple lines of EMA's and macd.
var options = {
series: [
{
name: 'Trend frame: ',
type: 'candlestick',
data: []
},{
name: 'EMA13: ',
type: 'line',
data: []
},{
name: 'EMA30: ',
type: 'line',
data: []
},{
name: 'MACD: ',
type: 'line',
data: []
}
],
yaxis: [{
seriesName: 'Trend frame: ',
show: true,
title: {
text: 'Price'
}
},{
seriesName: 'EMA13: ',
show: false
},{
seriesName: 'EMA30: ',
show: false
},{
seriesName: 'MACD: ',
opposite: true,
show: true,
title: {
text: 'macd'
}
var high_frame_chart = new ApexCharts(document.querySelector("#high_frame_chart"), options);
high_frame_chart.render();
var intervalID = setInterval(update_values, 1000);
function update_values() {
$.getJSON($SCRIPT_ROOT + '/update',
function(data_update) {
high_frame_chart.updateSeries([{
name: 'Trend frame: ' + data_update.runningHighFrame,
data: data_update.high_chart_data
},{
name: 'EMA13: ' + data_update.high_ema13[data_update.high_ema13.length - 1]['y'],
data: data_update.high_ema13
},{
name: 'EMA30: ' + data_update.high_ema30[data_update.high_ema30.length - 1]['y'],
data: data_update.high_ema30
},{
name: 'MACD: ' + data_update.high_macd[data_update.high_macd.length - 1]['y'],
data: data_update.high_macd
}
]);
}
);
};
Candles and ema work on same scale. When I add macd I get this:
Previous scale of candles and ema are displayed on the macd scale.
Is there a way to fix it and display candles and ema lines on one scale and macd on another?
I mean is it possible on candlesticks charts?
Tried to find out on documentation and other discussions on git and internet but I have not found an answer so far.
Thank you for your time.
Beta Was this translation helpful? Give feedback.
All reactions