Candlesticks
Description
Since the early days of the Japanese rice traders, candlestick charting has grown into a complex technical analysis tool based primarily on patterns. Candlestick charts are flexible, because candlestick charts can be used alone or in combination with other technical analysis techniques, not instead of other technical tools. As with all charting methods, candlestick chart patterns are subject to interpretation by the user. Currently, there are 90 patterns.
Syntax
[bull bear neutral] = candlesticks(open,high,low,close)
Inputs
open - open price
high - high price
low - low price
close - close price
Outputs
bear - bearish patterns
bull - bullish patterns
neutral - neutral patterns
Outputs are formatted into cells. The index of each cell corresponds
to the index of that pattern in the order listed under Candlesticks.
Each cell holds all of the indices from the input for the end of a
pattern.
For example:
bear{1} is the Abandoned Baby pattern
[23; 78; 92] are the contents of that cell and are the indices of the
end of that pattern
Notes
- data must be column oriented
- there are no argument checks
- most patterns require a prior bullish or bearish trend; this code
does not check for that
- all patterns either require, recommend, or suggest confirmation;
this code does not check for that
Example
load disney.mat
[bull bear neutral] = candlesticks(dis_OPEN,dis_HIGH,dis_LOW,dis_CLOSE);
Version : 1.0 (11/02/2011)
Author : Nate Jensen
Created : 10/25/2011
History :
- v1.0 11/02/2011 : initial release
To Do
- add more candlesticks
The full list of candlestick patterns is located in the help section.
引用
Nate Jensen (2024). Candlesticks (https://www.mathworks.com/matlabcentral/fileexchange/33782-candlesticks), MATLAB Central File Exchange. に取得済み.
MATLAB リリースの互換性
プラットフォームの互換性
Windows macOS Linuxカテゴリ
タグ
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!バージョン | 公開済み | リリース ノート | |
---|---|---|---|
1.0.0.0 |