requirebin sketch
✓ Published0🌍 Public
HHypercubed
Last edited Oct 4, 2016
Created on Oct 4, 2016
This example visualizes the maximum cumulative exposure of a stock position over time by parsing trade data from CSV. Using Papa Parse to process the input, it converts buy and sell events into a chronological sequence, calculates the running total of shares held, and measures the longest duration at maximum exposure. The result is a concise summary of peak holdings, computed from simple long/short trade records.
AI-generated description