📊 Trade Chart Viewer

User Guide & Feature Overview


1️⃣ Overview

The Trade Chart Viewer allows you to visually analyze completed trades in an interactive candlestick chart.

Each chart displays:

  • Market price candles
  • Entry and exit levels
  • Stop loss and take profit
  • Liquidation price
  • DCA (Dollar Cost Averaging) entries
  • Smart Take Profit targets
  • Profit lock levels

The system is designed for post-trade review, performance analysis, and strategy validation.


2️⃣ Opening a Chart

Because charts load historical data files, they must be opened using a local server.

Step 1: Open terminal inside your completed_trades folder

Step 2: Start local server

python -m http.server 8080

Step 3: Open browser and go to:

http://localhost:8080/{SYMBOL}_{TRADE_ID}.html

Example:

http://localhost:8080/ALICEUSDT_3.html

The chart will load automatically.


3️⃣ Chart Layout

The chart contains:

🔹 Candlesticks

Shows price movement for selected timeframe.

🔹 Trade Information Header

Displays:

  • Symbol
  • Trade ID
  • Trade direction (Long / Short)
  • Timeframe selector

4️⃣ Timeframe Selection

Use the dropdown in the top right corner to switch between:

  • 5m
  • 15m
  • 30m (default)
  • 1h
  • 4h
  • 1d
  • or any configured timeframe

The chart will reload automatically when changed.


5️⃣ Trade Level Lines

All important trade levels are displayed as bold horizontal lines for clear visibility.

Line Type What It Means
ENTRY Average entry price
STOP LOSS Risk protection level
TAKE PROFIT Main TP level
LIQUIDATION Liquidation threshold
CLOSE Final closing price

These lines are thick and color-coded for easy identification.


6️⃣ DCA Levels (If Used)

If the trade used Dollar Cost Averaging:

  • Each DCA entry is shown as a separate colored line
  • Each line is clearly labeled (DCA #1, DCA #2, etc.)
  • Helps visualize how position was built

This allows you to review:

  • Entry scaling behavior
  • Risk exposure growth
  • Average price improvement

7️⃣ Smart Take Profit Levels

If Smart TP was active:

  • Each TP target is displayed
  • Profit lock levels (if configured) are also shown
  • Helps visualize staged exits

This allows analysis of:

  • Partial profit execution
  • Locked-in profit strategy
  • Target achievement behavior

8️⃣ Interactive Line Information

You can click near any horizontal line to see more details.

When clicked, a tooltip will show:

  • Type of level (Entry, DCA, Smart TP, etc.)
  • Price value
  • Target percentage (if applicable)
  • Profit lock percentage (if applicable)

This makes the chart interactive and informative.


9️⃣ Clean Visual Design

The chart is intentionally minimal:

  • No horizontal grid clutter
  • Dark professional theme
  • Only candles + trade levels visible
  • Clear line thickness for easy reading

Designed for focused trade analysis.


🔎 What This Tool Is For

✔ Reviewing completed trades ✔ Analyzing DCA strategy effectiveness ✔ Evaluating Smart TP behavior ✔ Validating stop-loss placement ✔ Post-trade performance review ✔ Strategy refinement


🚫 What It Is Not

  • Not a live trading interface
  • Not real-time market data
  • Not connected to exchange
  • Not an execution tool

This is a post-trade analysis tool.


🧠 Best Practice for Analysis

When reviewing a trade:

  1. Start at 30m timeframe
  2. Switch to 1h or 4h for trend context
  3. Inspect DCA levels relative to market structure
  4. Review Smart TP execution zones
  5. Analyze risk-to-reward visually
  6. Check if stop loss placement made structural sense

📁 File Structure

Each trade generates:

  • One HTML chart file
  • Multiple timeframe candle data files

All are stored inside your completed_trades folder.


🎯 Summary

The Trade Chart Viewer provides:

  • Clear trade visualization
  • Multi-timeframe analysis
  • DCA and Smart TP tracking
  • Interactive price-level inspection
  • Clean, professional presentation

It transforms raw trade data into a visual strategy evaluation tool.


📎 Related Topics