Hi,
I'd be very grateful if someone could answer these related questions:
1. How can I get the date of the last bar on chart in StartCalc method?
2. Is it possible to access the "Data Range" data ("from", "to") from the Format Instrument / Settings tab?
3. In general, how can I iterate thru the data of all bars before CalcBar()-method is called?
Thanks for your help, trd001
How to access the date of last bar on chart in StartCalc method
- Svetlana MultiCharts
- Posts: 645
- Joined: 19 Oct 2017
- Has thanked: 3 times
- Been thanked: 163 times
Re: How to access the date of last bar on chart in StartCalc method
Hello, trd001,
Please find the answers below:
1) You cannot get it in StartCalc method. One can access data series only using CalcBar method.
2) Yes, for example:
3) There is no such capability.
Please find the answers below:
1) You cannot get it in StartCalc method. One can access data series only using CalcBar method.
2) Yes, for example:
Code: Select all
Output.WriteLine("From: {0}, To: {1}", Bars.Info.Request.From, Bars.Info.Request.To);