Triple Barrier Method Labeling - Quant Researcher Interview Question
Difficulty: Hard
Category: machine_learning
Asked at: G-Research, WorldQuant, Two Sigma, AQR Capital Management, Man Group
Topics: labeling, pandas, finance, triple-barrier
Problem Description
The Triple Barrier Method is a labeling technique used in financial machine learning to characterize the outcome of a trade based on profit-taking, stop-loss, and time limits. By defining dynamic upper and lower price barriers alongside a fixed time horizon, this approach captures the path dependency of returns and aligns training labels with realistic trading constraints.
Task
Implement a function solution(prices, events, horizon, pt, sl) that determines the outcome label and realized return f
Practice this hard researcher interview question on MyntBit - the LeetCode for quants with 200+ quant interview questions for Jane Street, Citadel, Two Sigma, and other top quantitative finance firms.