4.2 Data Access: Difference between revisions
From MultiCharts
→Instrument Data
(Created page with "Any study, whether it is an indicator or a signal, is an object that is applied to a price data series. Consequently, data and attributes of this data series are available fro...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 31: | Line 31: | ||
<syntaxhighlight> | <syntaxhighlight> | ||
double curClose = Bars.CloseValue;</syntaxhighlight> - get current close price | double curClose = Bars.CloseValue;</syntaxhighlight> - get current close price | ||
<syntaxhighlight> | |||
double prevBarOpen = BarsOfData(2).Open[1];</syntaxhighlight> - get open price of previous bar from second data stream | double prevBarOpen = BarsOfData(2).Open[1];</syntaxhighlight> - get open price of previous bar from second data stream | ||
Line 66: | Line 67: | ||
Instrument properties: | Instrument properties: | ||
* ''MTPA_MCSymbolInfo2 ASymbolInfo2 { get; }'' | * ''{{Color|Blue|MTPA_MCSymbolInfo2 ASymbolInfo2 { get; }}}'' | ||
* ''string Name { get; }'' - Instrument name, for example, ESU3, EUR/USD; | * ''{{Color|Blue|string Name { get; }}}'' - Instrument name, for example, ESU3, EUR/USD; | ||
* ''string DataFeed { get; }'' - Data source, for example, CQG, eSignal; | * ''{{Color|Blue|string DataFeed { get; }}}'' - Data source, for example, CQG, eSignal; | ||
* ''string Description { get; }'' - Instrument description in words, for example, for ESU3 "S&P 500 E-mini Futures Sep13"; | * ''{{Color|Blue|string Description { get; }}}'' - Instrument description in words, for example, for ESU3 "S&P 500 E-mini Futures Sep13"; | ||
* ''ESymbolCategory Category { get; }'' - Value from the list of categories, for example, futures, Forex or stock; | * ''{{Color|Blue|ESymbolCategory Category { get; }}}'' - Value from the list of categories, for example, futures, Forex or stock; | ||
* ''string Exchange { get; }'' - Exchange, where the instrument is trading; | * ''{{Color|Blue|string Exchange { get; }}}'' - Exchange, where the instrument is trading; | ||
* ''double PriceScale { get; }'' - Instrument price scale, for example, for ES=1/100 ; | * ''{{Color|Blue|double PriceScale { get; }}}'' - Instrument price scale, for example, for ES=1/100 ; | ||
* ''double PointValue { get; }'' - Nominal value for one point for the instrument, for example, for ES=0.01; | * ''{{Color|Blue|double PointValue { get; }}}'' - Nominal value for one point for the instrument, for example, for ES=0.01; | ||
* ''double BigPointValue { get; }'' - Profit/loss money equivalent in the instrument currency, when the price moves by one minimum increment, for example, for ES = 50 ; | * ''{{Color|Blue|double BigPointValue { get; }}}'' - Profit/loss money equivalent in the instrument currency, when the price moves by one minimum increment, for example, for ES = 50 ; | ||
* ''double MinMove { get; }'' - Minimum quantity of points, when the price moves by one minimum increment, for example, for ES = 25; | * ''{{Color|Blue|double MinMove { get; }}}'' - Minimum quantity of points, when the price moves by one minimum increment, for example, for ES = 25; | ||
* ''Resolution Resolution { get; }'' - For example, for created ES 5 of minute chart, Resolution.ChartType = ChartType.Regular; Resolution.Type = EResolution.Minute; Resolution.Size = 5; | * ''{{Color|Blue|Resolution Resolution { get; }}}'' - For example, for created ES 5 of minute chart, Resolution.ChartType = ChartType.Regular; Resolution.Type = EResolution.Minute; Resolution.Size = 5; | ||
* ''double DailyLimit { get; }'' - Maximum price movement allowed during a session (currently is not used in MultiCharts .NET); | * ''{{Color|Blue|double DailyLimit { get; }}}'' - Maximum price movement allowed during a session (currently is not used in MultiCharts .NET); | ||
* ''DateTime Expiration { get; }'' - Expiration date of the instrument (for futures), for example, ESU3 09/19/2013; | * ''{{Color|Blue|DateTime Expiration { get; }}}'' - Expiration date of the instrument (for futures), for example, ESU3 09/19/2013; | ||
* ''RequestTimeZone TimeZone { get; }'' - Local, Exchange or GMT; | * ''{{Color|Blue|RequestTimeZone TimeZone { get; }}}'' - Local, Exchange or GMT; | ||
* ''RequestQuoteField QuoteField { get; } ''- Ask, Bid, or Trade ; | * ''{{Color|Blue|RequestQuoteField QuoteField { get; }}} ''- Ask, Bid, or Trade ; | ||
* ''string SessionName { get; }'' - Session name (Check or add, or change session settings in QuoteManager) ; | * ''{{Color|Blue|string SessionName { get; }}}'' - Session name (Check or add, or change session settings in QuoteManager) ; | ||
* ''double StrikePrice { get; } ''- For options; | * ''{{Color|Blue|double StrikePrice { get; }}} ''- For options; | ||
* ''OptionType OptionType { get; }'' - For options, Put or Call; | * ''{{Color|Blue|OptionType OptionType { get; }}}'' - For options, Put or Call; | ||
* ''DataRequest Request { get; }'' - Request information, by which the symbol was built; | * ''{{Color|Blue|DataRequest Request { get; }}}'' - Request information, by which the symbol was built; | ||
===StatusLine=== | ===StatusLine=== | ||
Line 156: | Line 157: | ||
[[Category:.NET | [[Category:4. Understanding PowerLanguage .NET]] |