Backtest a moving average stock trading strategy, given stock symbol, initial capital, and time periods.
To run your own backtesting on a trading strategy, modify movingAvgCross.py to define a trading strategy class or modify the MovingAverageCrossoverStrategy class for your own purposes. Then define the test period and run-- your portfolio values and trade signals will be plotted on a chart and strategy performance calculated.