Lewati ke konten utama

Trading Journal

Trading journal — catat, analisis, dan evaluasi trade dengan statistik dan visualisasi.

Overview​

Trading journal menyimpan semua trade Anda dengan detail lengkap:

  • Entry/Exit — harga, waktu, alasan.
  • P&L — profit/loss, fees, net.
  • Metadata — strategi, simbol, timeframe.
  • Review — self-assessment dan perbaikan.

Pencatatan Trade​

Manual Entry​

{
"trade": {
"symbol": "EURUSD",
"direction": "buy",
"entryPrice": 1.0850,
"entryTime": "2024-01-15T10:00:00Z",
"exitPrice": 1.0900,
"exitTime": "2024-01-15T14:30:00Z",
"lots": 0.5,
"strategy": "Trend Follower",
"timeframe": "H4",
"notes": "Breakout di resistance 1.0830"
}
}

Auto-Capture​

Trade dari platform trading langsung ditangkap:

public async Task CaptureTradeAsync(Trade trade)
{
trade.AccountId = _currentUser.GetAccountId();
trade.CapturedAt = DateTime.UtcNow;
await _db.Trades.AddAsync(trade);
}

Analisis​

Performa Overview​

MetrikNilai
Total Trades150
Win Rate58%
Profit Factor1.8
Avg Win$125
Avg Loss-$85
Net Profit$4,250
Max Drawdown8%
Sharpe Ratio1.95

Visualisasi​

Equity Curve​

Chart equity seiring waktu dengan drawdown overlay:

Equity ($)
│
5000 ┤ ╱╲
│ ╱╲╱ ╲
4000 ┤ ╱╲╱ ╲
│ ╱╲╱ ╲
3000 ┤╱╲╱ ╲
└──────────────────────────→ Time

Monthly Returns​

Heatmap return bulanan:

Month20232024
Jan+3.2%+2.8%
Feb-1.5%+4.1%
Mar+2.1%+1.2%

Win/Loss Distribution​

Histogram win dan loss:

Count
│
20 ┤ █
│ █ █
15 ┤ █ █ █
│ █ █ █
10 ┤ █ █ █ █
│ █ █ █ █
5 ┤ █ █ █ █ █
│ █ █ █ █ █ █
└──────────────────→ P&L ($)
-100 0 100 200

Statistik Lanjutan​

By Symbol​

SymbolTradesWin RateNet P&L
EURUSD8062%+$2,500
GBPUSD3554%+$950
XAUUSD2548%-$200
US5001060%+$1,000

By Strategy​

StrategyTradesWin RateAvg P&LSharpe
Trend Follower6055%+$851.8
Mean Reversion4562%+$651.5
Breakout3050%+$401.2
Scalping1567%+$252.1

By Timeframe​

TimeframeTradesWin RateAvg DurationNet P&L
M54052%15 min+$800
H15058%2 hours+$2,000
H44065%8 hours+$1,800
D12060%2 days-$350

Journal Entry Review​

Trade Review Form​

Setelah setiap trade, isi review:

{
"review": {
"tradeId": "TRD-123",
"rating": 4,
"whatWentWell": "Entry timing bagus, managed stop dengan baik",
"whatCouldBeBetter": "Should have taken profit earlier at 1.0920",
"lessonLearned": "Ada resistance di 1.0900, take profit di sana",
"adjustmentForNextTime": ",下次在 1.0900 设置 TP"
}
}

Pattern Identification​

AI mengidentifikasi pattern dari journal:

Pattern Detected:
"Your winning trades tend to be in the direction of the daily trend (73% win rate vs 45% when counter-trend)."

Export​

CSV​

curl -H "Authorization: Bearer <token>" \
"https://api.cmind/journal/export?format=csv&from=2024-01-01&to=2024-01-31" \
-o journal.csv

JSON​

curl -H "Authorization: Bearer <token>" \
"https://api.cmind/journal/export?format=json" \
-o journal.json

Integration​

With Backtest Results​

Compare live trading dengan backtest:

{
"comparison": {
"backtestSharpe": 2.1,
"liveSharpe": 1.8,
"backtestWinRate": "60%",
"liveWinRate": "58%",
"conclusion": "Live performance close to backtest, strategy is robust"
}
}

With Strategy Health​

Journal data feed ke Strategy Health metrics:

Strategy Health uses journal data to calculate:
- Realized win rate and profit factor
- Drawdown from closed trades
- Trade frequency and duration