A couple of examples of using mean absolute deviation to measure portfolio risk with Matlab
NOTE: These really don’t help market forecasting, get a portfolio firsh to start using.
There are not of examples here but you could go with these:
Standard deviation vs mean deviation explanation:
Join my FREE membership to understand how to use these in Matlab