# How to Change the OKX’s Position Type to Long/Short Mode?

Normally, if you have **no positions** in your **Okx’s account** when you use **uTrading** for the **first time**, the position type will automatically switch to **\[Open/Close mode]**, so that the robot can be **started** smoothly.

Of course, it cannot be ruled out that you may also encounter situations where **automatic switching cannot be performed**. Then you need to go to **Okx** to **manually select** the **\[Open/Close mode**] which supports long and short positions at the same time.

Please follow the instructions in the pictures below:

**Step 1*****:*** Open OKX App, log in to your account, click **\[**<mark style="color:blue;">**Trade**</mark>**]** on homepage bottom to enter the trading page, and then Click on the icon in the upper right corner, As follow:

<figure><img src="https://2235159847-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgTaR88gN1nbfnMB7d1tU%2Fuploads%2FlNUnmNCqdLeSmCZHlWUn%2FHow%20to%20Change%20the%20Okx%20Position%20Type%20to%20LongShort%20Mode-1.jpg?alt=media&#x26;token=d25f5855-af60-4266-b3ca-004fbeb68067" alt=""><figcaption></figcaption></figure>

**Step 2*****:*** Click **\[**<mark style="color:blue;">**Settings**</mark>**]** on the page, As follow:

<figure><img src="https://2235159847-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgTaR88gN1nbfnMB7d1tU%2Fuploads%2F55qQ6vEFJiCOmiFpB23M%2FHow%20to%20Change%20the%20Okx%20Position%20Type%20to%20LongShort%20Mode-2.jpg?alt=media&#x26;token=971c82bd-d4d0-4dcd-afd6-4e29cc922802" alt=""><figcaption></figcaption></figure>

**Step 3*****:*** Enter the settings page, Select **\[**<mark style="color:blue;">**Position Mode**</mark>**]**, As follow:

<figure><img src="https://2235159847-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgTaR88gN1nbfnMB7d1tU%2Fuploads%2FQDsZQyC7cvHf1Pc2aNFF%2FHow%20to%20Change%20the%20Okx%20Position%20Type%20to%20LongShort%20Mode-3.jpg?alt=media&#x26;token=52a0463a-4f75-4041-8667-12aec02bab26" alt=""><figcaption></figcaption></figure>

**Step 4*****:*** Tick **\[**<mark style="color:blue;">**Open/Close Mode**</mark>**]** as a successful modification,  As follow:

<figure><img src="https://2235159847-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgTaR88gN1nbfnMB7d1tU%2Fuploads%2FigIFb8GiQAzGsDva8Joz%2FHow%20to%20Change%20the%20Okx%20Position%20Type%20to%20LongShort%20Mode-4.jpg?alt=media&#x26;token=5df0dde2-a813-4da4-bb81-48b8ea9ec4b8" alt=""><figcaption><p>Note: Position type applies to all futures and perpetual swap contracts. To adjust this mode, close all open positions or cancel pending orders.</p></figcaption></figure>

Since uTrading opens long and short positions on the same crypto at the same time, it is necessary to choose **\[Open/Close mode**].

**\[Open/Close mode]**: You can place both open (long/short) and close (long/short) orders. This mode allows you to hold two-way positions.

**\[Buy/Sell mode]**: You can only place buy or sell orders, and hold one-way positions under either isolated or cross margin mode.
