For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
How to get return values for every closed trade?
-
I am trying to create a Monte Carlo simulation that's why I require return values for every closed trade, I don't see any analyzer that can give me that. returns from the pyfolio analyzer is giving portfolio returns. Any help will be appreciated.
-
@zuj Created by @ab_trader Trade_List I use it every day :)
-
@run-out Thanks bro
-
@run-out It throws an error
45 dir = 'short' ---> 46 if trade.history[0].event.size > 0: dir = 'long' 47 48 pricein = trade.history[len(trade.history)-1].status.price IndexError: list index out of range
-
@zuj Set tradehistory =True
cerebro.run(tradehistory=True)