I`m working on some changes of a Super DOM Column that I got from internet.
The script has the following lines:
long buyVolume = 0;
long sellVolume = 0;
bool gotBuy = Sells.TryGetValue(row.Price, out sellVolume);
bool gotSell = Buys.TryGetValue(row.Price, out buyVolume);
I would like to get the sellVolume/buyVolume of the last 10 minutes.
Not a volume of each 10 minutes, but of the last 10 minutes.
I read this tread below:
But I didn`t figureout how to use a similar method with "Sells.TryGetValue(row.Price"
It there a way to do it?
I had tried something like this to get the total volume of 10 minutes ago and make the difference, but I does not compitel
DateTime filterTime = DateTime.Now.AddMinutes(-10);
bool gotBuyFilter = Sells.TryGetValue(row.Price(Time[0].Subtract(filterTime)),out buyVolumeFilter);
Thanks!
Comment