Currency

View as Markdown

Definition

Indicates the currency configured for the Master Instrument properties.

Property Value

A type of Currency which is configured for the current master instrument.

Syntax

Bars.Instrument.MasterInstrument.Currency

Examples

1if (Bars.Instrument.MasterInstrument.Currency != Currency.UsDollar)
2{
3 //Prints if the currency is not UsDollar and indicates what currency it is
4 Print ("Warning: Instruments base currency is not UsDollar, it is " + Bars.Instrument.MasterInstrument.Currency);
5}