Bitcoin Forum

Alternate cryptocurrencies => Marketplace (Altcoins) => Topic started by: AMP-junkie on December 27, 2021, 08:41:02 AM



Title: How do I calculate average entry price w/ lots of DCA & partial profit taking?
Post by: AMP-junkie on December 27, 2021, 08:41:02 AM
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.


Title: Re: How do I calculate average entry price w/ lots of DCA & partial profit taking?
Post by: crwth on December 27, 2021, 08:50:40 AM
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.


Title: Re: How do I calculate average entry price w/ lots of DCA & partial profit taking?
Post by: AMP-junkie on December 27, 2021, 07:31:54 PM
In other words, the Average Entry does not change just because partial profits are taken at some point.