Finance P/L and Day P/L Formula

avtrade

New Member
Joined
Feb 23, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
3. Day Trade Tracker.xlsx
BCDEFGHIJKLMNOPQR
2TRACKING SHEET
3# of Trades3Winners3.0000
4Batting Avg100.00%Losers0.0000
5Sharpe Ratio#DIV/0!Breakeven0.0000
6Avg ROI84.95%Avg Risk1.1707
7Commission#REF!Avg Winner45.4133
8Overall P/L$136.24Avg Loser#DIV/0!
9
10DateSymbolPositionSharesFillExitExit HalfExit QtrEntryStopRisk UnitRiskSetupP/LDay P/LTime OpenNotes
112/23/24MRVIL2007.71007.75008.00007.65007.39000.2664.00BO33.00
122/23/24SQNSL5000.74990.79990.82930.75000.66000.0944.9532.35
132/23/24WBDS2788.26508.52008.29008.45000.1651.4370.89
140.000.00 
150.000.00 
160.000.00 
170.000.00 
180.000.00 
190.000.00 
200.000.00 
210.000.00 
220.000.00 
230.000.00 
240.000.00 
250.000.00 
260.000.00 
270.000.00 
280.000.00 
290.000.00 
300.000.00 
310.000.00 
320.000.00 
330.000.00 
340.000.00 
350.000.00 
360.000.00 
370.000.00 
Tracking
Cell Formulas
RangeFormula
D3D3=SUM(H3:I5)
D4D4=(H3/D3)
D5D5=ABS(H7/H8)
D6D6=D8/(SUM(M10:M10228))
D7D7=SUM(#REF!)*-1
D8D8=SUM(O10:O10228)
H3H3=COUNTIF(O10:O10227,">0")
H4H4=COUNTIF(O10:O10227,"<0")
H5H5=COUNTIF(O10:O10227,"=0")
H6H6=AVERAGE(M10:M10229)
H7H7=AVERAGEIF(O10:O10228,">0")
H8H8=AVERAGEIF(O10:O10228,"<0")
L11:L37L11=ABS(J11-K11)
M11:M37M11=ABS((K11-F11)*E11)
O11:O37O11=IF(I11>0,E11/4*(I11-F11)+E11/4*(H11-F11)+E11/2*(G11-F11),IF(H11>0,E11/2*(H11-F11)+E11/2*(G11-F11),IF(G11>0,E11*(G11-F11), "")))



Hi everyone!

I am struggling with Excel formulas to define the 2 columns. The P/L and the Day P/L. I got this formula from my friend, but it seems to not be working properly. He hasn't used this sheet for a long time, so he doesn't know how to fix it unfortunately.

To clarify, the position L or S, is Long or Short. That means the fill (where I got filled), and exit (where I exited), will be either a loss or a profit depending on the Position. In these 3 examples, WBD is Short, therefore it should be a negative P/L in the P/L column for the day. The Day P/L column should add each amount in the P/L column as long as it is the same date..

Please let me know if there are any other questions. If someone could help me with this, it would be greatly appreciated!
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Not all the excel forum are financial experts, particulary me. So, much of your terminology is greek to me.

I do not see a column called WBD.
So, please inform which sign column F (Fill) should have when column D (Position) is "L" or "S"?
(Should Fill be negative when Position is L or S?).
Are you asking for aggregate amounts in the P/L column by date?

Also, some descriptions of the accurate formula would be helpful, as well as expected values for the example, so the forum can see what values they need to work toward.

Are you aware that you have uneven cell references in the tracking data in B3:G8? While I understand the use of long column ranges, the ranges are not the same size. This leads me to believe you have deleted cells (not rows in data clean up) and the data is no longer column aligned. This probably makes no difference in the sample data you sent. But your original data may have been corrupted.
 
Upvote 0

Forum statistics

Threads
1,224,812
Messages
6,181,099
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top