No one has replied
Try to run:
@goloap the thing that helped me was
you can do this for all the methods you want to inherit from the BaseStartegy class.
Hi @emr , I looked at the code of bbroker and discovered I misunderstand the logic of "limit" order; what I was looking for is exactly the "Stop" order which is executed only when the target price is hit by the candle
@emr Thanks, that's probably the quickest reply I have got on this community.
@rajesh I don't know if this is still an issue. If so, you might try these params while instantiating GenericCSVData.
dtformat = '%Y-%m-%dT%H:%M:%S%z',
tz = pytz.timezone('Asia/Calcutta')
@emr Thank you very much. I had already solved it. It is as you say.
I am facing the same issue.
I am using csv file to feed my data, so problems in data feeds is ruled out.
prices in pyfolio are correct
prices in tradelist are correct
profit mentioned in PeriodStats is as per correct prices
it is only the trade_history report which is giving prices which are not there anywhere in the data.
@backtrader a nudge in the right direction would be greatly appreciated!