/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ namespace QuantConnect.Indicators.CandlestickPatterns { /// /// Types of candlestick settings /// public enum CandleSettingType { /// /// Real body is long when it's longer than the average of the 10 previous candles' real body (0) /// BodyLong, /// /// Real body is very long when it's longer than 3 times the average of the 10 previous candles' real body (1) /// BodyVeryLong, /// /// Real body is short when it's shorter than the average of the 10 previous candles' real bodies (2) /// BodyShort, /// /// Real body is like doji's body when it's shorter than 10% the average of the 10 previous candles' high-low range (3) /// BodyDoji, /// /// Shadow is long when it's longer than the real body (4) /// ShadowLong, /// /// Shadow is very long when it's longer than 2 times the real body (5) /// ShadowVeryLong, /// /// Shadow is short when it's shorter than half the average of the 10 previous candles' sum of shadows (6) /// ShadowShort, /// /// Shadow is very short when it's shorter than 10% the average of the 10 previous candles' high-low range (7) /// ShadowVeryShort, /// /// When measuring distance between parts of candles or width of gaps /// "near" means "<= 20% of the average of the 5 previous candles' high-low range" (8) /// Near, /// /// When measuring distance between parts of candles or width of gaps /// "far" means ">= 60% of the average of the 5 previous candles' high-low range" (9) /// Far, /// /// When measuring distance between parts of candles or width of gaps /// "equal" means "<= 5% of the average of the 5 previous candles' high-low range" (10) /// Equal } /// /// Types of candlestick ranges /// public enum CandleRangeType { /// /// The part of the candle between open and close (0) /// RealBody, /// /// The complete range of the candle (1) /// HighLow, /// /// The shadows (or tails) of the candle (2) /// Shadows } /// /// Colors of a candle /// public enum CandleColor { /// /// White is an up candle (close higher or equal than open) (1) /// White = 1, /// /// Black is a down candle (close lower than open) (-1) /// Black = -1 } }