how to add trend line and output max and min of trend line

2 views (last 30 days)
Hi all,
I wrote this function:
function [On_Balance_Volume] = OBV(SXXPIndex,PX_VOLUME)
%%OBV Script
On_Balance_Volume = onbalvol(SXXPIndex,PX_VOLUME);
plot(On_Balance_Volume)
title('On-Balance Volume for S&P')
i would like to add to this function trend line and output the minimum and maximum of the function. can someone advise?

Answers (0)

Categories

Find more on Fourier Analysis and Filtering in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!