function newVolumeBar () { var volumeBar = { amountBuy: 0, amountSell: 0, begin: undefined, end: undefined } return volumeBar }