You can loop through the price levels of the bar by tick size to get the highest and lowest price levels of the bar, then you can use VolumetricBars' GetAskVolumeForPrice and GetBidVolumeForPrice to get the bid/ask volume of those price levels.
Looping through price levels of a bar, from low to high:
for (double rowPrice = Low; rowPrice <= High; rowPrice += TickSize)
Looping through price levels of a bar, from high to low:
for (double rowPrice = High; rowPrice >= Low; rowPrice -= TickSize)
You could limit the loop to check 2 price levels if you do the following:
Looping through price levels of a bar to get the bottom 2 price levels, from low to high:
for (double rowPrice = Low; rowPrice <= Low + TickSize; rowPrice += TickSize)
Volumetric Bars Data Access methods can be found here - [login to view URL]
As this thread was opened in our Platform Technical Support forum, we ask that if you have any other NinjaScript related questions, to open a thread in the NinjaScript Indicator Development or Strategy Development forums if you have additional NinjaScript questions.
1 freelance fait une offre moyenne de ₹1050 pour ce travail
Hello NinjaTrader Yes I m Freelancer Ninjatrader C++ . I m first bidder ask for send 2 messages to have good discuss project . I can download Ninjatrader C++ platform and develop these simple codes as describes here p Plus