When using a Relative/Pegged to Primary order with a positive amount or percentage offset, your order's price is automatically adjusted as the market moves to remain more aggressive than the Bid or Ask. Orders with a "0" offset are submitted as limit orders at the best bid/ask and will move up and down with the market to continue to match the inside quote. If you submit a Relative order with a percentage offset, you are instructing us to calculate an order price that is consistent with the offset, but that also complies with applicable tick increments.
A MidPrice order will be submitted at the mid point between the current Bid and Ask. To achieve the midpoint price or better, the Midprice algo routes the order to the exchange with the highest probability of filling as a "Pegged-to-Midpoint" order. In addition, for a MidPrice order you have the ability to set an optional "price cap" to define the highest price (for a buy order) or the lowest price (for a sell order) you are willing to accept.
Please note that you can change the displayed name in the Order Type drop-down from REL (Relative) order to PEG PRIM (Pegged-to-Primary) using the Settings page of the Display group in TWS Global Configuration. Go to Edit followed by Global Configuration and click on Display in the left column. In the top section of the Display settings, place a check in the box for “Rename Relative (REL) order type to Pegged to Primary” and click Apply and OK.