Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu2301 committed Sep 28, 2021
1 parent ed6107b commit 267356c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,9 @@ module.exports = (autoInit = true) => {

p.v.forEach((val, i) => {
if (i === 0) return;
if (indicator.plots[`plot_${i - 1}`]) period[indicator.plots[`plot_${i - 1}`]] = val;
else period[`_plot_${i - 1}`] = val;
if (indicator.plots[`plot_${i - 1}`] && !period[indicator.plots[`plot_${i - 1}`]]) {
period[indicator.plots[`plot_${i - 1}`]] = val;
} else period[`_plot_${i - 1}`] = val;
});
periods[p.i][chart.indicators[parseInt(type, 10)].name || `st${type}`] = period;
}
Expand Down

0 comments on commit 267356c

Please sign in to comment.