fallback if strat don't specify startup candle

This commit is contained in:
Stefano
2025-08-14 16:06:15 +09:00
parent a37edf8c62
commit 6edcda1e42

View File

@@ -17,7 +17,7 @@ class RecursiveAnalysisSubFunctions:
@staticmethod @staticmethod
def text_table_recursive_analysis_instances(recursive_instances: list[RecursiveAnalysis]): def text_table_recursive_analysis_instances(recursive_instances: list[RecursiveAnalysis]):
startups = recursive_instances[0]._startup_candle startups = recursive_instances[0]._startup_candle
strat_scc = recursive_instances[0]._strat_scc strat_scc = recursive_instances[0]._strat_scc or 0
headers = ["Indicators"] headers = ["Indicators"]
for candle in startups: for candle in startups:
if candle == strat_scc: if candle == strat_scc: