1 Star 0 Fork 1

jufeng9318/StockSharp

forked from yu3a/StockSharp 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
StockSharpSection.cs 2.18 KB
一键复制 编辑 原始数据 按行查看 历史
#region S# License
/******************************************************************************************
NOTICE!!! This program and source code is owned and licensed by
StockSharp, LLC, www.stocksharp.com
Viewing or use of this code requires your acceptance of the license
agreement found at https://github.com/StockSharp/StockSharp/blob/master/LICENSE
Removal of this comment is a violation of the license agreement.
Project: StockSharp.Configuration.ConfigurationPublic
File: StockSharpSection.cs
Created: 2015, 12, 7, 5:06 PM
Copyright 2010 by StockSharp, LLC
*******************************************************************************************/
#endregion S# License
namespace StockSharp.Configuration
{
using System.Configuration;
/// <summary>
/// Represents the root StockSharp section in a configuration file.
/// </summary>
public class StockSharpSection : ConfigurationSection
{
private const string _candlesKey = "customCandles";
/// <summary>
/// Custom candles.
/// </summary>
[ConfigurationProperty(_candlesKey, IsDefaultCollection = true)]
[ConfigurationCollection(typeof(CandleElementCollection), AddItemName = "candle", ClearItemsName = "clear", RemoveItemName = "remove")]
public CandleElementCollection CustomCandles => (CandleElementCollection)base[_candlesKey];
private const string _indicatorsKey = "customIndicators";
/// <summary>
/// Custom indicators.
/// </summary>
[ConfigurationProperty(_indicatorsKey, IsDefaultCollection = true)]
[ConfigurationCollection(typeof(IndicatorElementCollection), AddItemName = "indicator", ClearItemsName = "clear", RemoveItemName = "remove")]
public IndicatorElementCollection CustomIndicators => (IndicatorElementCollection)base[_indicatorsKey];
private const string _diagramElementsKey = "customDiagramElements";
/// <summary>
/// Custom diagram elements.
/// </summary>
[ConfigurationProperty(_diagramElementsKey, IsDefaultCollection = true)]
[ConfigurationCollection(typeof(DiagramElementCollection), AddItemName = "element", ClearItemsName = "clear", RemoveItemName = "remove")]
public DiagramElementCollection CustomDiagramElements => (DiagramElementCollection)base[_diagramElementsKey];
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/jufeng9318/StockSharp.git
git@gitee.com:jufeng9318/StockSharp.git
jufeng9318
StockSharp
StockSharp
master

搜索帮助