On behalf of the author the attached research strategy is offered.
In the April 2015 issue of "Stocks & Commodities" magazine (www.traders.com) an article, "Basket Trading Using a Directed Acyclic Graph", is presented outlining a means of using a type of network graph called a directed acyclic graph or DAG in choosing a basket of securities for trading a continuously rebalanced portfolio.
The author wishes to thank Quantopian for providing such a useful platform and hopes to offer future articles and technical market explorations on their platform. The attached strategies leverage code and techniques from the open community and the author wishes to thank all members of the Quantopian quantosphere for their willingness to share their insight and hard work.
Quantopian provided an open and capable venue for which to share a python version of the tradable strategy used to test the groups built by the code outlined in the article. This code is provided here to assist any of those interested in the testing and examination of the trading technique. The DAG code itself is not offered here. But were solutions offered to replicate the technique in the article I'm sure all would benefit.
This strategy uses somewhat dated techniques (Security and SecurityManager) as it was written the end of last summer (the delay is part of the publishing machine).
As the April 2015 issue is, as of now (March, 19th), undergoing distribution, requests for comments related specifically to article content will have to be deferred until the issue has had a chance to be delivered. All comments regarding errors and omissions are welcome.