Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about backtrader

Read more about backtrader

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - backtrader

Backtrader issue - optstrategy AttributeError: module 'collections' has no attribute 'Iterable'

I'm trying to optimize my strategy on Backtrader with python but keeps getting this error and i can't find anything on the web showing why I'm getting it. My code is simple and loosely based on the qu...
test-img

mr_statler

python

attributeerror

backtrader

Votes: 0

Answers: 1

Latest Answer

Try downgrading from python 3.10 to python 3.8 version
test-img

Sergo

long and short strategy with macd indicator in Backtrader

I just switched from Matlab to python and even newer to the backtrader library for backtestingtrading strategies. My questions might seem obvious. My problem seems similar to this : https://community....
test-img

AMT456

python

algorithmic-trading

quantitative-finance

back-testing

backtrader

Votes: 0

Answers: 1

Latest Answer

In your code you are showing the following: if self.data.MACD_hist[0]>0: if self.position.size<0 and self.data.MACD_hist[-1]<0 : self.close() ...
test-img

run-out

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved