Why do we need Cerebro runonce set to false when we are using multiple timeframes?
-
Why do we need Cerebro runonce set to false when we are using multiple timeframes?
When I run the sample code in the article below
https://www.backtrader.com/blog/posts/2016-04-28-pivot-point-cross-plotting/pivotpoint-crossplotting/It produces the same results when I set runonce =True or False
-
@tigerandy said in Why do we need Cerebro runonce set to false when we are using multiple timeframes?:
runonce
You should get the same result. Read the docs here: runonce Runonce is used to speed up runtime where possible using batch operations.
-
@run-out Yes I know it speeds up time but what I want to know is why it isn't causing an error because that is what I thought would happen.
-
@tigerandy Yeah, but why are you expecting an error?
-
@run-out Since in the backtrader docs(backtrader.com/docu/data-multitimeframe/data-multitimeframe/) it says it needs runonce to False.