Bitcoin Forum
August 10, 2024, 09:25:49 PM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How do I calculate average entry price w/ lots of DCA & partial profit taking?  (Read 65 times)
AMP-junkie (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
December 27, 2021, 08:41:02 AM
 #1

If I have a dozen trades for a dozen different dates, I assume when partial profit is taken, it's taken from the oldest trade. Is there a formula for calculating Average Entry Price in such situations? The formulas that I can find do not seem incorporate any taking of profits.
crwth
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 1275


Try Gunbot for a month go to -> https://gunbot.ph


View Profile WWW
December 27, 2021, 08:50:40 AM
 #2

Basically, averaging would be easy. You just need the total amount of trades and the actual values of your entries. Add all the values of the entry price and then divide the total amount number of trades. You will get the AEP or Average Entry Price.

Code:
AEP = Sum of entry prices/Total number of trades

It's not going to valuate on the oldest trade alone, it's going to take the entirety, as long as you are in the same pair.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits.
..........UNLEASH..........
THE ULTIMATE
GAMING EXPERIENCE
DUELBITS
FANTASY
SPORTS
████▄▄█████▄▄
░▄████
███████████▄
▐███
███████████████▄
███
████████████████
███
████████████████▌
███
██████████████████
████████████████▀▀▀
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
.
▬▬
VS
▬▬
████▄▄▄█████▄▄▄
░▄████████████████▄
▐██████████████████▄
████████████████████
████████████████████▌
█████████████████████
███████████████████
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
/// PLAY FOR  FREE  ///
WIN FOR REAL
..PLAY NOW..
AMP-junkie (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
December 27, 2021, 07:31:54 PM
 #3

In other words, the Average Entry does not change just because partial profits are taken at some point.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!