Flexible version of the known MACD trend indicator. Set your own periods for the short, the long and the signal period to calculate MACD. In case of using the standard settings (12,26,9) the results are the same as from the Financial Toolbox function. Works on R2018a and higher.
Stephan (2021). MACDflex (https://www.mathworks.com/matlabcentral/fileexchange/70050-macdflex), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!