MasterInstrument.InstrumentType

定義

銘柄の種類を返す。

プロパティ値

銘柄の種類を表す InstrumentType

取り得る値は次の通り:
InstrumentType.Currency
InstrumentType.Future
InstrumentType.Index
InstrumentType.Option
InstrumentType.Stock

構文

Instrument.MasterInstrument.InstrumentType

追加のアクセス情報

このプロパティは、null参照のチェック無しにOnBarUpdate()イベント・ハンドラの中でアクセスすることができる。OnBarUpdate()イベントがトリガされた時、Instrumentオブジェクトは常に存在する。他の場所でこのプロパティにアクセスしたい場合は、null参照のチェックを最初に行うべきである。その例は: if (Instrument != null)

最終更新:2014年06月11日 01:29