Hi,

I can't input the volume correctly in my code.

I already posted this question in the community a while ago. But the answers are always in Python and Python is not my programming code. When trying to convert I always getting some errors.

And I cant open the question anymore because too long ago.

https://www.quantconnect.com/forum/discussion/12223/indicator-for-volume-of-last-24-hour/p1

I just want the 24 hours USD volume of the symbols (those are BTC pairs).

So the bot can only trade a symbol with a 24hours volume of 1 000 000$.

It is about this part.
   //Volume Calculation
   //_volume = data["ETHBTC"].Volume;
         //_volume = data.Bars[symbol].Volume;
   _volume =History("ETHBTC", 24, Resolution.Hour).volume.sum;

 

 

Thanks in advance.David 

Author