public IFuncAnalyzable <dynamic> GetFunc(string name, params decimal[] parameters)
        {
            var cacheKey = $"_Func_{name}#{string.Join("|", parameters)}";

            IFuncAnalyzable <dynamic> analyzable() => FuncAnalyzableFactory.CreateAnalyzable <TInput, dynamic>(name, BackingList, parameters);

            return((IFuncAnalyzable <dynamic>)_cache.GetOrAdd(cacheKey, analyzable));
        }
Example #2
0
 public static IReadOnlyList <decimal?> Func <TInput>(this IEnumerable <TInput> inputs, string name, params decimal[] parameters)
 => FuncAnalyzableFactory.CreateAnalyzable <TInput, decimal?>(name, inputs, parameters).Compute();
Example #3
0
 public static IReadOnlyList <AnalyzableTick <decimal?> > Func(this IEnumerable <IOhlcvData> candles, string name, params decimal[] parameters)
 => FuncAnalyzableFactory.CreateAnalyzable(name, candles, parameters).Compute();
Example #4
0
 public IFuncAnalyzable <dynamic> GetFunc(string name, params decimal[] parameters)
 => (IFuncAnalyzable <dynamic>)_cache.GetOrAdd($"_Func_{name}#{string.Join("|", parameters)}",
                                               FuncAnalyzableFactory.CreateAnalyzable <TInput, dynamic>(name, BackingList, parameters));