Creating a powerful Excel-based trading journal that tracks every trade, decision, and emotion is a great way to improve your trading psychology and performance. Below is a complete automation plan, including the structure, formulas, macros (VBA), and tips for implementation.
📊 Ultimate Excel Trading Journal – Features Overview
Create a mapping of emotional states and how they affect outcomes.
Emotion
Count
Avg PnL
Win Rate
You can use Power Query or Pivot Tables to analyze which emotions lead to better results.
6. Setups Sheet
List of strategies/setups you trade (used in dropdowns):
ID
Name
1
Breakout
2
Pullback
3
News Play
4
Scalp
5
Mean Reversion
Link this to data validation in the Reason For Entry field.
🔧 VBA Automation Code
Macro: Add Trade from Form to Log
vba
Sub AddTrade()
Dim wsLog As Worksheet, wsForm As Worksheet
Set wsLog = ThisWorkbook.Sheets("Trade Log")
Set wsForm = ThisWorkbook.Sheets("Trade Form")
Dim nextRow As Long
nextRow = wsLog.Cells(wsLog.Rows.Count, "A").End(xlUp).Row + 1
' Copy values from form to log
With wsLog
.Cells(nextRow, 1).Value = wsForm.Range("B2").Value 'Date
.Cells(nextRow, 2).Value = wsForm.Range("B3").Value 'Symbol
.Cells(nextRow, 3).Value = wsForm.Range("B4").Value 'Direction
.Cells(nextRow, 4).Value = wsForm.Range("B5").Value 'Entry Time
.Cells(nextRow, 5).Value = wsForm.Range("B6").Value 'Exit Time
.Cells(nextRow, 6).Value = wsForm.Range("B7").Value 'Entry Price
.Cells(nextRow, 7).Value = wsForm.Range("B8").Value 'Exit Price
.Cells(nextRow, 8).Value = wsForm.Range("B9").Value 'Quantity
.Cells(nextRow, 9).Value = wsForm.Range("B10").Value 'Fees
.Cells(nextRow, 10).Formula = "=(G" & nextRow & "-F" & nextRow & ")*H" & nextRow 'Gross PnL
.Cells(nextRow, 11).Formula = "=J" & nextRow & "-I" & nextRow 'Net PnL
.Cells(nextRow, 12).Value = wsForm.Range("B11").Value 'Entry Reason
.Cells(nextRow, 13).Value = wsForm.Range("B12").Value 'Exit Reason
.Cells(nextRow, 14).Value = wsForm.Range("B13").Value 'Emotion Before
.Cells(nextRow, 15).Value = wsForm.Range("B14").Value 'Emotion After
.Cells(nextRow, 16).Value = wsForm.Range("B15").Value 'Notes
.Cells(nextRow, 17).Value = wsForm.Range("B16").Value 'Market Condition
.Cells(nextRow, 18).Value = wsForm.Range("B17").Value 'Strategy Used
End With
MsgBox "Trade added successfully!", vbInformation
End Sub
Optional: Reset Form Macro
vba
Sub ClearForm()
Dim wsForm As Worksheet
Set wsForm = ThisWorkbook.Sheets("Trade Form")
wsForm.Range("B2:B17").ClearContents
wsForm.Range("B2").Value = Date
End Sub
Assign this to a "New Trade" button.
📈 Charts & Metrics (Dashboard)
Equity Curve: Use cumulative sum of Net PnL over time.
Pie Chart: % of wins by strategy
Bar Chart: Average PnL by emotion
Line Chart: Daily or weekly PnL trend
✅ Tips for Success
Always fill out the emotions honestly — it's one of the most powerful tools for growth.
Review your journal weekly/monthly using the Dashboard.
Keep your trade form clean and fast — don’t spend more than 2 minutes logging.
Export data regularly to CSV or Google Sheets for backup or analysis.
📦 Bonus: Template Download Option
If you'd like, I can help you create a downloadable .xlsm file template with all of this built-in, including macros and formatting.
Would you like me to generate that? Or do you prefer to build it yourself step by step?
Let me know if you want this exported as a ready-to-use Excel file!
User
i choose assistant B and generate it
Assistant
Great choice! 🎉 I’ll now generate a ready-to-use Excel trading journal template for you based on the full structure and automation plan we discussed.
This will be a downloadable .XLSM file (Excel Macro-Enabled Workbook) that includes:
Since I can't directly upload files here, I'll generate the full VBA code, sheet structures, and formulas for you. You’ll then copy everything into a new Excel workbook and save it as .xlsm.
✅ Step 1: Create New Excel Workbook (.xlsm)
Open Microsoft Excel.
Go to File > Save As > Excel Macro-Enabled Workbook (*.xlsm).
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R |
|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|
| Date | Symbol | Direction | Entry Time | Exit Time | Entry Price | Exit Price | Quantity | Fees | Gross P&L | Net P&L | Reason For Entry | Reason For Exit | Emotion Before | Emotion After | Notes | Market Condition | Strategy Used |
✅ Step 7: Insert VBA Code
Go to Developer > Visual Basic, right-click your project, click Insert > Module, and paste the following code:
vba
Sub AddTrade()
Dim wsLog As Worksheet, wsForm As Worksheet
Set wsLog = ThisWorkbook.Sheets("Trade Log")
Set wsForm = ThisWorkbook.Sheets("Trade Form")
Dim nextRow As Long
nextRow = wsLog.Cells(wsLog.Rows.Count, "A").End(xlUp).Row + 1
With wsLog
.Cells(nextRow, 1).Value = wsForm.Range("B2").Value 'Date
.Cells(nextRow, 2).Value = wsForm.Range("B3").Value 'Symbol
.Cells(nextRow, 3).Value = wsForm.Range("B4").Value 'Direction
.Cells(nextRow, 4).Value = wsForm.Range("B5").Value 'Entry Time
.Cells(nextRow, 5).Value = wsForm.Range("B6").Value 'Exit Time
.Cells(nextRow, 6).Value = wsForm.Range("B7").Value 'Entry Price
.Cells(nextRow, 7).Value = wsForm.Range("B8").Value 'Exit Price
.Cells(nextRow, 8).Value = wsForm.Range("B9").Value 'Quantity
.Cells(nextRow, 9).Value = wsForm.Range("B10").Value 'Fees
.Cells(nextRow, 10).Formula = "=(G" & nextRow & "-F" & nextRow & ")*H" & nextRow 'Gross PnL
.Cells(nextRow, 11).Formula = "=J" & nextRow & "-I" & nextRow 'Net PnL
.Cells(nextRow, 12).Value = wsForm.Range("B11").Value 'Reason For Entry
.Cells(nextRow, 13).Value = wsForm.Range("B12").Value 'Reason For Exit
.Cells(nextRow, 14).Value = wsForm.Range("B13").Value 'Emotion Before
.Cells(nextRow, 15).Value = wsForm.Range("B14").Value 'Emotion After
.Cells(nextRow, 16).Value = wsForm.Range("B15").Value 'Notes
.Cells(nextRow, 17).Value = wsForm.Range("B16").Value 'Market Condition
.Cells(nextRow, 18).Value = wsForm.Range("B17").Value 'Strategy Used
End With
MsgBox "Trade added successfully!", vbInformation
End Sub
Sub ClearForm()
Dim wsForm As Worksheet
Set wsForm = ThisWorkbook.Sheets("Trade Form")
wsForm.Range("B2:B17").ClearContents
wsForm.Range("B2").Value = Date
End Sub
✅ Step 8: Add Buttons to Run Macros
Go to Developer > Insert > Button (Form Control)
Draw a button on Trade Form, assign macro AddTrade