Open dhexus opened 8 years ago
Write a unit test to check PnL calculation to test an algorithm/data source that trades several times (at least two times) a day. Go long, short and flat, use FlippingAlgorithm for instance. Test with instant_fill True and False.
is that not already handled by https://github.com/quantopian/zipline/pull/803 ?
Write a unit test to check PnL calculation to test an algorithm/data source that trades several times (at least two times) a day. Go long, short and flat, use FlippingAlgorithm for instance. Test with instant_fill True and False.