Implementation of imbalance bars defined in the book Advances in Financial Machine Learning by Marcos Lopez de Prado.
Imbalance bars samples bars as a function of transactions/transaction volume/dollar transaction volume which exhibits better statistical properties like closer to Gaussian and IID returns, and less autocorrelation and heteroskedasticity.