PriceSeriesProvider Class (Component)
The PriceSeriesProvider allows access to current and historical price values from a PriceSeries collection for a specified Symbol. The Updated event is called whenever a change occurs in the referenced data.
Indexed values in a PriceSeries are equivalent to bar values in Chart or gird row based on a specified symbol, interval, and bar range where the index represents 'bars ago'.
Typically, you will use the Toolbox to add a component to your EasyLanguage document. Click and drag the name PriceSeriesProvider into your document from the Toolbox. The name of the provider appears in the component tray at the bottom of your document. By default, the name is followed by a number to identify multiple instances of the component.
Open the Properties editor and locate the Symbol property and the Interval and Range group of properties under "Filters". The entries in any or all of these fields determines the data that is included in the price series collection for a specified symbol. By default, the interval is set to 5 min bars with a range of 1 bar back.
To reference property values from a price series in EasyLanguage code, use PriceSeriesName followed by a 'dot operator' and the property name. Use a 'barsago' index in square brackets ( e.g. myPrices.High[4] ) to access values from indexed properties. Available price series properties will appear in the Autocomplete list as soon as you type the 'dot' after PriceSeriesName. Refer to the property descriptions below or in the EasyLanguage dictionary for more information about each property.
Value1 = PriceSeriesProvider1.Close[1]; // gets the Close of 1 bar ago from the specified price series provider.
For general information about providers, refer to Provider Classes.
Namespace: tsdata.marketdata
Properties
Additional
properties, methods, and events are described in the classes listed
under Inheritance Hierarchy (see below).