How to draw multiple colour index bar or candle plots in one graph

 

I am trying to have a candle plot along with a line chart.

The properties I have set us is: 

#property indicator_chart_window
#property indicator_buffers 6
#property indicator_plots   2
#property indicator_label1  "candle"
#property indicator_type1   DRAW_COLOR_CANDLES
#property indicator_style1  STYLE_SOLID
#property indicator_color2  clrRed, clrGreen
#property indicator_width1  1
#property indicator_label2  "line"
#property indicator_type2   DRAW_COLOR_LINE
#property indicator_style2  STYLE_SOLID
#property indicator_color2  clrAqua
#property indicator_width2  1

Beyond this I am clueless how to proceed.

I need to have 2 plots where one is a candle and the other is a line.

There will be reasonable duplication of common computationally intense calculations if this is split into 2 indicators which I want to avoid.

 
Suminda Dharmasena: I am trying to have a candle plot along with a line chart. The properties I have set us is: Beyond this I am clueless how to proceed. I need to have 2 plots where one is a candle and the other is a line. There will be reasonable duplication of common computationally intense calculations if this is split into 2 indicators which I want to avoid.

There are many examples in the CodeBase for plotting candles with other plots. Start there and analyse the code in each example. Here are a few I found:

Remember! When in doubt, start your research by looking at the CodeBase and the Articles, and obviously referencing the Documentation.
     
    Fernando Carreiro #:

    There are many examples in the CodeBase for plotting candles with other plots. Start there and analyse the code in each example. Here are a few I found:

    Remember! When in doubt, start your research by looking at the CodeBase and the Articles, and obviously referencing the Documentation.

      Many thanks for the pointers.

       
      Suminda Dharmasena #: Many thanks for the pointers.
      You are welcome.
      Reason: