I’m building a strategy to trade BTC. In my strategy I am using a trade bar consolidator and an EMA corresponding to that consolidator. 

I found that when I have the EMA present in the Initialize function, the volume in the consolidator trade bar is double of that when I have the EMA lines commented out. I have not found any explanation as to why this happens in the documentation. The image shows the volume plotted (in the 15 minute consolidator) for the same day under the two conditions where the EMA is active in the code and where it is commented out. The peaks are shown to be around 800 and 400 respectively. 

Can anyone explain to me the source of this difference?

Thanks for any insights!

187457_1677288225.jpg15 minute consolidator trade bar volume when the EMA is included (top) and when it is commented out (bottom).