@@ -0,0 +1,923 @@
+# Source: http://gbeced.github.io/pyalgotrade/docs/v0.17/html/tutorial.html#optimizing%0A# Accessed: 06/10/16 0520Z%0A%0Aimport itertools%0Afrom pyalgotrade.optimizer import local%0Afrom pyalgotrade.barfeed import yahoofeed%0Aimport rsi2%0A%0A%0Adef parameters_generator():%0A    instrument = %5B%22dia%22%5D%0A    entrySMA = range(150, 251)%0A    exitSMA = range(5, 16)%0A    rsiPeriod = range(2, 11)%0A    overBoughtThreshold = range(75, 96)%0A    overSoldThreshold = range(5, 26)%0A    return itertools.product(instrument, entrySMA, exitSMA, rsiPeriod, overBoughtThreshold, overSoldThreshold)%0A%0A%0A# The if __name__ == '__main__' part is necessary if running on Windows.%0Aif __name__ == '__main__':%0A    # Load the feed from the CSV files.%0A    feed = yahoofeed.Feed()%0A    feed.addBarsFromCSV(%22dia%22, %22dia-2009.csv%22)%0A    feed.addBarsFromCSV(%22dia%22, %22dia-2010.csv%22)%0A    feed.addBarsFromCSV(%22dia%22, %22dia-2011.csv%22)%0A%0A    local.run(rsi2.RSI2, feed, parameters_generator())%0A

Create srvrp.py