Hi QC Community,

We're working on implementing a volume profile in our quant algorithm. When backtesting, the results generated by QuantConnect were different than the results generated by ThinkOrSwim and https://github.com/bfolkens/py-market-profile. When inspecting the MarketProfile code (VolumeProfile is an implementation of MarketProfile), we noticed all the volume is assigned to the close price which is used in the volumePerPrice calculations rather than distributing the volume across the range of the trade bar (high to low). 

Ideally, we would like to pass in a row size. Row size could be calculated more granularly from tick size and price per row as well. See here for the parameters passed into this market profile implementation: https://github.com/bfolkens/py-market-profile/blob/master/src/market_profile/__init__.py#L11-L13 

Does anyone have thoughts on how to do this? Here's a link to the LEAN code as well: https://github.com/QuantConnect/Lean/blob/master/Indicators/MarketProfile.cs#L201-L213

Thanks!