One of the goals is to also gather things which have already been posted by community members. Always retaining the copyright they have posted, as for example:
Docs - ZigZag indicator for live trading
If you believe you have something to contribute, post it and it will be considered, just like anything else, but picked up things (initial idea) will be mostly related to indicators.
@mr-kite I'm running into the same problem. I think it's when you have two separate orders and backtrader is trying to compute your average order price. After you've completed an order, if you print out self.broker.getposition(self.data) then you'll see that '- Size' will have a value, but '- Price' has None for its value and it can't handle that. So the question is how can we fill in the '- Price' variable with the correct value?
I believe that TimeReturn analyzer with the timeframe parameter set to TimeFrame.Days will calculate daily returns in %s. So at first glance the easiest way will be just to repeat TimeReturn analyzer code with the small change:
self.rets[self.dtkey] = (self._value / self._value_start) - 1.0
self.rets[self.dtkey] = self._value - self._value_start
@student you added two data feeds, so bt shows two pictures. To fix it you need first to show correct time frame for your 1 minute data feed and second set plot=False.
Check out Data feeds and Plotting options