Hi,
How do I retrieve a Close of a bar at a previous time?
Thanks,
drolles
retrieve a Close of a bar at a previous time?
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: retrieve a Close of a bar at a previous time?
Hello drolles,
You can reference previous bar's values like that (ex. previous bar's close):You can reference previous study values like that (ex. previous moving average value):
You can reference previous bar's values like that (ex. previous bar's close):
Code: Select all
Bars.Close[1]
Code: Select all
m_avg[1]
Re: retrieve a Close of a bar at a previous time?
Henry,
Thanks for that.
I was meaning how to access a bar at a specific time in the past? E.g. 7am in the morning on the current date?
Thanks,
drolles
Thanks for that.
I was meaning how to access a bar at a specific time in the past? E.g. 7am in the morning on the current date?
Thanks,
drolles
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: retrieve a Close of a bar at a previous time?
It can be done with IInstrument.FullSymbolData PropertyI was meaning how to access a bar at a specific time in the past? E.g. 7am in the morning on the current date?