obtaining programatically Official Market Open (Daily) IB  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
dasepi
Posts: 4
Joined: 08 Aug 2014
Has thanked: 1 time

obtaining programatically Official Market Open (Daily) IB

Postby dasepi » 12 Mar 2015

Hi, I see that you are displaying official market open on charts with IB data feed as per feature of multicharts.net (The ‘Open’ field in the status line. Values for the Open field will now be fed into the status line for IB symbols.)

How do I obtain this value programatically from a study (not the first trade of the day, but one that is displayed on charts) ?

User avatar
JoshM
Posts: 2195
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1544 times
Been thanked: 1565 times
Contact:

Re: obtaining programatically Official Market Open (Daily) I  [SOLVED]

Postby JoshM » 15 Mar 2015

Hi, I see that you are displaying official market open on charts with IB data feed as per feature of multicharts.net (The ‘Open’ field in the status line. Values for the Open field will now be fed into the status line for IB symbols.)

How do I obtain this value programatically from a study (not the first trade of the day, but one that is displayed on charts) ?
The 'Open' price of the primary data series' Status Line can be retrieved with:

Code: Select all

Bars.StatusLine.Open
If you have additional data series of which you want to retrieve Status Line data, you'll need to use the `BarsOfData()` method. For example:

Code: Select all

BarsOfData(2).StatusLine.PrevClose // Previous close of data 2


Return to “MultiCharts .NET”