mirror of
https://github.com/TauricResearch/TradingAgents.git
synced 2026-05-01 14:33:10 +03:00
fix: normalize indicator names to lowercase (#490)
This commit is contained in:
@@ -22,7 +22,7 @@ def get_indicators(
|
|||||||
"""
|
"""
|
||||||
# LLMs sometimes pass multiple indicators as a comma-separated string;
|
# LLMs sometimes pass multiple indicators as a comma-separated string;
|
||||||
# split and process each individually.
|
# split and process each individually.
|
||||||
indicators = [i.strip() for i in indicator.split(",") if i.strip()]
|
indicators = [i.strip().lower() for i in indicator.split(",") if i.strip()]
|
||||||
results = []
|
results = []
|
||||||
for ind in indicators:
|
for ind in indicators:
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user