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