Get the source code below
Here is A Momentum based trading strategy demo GUI in Matlab with risk management and portfolio capital stats – See more at: http://quantlabs.net/blog/2013/11/here-is-a-momentum-based-trading-strategy-demo-gui-in-matlab-with-risk-management-and-portfolio-capital-stats/#sthash.d1RkJHYI.dpuf