Stock charting using MATLAB