アカウントタイプ

概要

現在のアカウントタイプを返します。

シグネチャ

1
public enum AccountType

 

名前空間

cAlgo.API.Internals

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
 using cAlgo.API;
 namespace cAlgo
 {
     // この例では、AccountTypeの使用方法を示します。
     [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
     public class AccountTypeSample : Indicator
     {
         protected override void Initialize()
         {
             var text = string.Format("Account Type: {0}", Account.AccountType);
             Chart.DrawStaticText("text", text, VerticalAlignment.Top, HorizontalAlignment.Right, Color.Red);
         }
         public override void Calculate(int index)
         {
         }
     }
 }

参照

  • cAlgo.API.Internals.IAccount

フィールド

ヘッジド

概要

ヘッジポジションを許可するアカウントタイプ

シグネチャ

1
public static AccountType Hedged;

 

戻り値

AccountType

ネットポジション

概要

シンボルごとに単一のネットポジションのみを許可するアカウントタイプ

シグネチャ

1
public static AccountType Netted;

 

戻り値

AccountType