An example from the plugin page shows how to combine several charts.
As to your code, call the push
function of your candlestick data with lines:{show: true}
option.
Here is what you should do:
var data2 = $.plot.candlestick.createCandlestick({data:dt,candlestick:{show:true,lineWidth:lw}});
data2.push({ data: prices1, lines:{show: true}, points:{show:true}});
And then use data2
from the code above and options2
:
var p = $.plot($("#placeholder"), data2, options2);