- Introduced a comprehensive user indicator management system in `components/charts/indicator_manager.py`, allowing users to create, edit, and manage custom indicators with JSON persistence. - Added new default indicators in `components/charts/indicator_defaults.py` to provide users with immediate options for technical analysis. - Enhanced the chart rendering capabilities by implementing the `create_chart_with_indicators` function in `components/charts/builder.py`, supporting both overlay and subplot indicators. - Updated the main application layout in `app.py` to include a modal for adding and editing indicators, improving user interaction. - Enhanced documentation to cover the new indicator system, including a quick guide for adding new indicators and detailed usage examples. - Added unit tests to ensure the reliability and functionality of the new indicator management features.
38 lines
756 B
JSON
38 lines
756 B
JSON
{
|
|
"name": "MACD",
|
|
"description": "Moving Average Convergence Divergence",
|
|
"type": "macd",
|
|
"display_type": "subplot",
|
|
"default_parameters": {
|
|
"fast_period": 12,
|
|
"slow_period": 26,
|
|
"signal_period": 9
|
|
},
|
|
"parameter_schema": {
|
|
"fast_period": {
|
|
"type": "int",
|
|
"min": 2,
|
|
"max": 50,
|
|
"default": 12,
|
|
"description": "Fast EMA period"
|
|
},
|
|
"slow_period": {
|
|
"type": "int",
|
|
"min": 5,
|
|
"max": 100,
|
|
"default": 26,
|
|
"description": "Slow EMA period"
|
|
},
|
|
"signal_period": {
|
|
"type": "int",
|
|
"min": 2,
|
|
"max": 30,
|
|
"default": 9,
|
|
"description": "Signal line period"
|
|
}
|
|
},
|
|
"default_styling": {
|
|
"color": "#fd7e14",
|
|
"line_width": 2
|
|
}
|
|
} |