Exemplo n.º 1
0
 /// <summary>
 /// Whether the grouping of candles by the specified attribute is registered.
 /// </summary>
 /// <typeparam name="TCandle">The candles type.</typeparam>
 /// <param name="manager">The candles manager.</param>
 /// <param name="security">The instrument for which the grouping is registered.</param>
 /// <param name="arg">Candle arg.</param>
 /// <returns><see langword="true" /> if registered. Otherwise, <see langword="false" />.</returns>
 public static bool IsCandlesRegistered <TCandle>(this ICandleManager manager, Security security, object arg)
     where TCandle : Candle
 {
     return(manager.GetSeries <TCandle>(security, arg) != null);
 }