SMA, MACD, RSI (SMR) Trading Algorithm

버전 1.0.0.0 (30.8 KB) 작성자: Chad Smith
View a stock's buy/sell recommendations based on a synthesis of the indicators SMA, MACD, and RSI
다운로드 수: 3.5K
업데이트 날짜: 2014/1/6

라이선스 보기

View a stock's buy/sell recommendations based on a synthesis
of three indicators: SMA, MACD, and RSI

Syntax:
smr_strategy
Inputs:
none
Outputs:
none
An internet connection is required.

This tool performs techninal analysis of stock data automatically and
suggests times at which an investor should buy or sell a particular stock.

The plot of stock price vs. time contains red and green dots. Red dots
correspond to days that the strategy suggests to sell, and green dots
correspond to days that the strategy suggests to buy.

Definitions:
-MACD: Moving Average Convergence/Divergence. The difference between a
long period and short period Exponential Moving Average of the stock
price
-MACD Signal: The EMA of the MACD described above
-SMA: Simple Moving Average. The average stock price over the last n
days
-RSI: Relative strength index. Fluctuates between 0 and 100. Over 70 is
considered "overbought" (and expected to fall) while under 30 indicates
"oversold" (and expected to rise)

Recommendations are based on simple moving average, relative strength index,
and moving avg convergence/divergence. This algorithm to
this strategy is from the book "The Neatest Little Guide to Stock
Market Investing" by Jason Kelly and is outlined below.

Stock data is from Yahoo's! free, undocumented, non-commercial API.

At least two (2) of these three (3) conditions must be met in order to
recommend a buy or sell:
1. MACD and MACD signal have recently intersected. If MACD signal is
rising on intersection buy, otherwise sell
2. rsi < 30 and increasing (buy) or > 70 and decreasing (sell)
3. current price crosses sma (cross upwards = buy, downwards = sell)

There are no guarantees made as to the effectiveness of the tool, so
invest at your own risk. The author is not responsible for any losses you
may incur when following this strategy.

인용 양식

Chad Smith (2024). SMA, MACD, RSI (SMR) Trading Algorithm (https://www.mathworks.com/matlabcentral/fileexchange/44936-sma-macd-rsi-smr-trading-algorithm), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2012a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Transaction Cost Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0