Code in post #2 is not HLC. It is standard OHLC.
(Also maskHistogram is at wrong place.)
Here is proper HLC bar chart.
Version( 5.73);
thickness = Param( "Bar thickness", -20, -100, 10, 1 );
rc = ROC( C, 1 );
color = IIf( rc > 0, colorBlue, IIf( rc < 0, colorRed, -1 ) );
style = styleNoTitle | styleBar;
PlotOHLC( Null, H, L, C, "", color, style, Null, Null, 0, 0, thickness );
SetChartOptions( 0, chartShowArrows | chartShowDates );
_N( Title = StrFormat( "{{NAME}} - {{INTERVAL}} {{DATE}}, Hi:%g, Lo:%g, Close:%g, Volume:%g {{VALUES}}", H, L, C, V ) );
And separate volume chart
rc = ROC( C, 1 );
color = IIf( rc > 0, colorBlue, IIf( rc < 0, colorRed, -1 ) );
Plot( Volume, "Volume", color, styleHistogram, Null, Null, 0, 0, width = -60 );