extract method : added Chart#write_lines_base used from write_hi_low_lines and write_drop_lines.
extract method : added Chart#write_bars_base used from write_up_bars and write_down_bars.