Hi all,
I would like to write some text data to replace 1st bar on the chart. I would like to know how to use ChartPoint to write to the most left location of the chart.
Thank you
mirek
How to access first bar on the chart
- JoshM
- Posts: 2195
- Joined: 20 May 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Re: How to access first bar on the chart
Bars.FullSymbolData gives access to the full data series, regardless of the MaxBarsBack setting. For example, Bars.FullSymbolData.Close[0] gives the closing price for the first price bar on the chart.How to access first bar on the chart
Re: How to access first bar on the chart
Hi JoshM,
the problem is to identify how many bars are displayed in the current chart. It could be changed when you adjust distance between bars and so on.
The magic is done by following code:-(
the problem is to identify how many bars are displayed in the current chart. It could be changed when you adjust distance between bars and so on.
The magic is done by following code:-(
Code: Select all
ChartPoint(Environment.LeftScreenTime.AddMinutes(0))
- JoshM
- Posts: 2195
- Joined: 20 May 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Re: How to access first bar on the chart
Look upthe problem is to identify how many bars are displayed in the current chart. It could be changed when you adjust distance between bars and so on.
Code: Select all
Bars.FullSymbolData.Count