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

`_SECTION_BEGIN("Price");`

till

`_SECTION_END();`

So the whole price formula is

```
_SECTION_BEGIN("Price");
SetChartOptions( 0, chartShowArrows | chartShowDates | chartWrapTitle );
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +"\n {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();
```

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.

BTW here is a similar thread

And FYI... AmiBroker is **FORMULA driven**.