fixed params handling in analysis panel
This commit is contained in:
@ -608,12 +608,8 @@ renderTA() {
|
|||||||
|
|
||||||
// Format params as "MA(44)" style
|
// Format params as "MA(44)" style
|
||||||
let paramsStr = '';
|
let paramsStr = '';
|
||||||
if (indSignal.params) {
|
if (indSignal.params !== null && indSignal.params !== undefined) {
|
||||||
const paramPairs = indSignal.params.split(',').map(p => {
|
paramsStr = `(${indSignal.params})`;
|
||||||
const [key, val] = p.split('=');
|
|
||||||
return key === 'period' || key === 'maType' ? val : `${key}:${val}`;
|
|
||||||
});
|
|
||||||
paramsStr = `(${paramPairs.join(',')})`;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return `
|
return `
|
||||||
|
|||||||
Reference in New Issue
Block a user