Spaces:
Runtime error
Runtime error
File size: 699 Bytes
5913c8f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
from indicator_analyzer import IndicatorAnalyzer
from lightweight_charts import Chart
class AutoIndicatorGenerator:
def __init__(self):
self.analyzer = IndicatorAnalyzer()
def generate_indicator_charts(self, ohlcv_data):
indicators = self.analyzer.analyze_indicators(ohlcv_data)
charts = []
for indicator in indicators:
chart = Chart()
chart.candlestick(ohlcv_data)
chart.add_indicator(
type=indicator['type'],
values=indicator['values'],
parameters=indicator['parameters']
)
charts.append(chart)
return charts
|