Topics
Replies
nata2792@gmail.com
08 Jun 2024, 09:46
RE: How to get the volume of each bar drawn?
Spotware said:
OnBar event happens when new bar is opened. At that moment MarketSeries collection already contains tick from new bar. It means that last bar is not formed and in general cases open = high = low = close and TickVolume equals 1. If you want to access last formed bar you need take previous one.
You need to change your code:
protected override void OnBar() { var close = MarketSeries.Close.Last(1); var high = MarketSeries.High.Last(1); var low = MarketSeries.Low.Last(1); var tickVolume = MarketSeries.TickVolume.Last(1); ... }
So accessing the other previous bars' volumes is still not possible right? Only last bar? We still have to create arrays to store each bar volume like usual?
@nata2792@gmail.com
nata2792@gmail.com
09 Aug 2021, 08:47
RE:
You gave me hope. I appreciate it!
PanagiotisCharalampous said:
Hi there,
It is a known issue and will be fixed in an upcoming update of the platform.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@nata2792@gmail.com
nata2792@gmail.com
17 Jun 2024, 03:15
RE: RE: RE: RE: My Strategy does not appear in search result even so it fulfills all requirements
Kaspricci said:
Yeah kind of ugly rules, I don't know why they changed to those too but anyway, using my own money cool.
@nata2792@gmail.com