@noobtrader nothing in your post shows that you are using live data. So why do you expect to have it in the answer?
Compiling library of useful tools for backtrader - check the https://github.com/ab-trader/backtrader_addons repository
Posts made by ab_trader
RE: Getting selling price within notify_trade()
@vishamar check the script in this thread
It might contain some snippets for your task.
RE: Any reasonably organized reference documentation?
Since you are the first person here complaining about documentation, than you are definitely missing something. And this is really annoying.
I think you are missing the point that all of this - code, docs, web site - was done by single person in his free time and given to you for free.
You can stop use of backtrader anytime if it causes you so much pain.
RE: leverage doesn't affect returns in backtesting
If you have same trade stats for both cases, than (as a guess) you didn't increase position size to use that increased
RE: Option Strategy - Buy / Sell order on Custom data feed
With the bid/ask data it will be harder to implement, since
btis acting on the