Fix MA rendering and simplify signal UI
- Fixed MA plot ID to match return structure (ma vs value) - Moved Status and Last Signal display to main Indicator Analysis section - Removed Signal Status section from expanded indicator config - Simplified signal display to show only status icon/type and last signal date - Removed strength and reasoning tooltips from signal display
This commit is contained in:
@ -153,7 +153,7 @@ export class MAIndicator extends BaseIndicator {
|
||||
const maType = (this.params.maType || 'SMA').toLowerCase();
|
||||
const period = this.params.period || 44;
|
||||
|
||||
let maValues;
|
||||
let maValues;
|
||||
|
||||
switch (maType) {
|
||||
case 'sma':
|
||||
@ -176,6 +176,42 @@ export class MAIndicator extends BaseIndicator {
|
||||
}
|
||||
|
||||
return maValues.map(ma => ({ ma }));
|
||||
|
||||
getMetadata() {
|
||||
return {
|
||||
name: 'MA',
|
||||
description: 'Moving Average (SMA/EMA/RMA/WMA/VWMA)',
|
||||
inputs: [
|
||||
{
|
||||
name: 'period',
|
||||
label: 'Period',
|
||||
type: 'number',
|
||||
default: 44,
|
||||
min: 1,
|
||||
max: 500
|
||||
},
|
||||
{
|
||||
name: 'maType',
|
||||
label: 'MA Type',
|
||||
type: 'select',
|
||||
options: ['SMA', 'EMA', 'RMA', 'WMA', 'VWMA'],
|
||||
default: 'SMA'
|
||||
}
|
||||
],
|
||||
plots: [
|
||||
{
|
||||
id: 'ma',
|
||||
color: '#2962ff',
|
||||
title: 'MA',
|
||||
style: 'solid',
|
||||
width: 1
|
||||
}
|
||||
],
|
||||
displayMode: 'overlay'
|
||||
};
|
||||
}
|
||||
|
||||
return maValues;
|
||||
}
|
||||
|
||||
getMetadata() {
|
||||
|
||||
Reference in New Issue
Block a user