• Language & Exchange Rate Switch
  • Preference Settings
    Rise/Fall Color
    Change & Chart Start-End Time
  • Language
  • Exchange Rate Switch
Do Not Switch to Fiat Do not display fiat price
  • CNY - ¥
  • USD - $
  • VND - ₫
  • EUR - €
  • GBP - £
  • HKD - $
  • JPY - ¥
  • RUB - ₽
  • TRY - ₺
  • INR - ₹
  • NGN - ₦
  • UAH - ₴
  • BRL - R$
  • MYR - RM
  • PGK - K
  • PKR - Rs
  • BDT - ৳
  • PHP - ₱
  • CAD - $
  • IDR - Rp
  • ZAR - R
  • PLN - zł
  • SAR - ﷼‎
  • ARS - $
  • AED - د.إ
  • KZT - ₸
  • EGP - E£
  • UZS - so`m
  • TWD - $
  • GHS - GH₵
  • VES - Bs
  • MXN - $
  • COP - $
  • XAF - Fr
  • XOF - FCFA
  • BYN - Br
  • KES - Ksh
  • MAD - د.م
  • AUD - $
  • TZS - TSh
  • SEK - kr
  • AZN - ₼
  • CLP - $
  • HUF - Ft
  • RON - lei
  • AMD - ֏
  • DZD - د.ج
  • NPR - रू
  • JOD - د.ا.
  • MRU - UM
  • IQD - ع.د
  • KWD - د.ك
  • QAR - ر.ق
  • TND - د.ت

Change & Chart Start-End Time

  • 24H
  • UTC 00:00
  • UTC+8 00:00

Rise/Fall Color

  • Red for rise and green for fall
  • Green for rise and red for fall

Pay With

Floating Profit and Loss Calculation

Updated on 07 23, 2024
146829
views
4
lv

Why is the Floating Profit and Loss (PNL) negative when my entry price is lower than the current price?


To make it easier for you to understand Floating PNL, we would like to start off by introducing the following two formulas:


Floating PNL=(current price - average buying price)*coin holdings
Entry price: the price of the first filled order after the grid is created

We can see two key parameters in the Floating PNL formula, one is the "current price" — the current market price, and the other is the "average buying price". But what is the "average buying price"?


Let’s take the GT_USDT trading pair as an example:


Current price for GT_USDT when the grid is created: 30 USDT
Price range: 30-100 USDT
Common difference per grid: 10 USDT

When the grid is created:
Assume both the current price and the average buying price for GT_USDT are 30 USDT. According to the above formula, the Floating PNL is exactly 0 at this time.





When the grid bot has been running for a period of time:


If the price for GT_USDT goes up from 30 USDT to 100 USDT and then falls back to 40 USDT, the quantitative strategy will be utilized to complete the following operations during this period:

In the course of the price rising from 30 USDT to 100 USDT, the strategy will help you to make returns by executing the sell orders at 40 USDT, 50 USDT, 60 USDT, 70 USDT, 80 USDT, 90 USDT, and 100 USDT respectively, with a common difference of 10 USDT.

Afterwards, in the course of the price dropping from 100 USDT to 40 USDT, the strategy will help execute the buy orders at 90 USDT, 80 USDT, 70 USDT, 60 USDT, 50 USDT, and 40 USDT respectively, with a common difference of 10 USDT.

Therefore, in the course of the price going down, the strategy helps execute buy orders at six different price levels, according to which we can calculate that the average price of holdings is 65 USDT, which is higher than the current market price of 40 USDT. That is to say, the current market price minus the average price of holdings is negative. Naturally, the Floating PNL is negative.

Examples are described in the following table




Gate reserves the final right to interpret the product.

Was this article helpful to you?
Language and Region
Exchange Rate

Select language and region

Go to Gate.TR?
Gate.TR is online now.
You can click and go to Gate.TR or stay at Gate.
It seems that you are attempting to access our services from a Restricted Location where Gate is unable to provide services. We apologize for any inconvenience this may cause. Currently, the Restricted Locations include but not limited to: the United States of America, Canada, Cambodia, Thailand, Cuba, Iran, North Korea and so on. For more information regarding the Restricted Locations, please refer to the User Agreement. Should you have any other questions, please contact our Customer Support Team.
I Acknowledge