Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:AI4Finance Foundation FinGPT Round Trip Trade Analysis

From Leeroopedia
Knowledge Sources
Domains Trade_Analysis, Portfolio_Analytics, Trading
Last Updated 2026-10-18 00:00 GMT

Overview

A trade-level analysis methodology that pairs sequential buy and sell transactions into round-trips and computes per-trade profit, return, and duration statistics.

Description

Round-trip analysis reconstructs completed trades by pairing consecutive buy/sell transactions of the same asset, then computes statistics (profit factor, win rate, average win/loss, duration) split by all/long/short categories. This complements aggregate returns analysis with trade-quality insights.

Usage

Use this principle when analyzing the quality and distribution of individual completed trades rather than aggregate daily returns.

Theoretical Basis

Round-trip reconstruction:

  1. Group consecutive same-direction transactions (within max_delta time)
  2. Pair buys with subsequent sells to form round-trips
  3. Compute per-trade PnL, returns, and duration

Key statistics:

Profit Factor=∑winsPnL|∑lossesPnL|

Win Rate=|{t:PnLt>0}|N

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment