Warren O'Neill
Warren O'Neill
I wrote the following question in the google group but got no feedback. I hope I have more luck here :) Hello all, I recently implemented a version of the...
How can I edit the size of text in the `DataTable`? Unfortunately I can't pass `text_font_size` as in other classes.
According to the commentary for the TradingEnvironment class ``` # This module maintains a global variable, environment, which is # subsequently referenced directly by zipline financial # components. To set...
When I run the following code ``` source = RandomWalkSource(start_prices = {'TEST' : 50}, start=start, end=end) algo = TradingAlgorithm(initialize=initialize, handle_data=handle_date) results = algo.run(source) ``` and record the values generated for...
Are shorted stocks handled any differently to long stocks in the Performance module? As far as I'm aware shorted stocks have separate margin requirements (50% of the value [for example](http://thismatter.com/money/stocks/selling-short.htm))...
In certain cases the trading day and market open can fall on different days when the timestamp is converted to utc. What this means is the `env.next_trading_day()` can get stuck...
The function `update_digest_panels` seems to only be used once in the code and it does not receive a `freq_filter` and since the user has little reason to use the `update_digest_panels`...
When I try to define my algo by subclassing `TradingAlgorithm` and defining `initialize` and `handle_data` in the class I get the following error when utilising `add_history` in `initialize` and `history`...
code snippet: ``` class TestAssetFinder(TestCase): @with_environment() def setUp(self, env=None): self.identifier = 'f' metadata={0: {'asset_type': 'future', 'symbol': self.identifier}} self.asset_finder = AssetFinder(metadata=metadata) env.update_asset_finder(identifiers=[self.identifier]) @with_environment() def test_future_metadata(self, env=None): asset = env.asset_finder.lookup_generic(self.identifier, datetime.now()) self.assertIsInstance(asset,...
In an earlier version of Zipline it was possible to pass sids to the `DataFrameSource` and these would be used as filters. In the newest version this functionality seems to...