How can I merge the chart and indicator into one pane?

You can use the Move To option by opening the indicator context menu and right-clicking on its name or its plots on the chart. Select Move To and choose the option you need.

It is also possible to select the indicator and move it to another pane by using your mouse.