How to put my custom volume indicator on main chart?

 
How to put my custom volume indicator on main chart?

Is there any built-in function to do this? 

I read the documentation but i didn't find any explanation and example.
 
You can draw it as tiny little trendlines anchored on coordinates or a histogram starting from bottom price of your chart instead of zero. The second way you will need a recalculation on every move/rescale of the chart. The first way you will need a recalculation on chart scroll.
Reason: