@vladisld Thanks a lot!
For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/

Latest posts made by Evgeniy
-
analyzers erro: AttributeError: 'list' object has no attribute 'analyzers'
Hello! When studying this library, I ran into a problem.
I do everything on the lesson of trade analysis. But I get an error.
My cod:
cerebro = bt.Cerebro(stdstats=False) data = PandasData(dataname=df, timeframe=bt.TimeFrame.Minutes) cerebro.addanalyzer(TradeAnalyzer, _name="ta") cerebro.adddata(data) cerebro.optstrategy(Strategy) thestrats = cerebro.run() strat = thestrats[0] print(strat.analyzers.ta.get_analysis())
error:
print(strat.analyzers.ta.get_analysis()) AttributeError: 'list' object has no attribute 'analyzers'
What is the problem?
-
How to find out the closing price an hour ago?
I can not find in WiKi how can I find out the closing price some time ago.