Indicator that draws bars in separate window

 

I wrote simple indicator for pais trading showing in separate window ratio e.g silver/gold, basing on close prices.

Do you have an idea how to draw same ratio but represented by bars instead of a line?

 
cornelius:

I wrote simple indicator for pais trading showing in separate window ratio e.g silver/gold, basing on close prices.

Do you have an idea how to draw same ratio but represented by bars instead of a line?


DRAW_HISTOGRAM
 
Not histogram but bar chart.
 
Histogram for the vertical line, lines for the open/close.