このページはまだお使いの言語で利用できません。別の言語版を表示しています。

Index

IndexEditor - Graphic control for editing ExpressionIndexSecurity.

ExpressionIndexSecurity - is a special type of index security based on a combination of several securities using mathematical formulas. This type has the ExpressionIndexSecurity.Expression, property, which stores the formula in text form and the list of underlying ExpressionIndexSecurity.InnerSecurityIds securities.

GUI IndexSecurityWindow

Basic properties

To use IndexEditor, first you need to register a special service:

...
ConfigManager.RegisterService<ICompilerService>(new RoslynCompilerService());
...

Next, the securities necessary for index calculation should be passed to IndexEditor:

...
IndexEditor.Securities.AddRange(SecurityProvider.LookupAll());
SecurityProvider.Added += OnAdded;
...
private void OnAdded(IEnumerable<Security> securities)
		{
			IndexEditor.Securities.AddRange(securities);
		}