Refactor AutomaticIndicatorWarmUp settings (#8111)

- Move EnableAutomaticIndicatorWarmUp as an algorithm setting named AutomaticIndicatorWarmUp
This commit is contained in:
Martin-Molinero
2024-06-26 17:02:48 -03:00
committed by GitHub
parent 8a34d4a7a3
commit c8446ae26e
14 changed files with 40 additions and 20 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ class CustomDataNIFTYAlgorithm(QCAlgorithm):
rupee = self.add_data(DollarRupee, "USDINR", Resolution.DAILY).symbol
nifty = self.add_data(Nifty, "NIFTY", Resolution.DAILY).symbol
self.enable_automatic_indicator_warm_up = True
self.settings.automatic_indicator_warm_up = True
rupee_sma = self.sma(rupee, 20)
nifty_sma = self.sma(rupee, 20)
self.log(f"SMA - Is ready? USDINR: {rupee_sma.is_ready} NIFTY: {nifty_sma.is_ready}")