Price needs to be at the top of the whole formula.
Wrong!
First you need to check whether the code of that pane is a copy of "Price (All in one)" of Charts window or whether it is original "Price (All in one)" AFL.
Right click into that chart pane and choose "Edit formula"
In the formula editor tab if there is a number behind the closing bracket of the AFL name there then it is a copy.
So if it is a copy (showing number behind closing bracket as above) then:
Go to Charts window
Double click "Price (all in one)"
It will open below in new chart pane
Go to the right upper edge of first (upper) chart pane and close that pane when close button ( x-button) shows up (after hovering with mouse there at that pane edge (see picture).
Done.
If it is not showing a number behind AFL name in formula editor tab then you have applied not a copy of charts window's "Price (all in one)" AFL but original one from there. Then you need to move price formula (that you have dragged and dropped there) to the TOP of the the entire formula. So open Formula editor again and cut the code of the bottom of the AFL starting from
So again CUT that code from bottom of formula editor pane then scroll up to the top of formula editor pane and paste the cut price code there at the top. Then in formula editor click Apply button of editor tool bar.
Where is there any edit of code in first part of previous post?
Check whether it is original code or copy first!! Checking does not mean editing code.
If it is not original AFL of Chart window then there is not any edit of code required but just mouse clicking.
And again,
And FYI... in general AmiBroker environments (such as charts, analysis) are FORMULA driven.
And you have removed price from a formula (here in this case from "Price (all in one)" AFL - and either removed from original one or from copy being placed in Drag&Drop folder (which is hidden by default)). If it is removed from copy then all you need to do is double click "Price (all in one)" of Charts window again and close the other chart pane. Done!