Automatic pattern recognition of Head-And-Shoulder

버전 1.0.0.0 (5.6 KB) 작성자: Marcus Strobel
Implementation for Head-And-Shoulder (Lo et al., 2000, Journal of Finance) with simulated data
다운로드 수: 131
업데이트 날짜: 2018/3/17

라이선스 보기

This prototype shows a reduced approach, how to implement an automated pattern recognition algorithm for the Head-And-Shoulders pattern (Lo et al., 2000, Journal of Finance) in MATLAB.
Lo et al. (2000) use a moving window consisting of 38 price observations. With every step, the oldest price will be deleted and a new price appended to the price queue. A kernel regression smooths the raw prices (observations 4.-38.) in order to filter noise. The pattern recognition algorithm identifies a specific visual pattern, which is described by the position of the last five local extrema (called E1, ..., E5) in the smoothed prices. For example, the arrangement E1 < E3 > E5 and (E2, E4) < (E1, E3, E5) constitutes a Head-And-Shoulder TOP pattern, if the 4. price is a local extrema. The remaining newer prices (3. – 1.) protect again look-ahead bias. A TOP pattern implies a decreasing price and BOTTOM pattern vice versa. A timer generates 80 random prices. The command-line and a figure present the output.

인용 양식

Marcus Strobel (2024). Automatic pattern recognition of Head-And-Shoulder (https://www.mathworks.com/matlabcentral/fileexchange/66529-automatic-pattern-recognition-of-head-and-shoulder), MATLAB Central File Exchange. 검색됨 .

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

받음: extrema.m, extrema2.m

Community Treasure Hunt

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

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

Summary