コード例 #1
0
ファイル: IBarPrice.cs プロジェクト: llenroc/QuantTC
 /// <summary>
 /// the Length of Real Body
 /// </summary>
 /// <param name="bar">candlestick</param>
 /// <returns></returns>
 public static double RealBody(this IPriceOC bar) => Math.Abs(bar.Close - bar.Open);
コード例 #2
0
ファイル: IBarPrice.cs プロジェクト: llenroc/QuantTC
 /// <summary>
 /// the Bottom of Real Body
 /// </summary>
 /// <param name="bar">candlestick</param>
 /// <returns></returns>
 public static double Bottom(this IPriceOC bar) => Math.Min(bar.Close, bar.Open);
コード例 #3
0
ファイル: IBarPrice.cs プロジェクト: llenroc/QuantTC
 public static bool IsBearish(this IPriceOC bar) => bar.Close < bar.Open;
コード例 #4
0
ファイル: IBarPrice.cs プロジェクト: llenroc/QuantTC
 /// <summary>
 /// the Top of Real Body
 /// </summary>
 /// <param name="bar">candlestick</param>
 /// <returns></returns>
 public static double Top(this IPriceOC bar) => Math.Max(bar.Close, bar.Open);
コード例 #5
0
ファイル: IBarPrice.cs プロジェクト: llenroc/QuantTC
 public static bool IsBullish(this IPriceOC bar) => bar.Close > bar.Open;