mirror of
https://github.com/StockSharp/StockSharp.git
synced 2026-12-04 08:32:23 +00:00
20 lines
577 B
C#
20 lines
577 B
C#
namespace StockSharp.Algo.Analytics;
|
|
|
|
/// <summary>
|
|
/// The empty analytic strategy.
|
|
/// </summary>
|
|
public class EmptyAnalyticsScript : IAnalyticsScript
|
|
{
|
|
Task IAnalyticsScript.Run(ILogReceiver logs, IAnalyticsPanel panel, SecurityId[] securities, DateTime from, DateTime to, IStorageRegistry storage, IMarketDataDrive drive, StorageFormats format, DataType dataType, CancellationToken cancellationToken)
|
|
{
|
|
if (securities.Length == 0)
|
|
{
|
|
logs.LogWarning("No instruments.");
|
|
return Task.CompletedTask;
|
|
}
|
|
|
|
// !! add logic here
|
|
|
|
return Task.CompletedTask;
|
|
}
|
|
} |