Candlesticks

Calculates the end indices of 90 different candlestick patterns
1.4K Downloads
Updated 15 Nov 2011

View License

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.

Cite As

Nate Jensen (2024). Candlesticks (https://www.mathworks.com/matlabcentral/fileexchange/33782-candlesticks), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Financial Toolbox in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0