It should be volume,but not tick_volume
the files from sqx 136.1197
In MT4, it uses Volume[i]. In MT5, it doesn't have the Volume variable anymore.
I compared the iVolume in MT4 and MT5, the iVolume in MT4 is similar to Volume[i]. However, iVolume in MT5 gives very different results.
The tick_volume gives the same result (chart pattern) compared to MT4. However, the volume in MT5 is empty. I couldn't say that volume is always empty. Therefore I updated the code to
volume[i] ? volume[i] : tick_volume[i]
If there is volume, we will use volume else we will use tick_volume. I cannot change to just volume because brokers I tested have empty values for volume.