Created by Munehisa Homma, Heikin-Ashi is a modified candlestick pattern based on prior period prices for smoothing. [Discuss] 💬
// usage IEnumerable<HeikinAshiResult> results = quotes.GetHeikinAshi();
Historical quotes requirements
You must have at least two periods of
quotes to cover the warmup periods; however, more is typically provided since this is a chartable candlestick pattern.
quotes is a collection of generic
TQuote historical price quotes. It should have a consistent frequency (day, hour, minute, etc). See the Guide for more information.
- This method returns a time series of all available indicator values for the
- It always returns the same number of elements as there are in the historical quotes.
- It does not return a single incremental indicator value.
- The first period will have
nullvalues since there’s not enough data to calculate.
HeikinAshiResultis based on
IQuote, so it can be used as a direct replacement for
DateTime - Date from evaluated
decimal - Modified open price
decimal - Modified high price
decimal - Modified low price
decimal - Modified close price
decimal - Volume (same as
.ToQuotes() to convert to a
IEnumerable<Quote> results = quotes .GetHeikinAshi() .ToQuotes();
See Utilities and helpers for more information.
Results are based in
IQuote and can be further used in any indicator.
// example var results = quotes .GetHeikinAshi(..) .GetRsi(..);
This indicator must be generated from
quotes and cannot be generated from results of another chain-enabled indicator or method.