Code covered by the BSD License
- Technical Analysis ToolGUI for viewing simple technical analysis indicators for a time series.
- axislocations_set(obj)
tatool helper function to set axes locations to their expected locations
- axislocations_store(obj)
tatool helper function to store current axes locations and so that
- bollingerul(data,period,n...Function to calculate the upper and lower bollinger bands for a vector
- cci(data,period)
Function to calculate the Commodity Channel Index of a data set
- dema(data,period)
Function to calculate the double exponential moving average of a data set
- dpo(data,period)
Function to calculate the detrended price oscillator of a data set.
- ema(data,period)
Function to calculate the exponential moving average of a data set
- etb(data,period,percent)
Function to calculate the envelopes(trading bands) for a data series
- getclassfromworkspace(cla...tatool helper function for getting the name of all variables of a
- getvarfromworkspace(WS,va...TATOOL helper function to get a variable with the given name from the
- lri(data,period)
Function to calculate the linear regression indicator of a data set.
- macd(data,p1,p2,p3)
- momentum(data,period)
Function to calculate the Momentum of a data set
- roc(data,period,format)
Function to calculate the Rate-of-Change of a data set
- rsi(data,period)
Function to calculate the Relative Strength Index of a data set
- sma(data,period)
Function to calculate the simple moving average of a data set
- tatool(flag)
This is the entry point function to create a tatool, technical analysis
- wildersmoothing(data,peri...Function to perform Wilder Smoothing on a data set
- wma(data,period)
Function to calculate the weighted moving average of a data set
- ALLFUNCTIONS.m
- ReadMe.m
-
View all files
from
Technical Analysis Tool
by Phil Goddard
GUI for viewing various simple technical analysis indicators of a time series
|
| axislocations_set(obj)
|
function axislocations_set(obj)
% tatool helper function to set axes locations to their expected locations
% as stored in ad.axeslocations
% Needed to work around a bug in MATLAB R14 SP1 regarding repositioning
% axes that have legends on them
%
% Example:
% None needed - this is a UI helper function that should not be called
% directly
%
ad=guidata(obj);
if isfield(ad,'axeslocations')
% Firstly get the expected locations
loc = ad.axeslocations;
na = size(loc,1);
hallaxes = nan*ones(2*na,1);
% Then make them the actual locations
for idx = 1:na
ha = ad.handles.(ad.axestags{idx});
set(ha,'Position',loc(idx,:));
hallaxes(na+idx) = ha;
hallaxes(idx) = legend(ha);
end
hallchildren = get(ad.handles.tatoolfig,'Children');
hallchildren(1:2*na) = hallaxes;
set(ad.handles.tatoolfig,'Children',hallchildren);
end
% When manipulating axes MATLAB automatically turns the zoom off, so need
% to check where tatool thinks it should be and put it back on in needed
resetzoom(ad.handles.tatoolfig);
|
|
Contact us