Multicore Optimization and self define analyzers
-
Re: Mutidata + Multicore Optimization AttributeError
Hi admin,
As you said in this topic:
The problem is that you have to store the PnL value in the stop method of the Strategy. Because unless you do that you talk to the last instance of the PnL which cerebro keeps record of. (With maxcpus > 1 it would be the same)
What if I had a self defined analyzers which requires store some values in stop method. How can I modify my codes so that multi core opt could work properly, instead of error: AttributeError: Can't get attribute 'Lines_LineSeries_LineIterator_DataAccessor_ObserverBase_Observer_DataTrades_bd546845b4ba4f7489a48e0b65e9bec2
Many thanks!
-
@yoghurtshawn said in Multicore Optimization and self define analyzers:
How can I modify my codes so that multi core opt could work properly
We don't know. Your code isn't there.