You can create a custom column with the specified formula calculation in any panel. To create custom column, open Column Manager and press Create custom column. The Formula editor dialog box is displayed as follows:

You can use Wizard Buttons to create the formula or Intellisense and press OK.
To edit already created formula in custom column, open Column Manager, select Formula > Text and press ![]()
Example of calculation profit in pips (Position panel):
(table.CurPrice-table.Basis)/instrument.Current.Pipsize