Patterns |
It is possible to make candles pattern recognition through the CandleHelper class by the following methods:
CandleHelper also provides a variety of algorithms for candles to simplify writing of code:
The candle time range getting through the GetCandleBounds method. For example, you want to find out exactly when the current 10.5-minute candle ends:
var candleTimeFrame = TimeSpan.FromMinutes(10.5); Console.WriteLine(candleTimeFrame.GetCandleBounds(DateTime.Now).Max);
To get the candle length, its body, its shadows through GetLength(Candle), GetBody(Candle), GetTopShadow(Candle) and GetBottomShadow(Candle):
// sample candle var candle = ... Console.WriteLine(candle.GetCandleLength()); Console.WriteLine(candle.GetCandleBody()); Console.WriteLine(candle.GetCandleTopShadow()); Console.WriteLine(candle.GetCandleBottomShadow());