> For the complete documentation index, see [llms.txt](https://help.margex.com/help-center/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.margex.com/help-center/fa/leverage-trading-guide/how-leverage-works/roe-calculation.md).

# بازده حقوق صاحبان سهام (RoE) و نحوه محاسبه آن

بازده حقوق صاحبان سهام (ROE) شاخصی برای نمایش عملکرد یک معامله است. ROE مثبت یعنی معامله سودده است و ROE منفی یعنی معامله اکنون در زیان قرار دارد.

### Trade Layout <a href="#trade-layout" id="trade-layout"></a>

The PnL/RoE indicator visualization in the interface switch can be performed by changing the toggle on the '[Settings](https://margex.com/app/settings)' page of your Margex account.

* In order to switch between layouts, first, proceed to the '[Settings](https://margex.com/app/settings)' page of your Margex account:

<figure><img src="https://318728309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyNCE1H83t7XOdgV7KhhS%2Fuploads%2FS5Czit7UaejoegM6Pjzd%2FSettings.png?alt=media&amp;token=7e3189dd-ed38-49dd-b810-475a8e14001d" alt=""><figcaption></figcaption></figure>

* From there, press on the 'Trade Layout' switch:

<figure><img src="https://318728309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyNCE1H83t7XOdgV7KhhS%2Fuploads%2FBsiWQae9R2Wr39YlPjmz%2FSettings_trade%20layout.png?alt=media&amp;token=30e53b23-5710-440e-8e0f-5733316a3f03" alt=""><figcaption></figcaption></figure>

From now on, the RoE indicator would be reflected in your 'Trading Module' as the evaluation of your positions' performance.

### What is RoE and how it's calculated? <a href="#what-is-roe-and-how-its-calculated" id="what-is-roe-and-how-its-calculated"></a>

**Return on Equity** (ROE%), is an indicator which reflects the current **NET** performance of an open trade.

* <mark style="color:green;">Positive</mark> ROE means that the trade is currently profitable
* <mark style="color:red;">Negative</mark> ROE means that the trade is currently at a net loss currently

<figure><img src="https://318728309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyNCE1H83t7XOdgV7KhhS%2Fuploads%2FBtY8IC9loKc5MJkknXE0%2FRoE.png?alt=media&amp;token=e41b38a5-dc7e-41d3-addf-6abacd9f32b8" alt=""><figcaption></figcaption></figure>

ROE is calculated based on the trader’s **margin reserved for a trade**, using the following formula:

* **ROE%** = (Unrealized PnL + Realized PnL - CloseOrderCommission) / Margin

For example, if a trader has used $100 as Margin for a position, a ROE value of +20% will mean that the trade is essentially at a net profit of $20.

{% hint style="success" %}
ROE always takes into account not only the flat PnL from the price movement of the asset being traded - but also any associated [trade fees and funding](https://margex.com/margex-fees).

When initially opening a position, the ROE% indicator will show a negative value. This is due to the ROE% indicator taking into account the opening and closing trade fees which are incurred for the position.

This provides traders with a fully transparent and precise ROE indicator.
{% endhint %}
