Custom markers in legend

I have two traces on the graph, one of which is a Candlestick graph and the other is a Bar chart with green and red bars. The automatically generated legend looks like the following:

legend_current

However, I find it a little bit misleading and would like to rotate a marker for the Candlestick graph and depict two colors of the Bar chart. So, the legend should look like the following:

legend_desired

Is it possible to achieve it and how?