{"format":"alysly-page/1","url":"https://alysly.com/learn/labeling/","json":"https://alysly.com/json/learn/labeling/index.json","lang":"en-US","title":"The Triple-Barrier Method and Meta-Labeling Explained","description":"Why fixed forecast horizons produce unusable labels, how the triple-barrier method fixes that, and what meta-labeling adds on top.","published":"2026-08-02T15:54:51+02:00","modified":"2026-11-04T09:15:31+01:00","alternates":[{"lang":"de-DE","url":"https://alysly.com/de/lernen/labeling/","json":"https://alysly.com/json/de/lernen/labeling/index.json"}],"about":"Machine-readable version of the page at url. It contains the text, tables and key figures published there, but not the interactive charts and tools.","breadcrumb":[{"name":"Investing & Trading Basics","url":"https://alysly.com/learn/"},{"name":"Level 3","url":"https://alysly.com/learn/#level-3"},{"name":"Labels: Triple Barrier and Meta-Labeling","url":"https://alysly.com/learn/labeling/"}],"content":[{"type":"paragraph","text":"Level 3 AI in Trading · Part 5/9"},{"type":"heading","level":1,"text":"Labels: Triple Barrier and Meta-Labeling"},{"type":"paragraph","text":"By Alexander Bock, founder and data analyst","links":[{"text":"Alexander Bock","href":"https://alysly.com/about/"}]},{"type":"paragraph","text":"The question a model is supposed to answer is usually settled in two lines of code and then never looked at again. It is the decision with the biggest consequences in the whole pipeline."},{"type":"heading","level":2,"id":"why-the-fixed-horizon-fails","text":"Why the Fixed Horizon Fails"},{"type":"paragraph","text":"The standard approach asks: “is the price higher in ten periods?” It has one flaw that invalidates every later evaluation — it ignores the path."},{"type":"paragraph","text":"Two paths with identical labels:"},{"type":"list","ordered":false,"items":["Path A rises steadily by 3 percent.","Path B falls 12 percent in between and ends 3 percent higher."]},{"type":"paragraph","text":"For the model, both are wins. In practice B is a loss, because any sensible stop-loss would have closed the position long before. A model trained on such labels learns to prefer situations that you could not actually hold."},{"type":"heading","level":2,"id":"the-triple-barrier-method","text":"The Triple-Barrier Method"},{"type":"image","src":"https://alysly.com/img/ta/triple-barrier.2a04c5e6f56399814f4f4e7ed5f97073c99adc153df83f02e45612d2966c3edc.webp","alt":"Triple-barrier scheme: profit threshold, loss threshold and time limit around an entry"},{"type":"paragraph","text":"Instead of asking \"is price higher in 10 days?\", the triple-barrier method asks which of three limits is touched first: (1) the upper profit threshold, (2) the lower loss threshold, (3) the vertical time limit. (4) Here the upper barrier is hit first — the label is +1. The difference from a fixed horizon matters: a path that plunges in between and then recovers gets a loss label here and a win label there. Only the first is tradable."},{"type":"paragraph","text":"Instead of checking the price after a fixed horizon, you set three limits and ask which one is touched first:"},{"type":"list","ordered":true,"items":["an upper limit (profit target),","a lower limit (loss limit),","a vertical limit (maximum holding time)."]},{"type":"paragraph","text":"The label follows from whichever limit comes first: +1, −1 or 0. It therefore reproduces exactly what would have happened to a real position."},{"type":"paragraph","text":"One addition matters: the barriers are set relative to volatility, for example as a multiple of the current ATR. With fixed percentage barriers you get almost nothing but time-limit labels in quiet periods and almost nothing but hits in volatile ones. The model then mainly learns the volatility regime.","links":[{"text":"ATR","href":"https://alysly.com/learn/volatility/"}]},{"type":"heading","level":2,"id":"meta-labeling","text":"Meta-Labeling"},{"type":"paragraph","text":"A second idea splits the problem in a different way."},{"type":"image","src":"https://alysly.com/img/ta/meta-labeling.4de017da868265f4cceab98ce5573d05d901a0ea967e42d6fcb564fc1083a5c4.webp","alt":"Meta-labeling scheme: a primary model supplies direction, a secondary model supplies size"},{"type":"paragraph","text":"Meta-labeling splits one hard question into two easier ones: (1) a primary model — or a plain rule — decides direction only (+1 or −1). (2) A secondary model judges solely whether that signal is likely correct (0 or 1). (3) Its probability becomes the position size between 0 and 1. The benefit: the secondary model learns a cleanly defined binary task and may set size to zero without ever second-guessing direction."},{"type":"paragraph","text":"A primary model — or a simple rule, such as a crossover from Level 2 — decides the direction only. A secondary model then answers one binary question: is this signal likely to be correct? Its probability becomes the position size, anywhere between zero and full.","links":[{"text":"Level 2","href":"https://alysly.com/learn/moving-averages/"}]},{"type":"paragraph","text":"The benefit lies in the division of labor:"},{"type":"list","ordered":false,"items":["The direction question is hard and full of noise. It stays with a rule you understand.","The question “how reliable is this signal?” is far easier to learn. It is asked in a context the secondary model can fill with features: volatility, regime, time of day, trend strength.","The secondary model is allowed to set the size to zero. It can prevent damage without ever second-guessing the direction."]},{"type":"paragraph","text":"In practice, meta-labeling usually improves the ratio of average win to average loss rather than the hit rate, because it filters out the weak signals. In the language of Level 1: it raises the expectancy per trade, not the number of winners.","links":[{"text":"Level 1","href":"https://alysly.com/learn/risk-and-position-sizing/"}]},{"type":"heading","level":2,"id":"the-side-effect","text":"The Side Effect"},{"type":"paragraph","text":"Both methods create a problem that the next article covers. When a label runs until a barrier is touched, neighboring examples overlap. Two observations one period apart share almost their entire outcome window, so they are anything but independent."},{"type":"heading","level":2,"id":"next","text":"Next"},{"type":"paragraph","text":"Exactly that overlap, and how sample weights handle it."},{"type":"list","ordered":false,"items":[{"text":"Previous Stationarity and Memory","href":"https://alysly.com/learn/stationarity-and-memory/"},{"text":"Next Overlapping Examples and Sample Weights","href":"https://alysly.com/learn/sample-weights/"}]},{"type":"heading","level":2,"text":"Indices"},{"type":"table","caption":"Indices, performance over the selected period","columns":["Index","1M"],"rows":[[{"text":"Dow Jones","href":"https://alysly.com/markets/indices/dow-jones/"},{"text":"+1.2%","data":{"m1":"+1.2%","m3":"-2.9%","m6":"+4.3%","ytd":"+8.7%","max":"+31.4%"}}],[{"text":"S&P 500","href":"https://alysly.com/markets/indices/sp500/"},{"text":"-2.7%","data":{"m1":"-2.7%","m3":"-2.7%","m6":"+1.2%","ytd":"+11.0%","max":"+36.1%"}}],[{"text":"MSCI World","href":"https://alysly.com/markets/indices/msci-world/"},{"text":"-1.9%","data":{"m1":"-1.9%","m3":"-3.0%","m6":"+1.2%","ytd":"+10.4%","max":"+35.6%"}}],[{"text":"MSCI ACWI","href":"https://alysly.com/markets/indices/msci-acwi/"},{"text":"-2.6%","data":{"m1":"-2.6%","m3":"-3.7%","m6":"-0.1%","ytd":"+10.6%","max":"+42.1%"}}]]},{"type":"heading","level":2,"text":"ETFs"},{"type":"table","caption":"ETFs, performance over the selected period","columns":["Fund","1M"],"rows":[[{"text":"SPDR S&P 500 ETF Trust SPY","links":[{"text":"SPDR S&P 500 ETF Trust","href":"https://alysly.com/markets/etfs/us/spy/"}]},{"text":"-2.7%","data":{"m1":"-2.7%","m3":"-2.7%","m6":"+1.2%","ytd":"+11.0%","max":"+36.1%"}}],[{"text":"Vanguard S&P 500 ETF VOO","links":[{"text":"Vanguard S&P 500 ETF","href":"https://alysly.com/markets/etfs/us/voo/"}]},{"text":"-2.7%","data":{"m1":"-2.7%","m3":"-2.7%","m6":"+1.2%","ytd":"+11.0%","max":"+34.5%"}}],[{"text":"iShares Core MSCI World UCITS ETF USD (Acc) EUNL","links":[{"text":"iShares Core MSCI World UCITS ETF USD (Acc)","href":"https://alysly.com/markets/etfs/ishares-core-msci-world-ucits-etf-usd-acc/"}]},{"text":"-1.8%","data":{"m1":"-1.8%","m3":"-3.0%","m6":"+1.9%","ytd":"+11.1%","max":"+490.2%"}}],[{"text":"Xtrackers MSCI Emerging Markets UCITS ETF 1c XMME","links":[{"text":"Xtrackers MSCI Emerging Markets UCITS ETF 1c","href":"https://alysly.com/markets/etfs/xtrackers-msci-emerging-markets-ucits-etf-1c/"}]},{"text":"-6.3%","data":{"m1":"-6.3%","m3":"-7.8%","m6":"-8.3%","ytd":"+12.6%","max":"+90.7%"}}]]},{"type":"heading","level":2,"text":"Stocks"},{"type":"table","caption":"Stocks, performance over the selected period","columns":["Stock","1M"],"rows":[[{"text":"NVIDIA Corporation NVDA","links":[{"text":"NVIDIA Corporation","href":"https://alysly.com/markets/stocks/nvidia-corporation/"},{"text":"United States","href":"https://alysly.com/markets/stocks/browse/?country=United%20States"}]},{"text":"-27.3%","data":{"m1":"-27.3%","m3":"-26.2%","m6":"-29.5%","ytd":"-10.9%","max":"+30.4%"}}],[{"text":"Apple Inc. AAPL","links":[{"text":"Apple Inc.","href":"https://alysly.com/markets/stocks/apple-inc/"},{"text":"United States","href":"https://alysly.com/markets/stocks/browse/?country=United%20States"}]},{"text":"+4.0%","data":{"m1":"+4.0%","m3":"+16.3%","m6":"+19.0%","ytd":"+30.5%","max":"+55.9%"}}],[{"text":"Tesla Inc. TSLA","links":[{"text":"Tesla Inc.","href":"https://alysly.com/markets/stocks/tesla-inc/"},{"text":"United States","href":"https://alysly.com/markets/stocks/browse/?country=United%20States"}]},{"text":"+5.9%","data":{"m1":"+5.9%","m3":"+16.9%","m6":"-10.3%","ytd":"-11.6%","max":"+64.9%"}}]]},{"type":"paragraph","text":"Data note 1","href":"#dn-1"},{"type":"heading","level":2,"text":"More Research"},{"type":"list","ordered":false,"items":[{"text":"May 19, 2026 Crypto 45.6% Bitcoin’s annualized volatility, Jul 2024 — Sep 2026 Bitcoin in Investment Portfolios: The Real Numbers Bitcoin is calmer than it was and still about three times as volatile as the stock market. It moves with stocks, not with gold.","href":"https://alysly.com/research/bitcoin-investment-portfolios/"},{"text":"Oct 14, 2025 Trading +227.8% the market itself, 2017–2026, no trading Why Most Traders Lose Money: What the Data Shows The market paid 13.5% a year. Five measurable forces decide how much of that a trader keeps, and at ordinary trading frequencies it is very little.","href":"https://alysly.com/research/why-most-traders-lose-money/"},{"text":"Jan 13, 2026 ETFs 73.0% United States share of the MSCI World US Weight in the MSCI World: What Does It Really Mean for Investors? Holding 1,248 companies sounds diversified. Measured by weight, the MSCI World behaves like 85 of them.","href":"https://alysly.com/research/msci-world-us-weight/"}]},{"type":"paragraph","text":"View all research","href":"https://alysly.com/research/"},{"type":"heading","level":2,"text":"Learn"},{"type":"list","ordered":false,"items":[{"text":"Overlapping Examples and Sample Weights Overlapping labels fake independence — and how to correct for it.","href":"https://alysly.com/learn/sample-weights/"},{"text":"Cross-Validation Without Leakage Why k-fold leaks on price data — purging, embargo, CPCV.","href":"https://alysly.com/learn/cross-validation/"}]},{"type":"paragraph","text":"Course overview","href":"https://alysly.com/learn/"},{"type":"paragraph","text":"Published Aug 2, 2026 · Updated Nov 4, 2026 · Data checked automatically Nov 13, 2026"},{"type":"heading","level":2,"id":"note-legend-h","text":"Data Notes"},{"type":"paragraph","text":"All calculations run automatically and are not investment advice."},{"type":"list","ordered":true,"items":[{"id":"dn-1","text":"Returns computed automatically from the price series, excluding dividends, taxes and costs."}]},{"type":"paragraph","text":"Data and methodology: Alysly · Responsible for content: Alexander Bock","links":[{"text":"Alysly","href":"https://alysly.com/methodology/"},{"text":"Alexander Bock","href":"https://alysly.com/about/"}]},{"type":"paragraph","text":"View all data notes","href":"https://alysly.com/notes/"}],"structured_data":[{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://alysly.com/#org","name":"Alysly","url":"https://alysly.com/","logo":{"@type":"ImageObject","url":"https://alysly.com/img/icon-512.png","width":512,"height":512},"description":"Free analysis tools for traders and long-term investors. Built on data we collect and keep current.","email":"mail@alysly.com","contactPoint":{"@type":"ContactPoint","contactType":"customer support","email":"mail@alysly.com","availableLanguage":["de","en"]},"address":{"@type":"PostalAddress","addressLocality":"Haltern am See","postalCode":"45721","addressCountry":"DE"},"founder":{"@id":"https://alysly.com/#founder"},"sameAs":["https://www.linkedin.com/company/alyslycom/","https://www.youtube.com/@alyslycom","https://x.com/alyslycom"],"publishingPrinciples":"https://alysly.com/methodology/","correctionsPolicy":"https://alysly.com/corrections/"},{"@type":"Person","@id":"https://alysly.com/#founder","name":"Alexander Bock","jobTitle":"Founder and data analyst","url":"https://alysly.com/about/","sameAs":["https://www.linkedin.com/in/abxk/"]},{"@type":"WebSite","@id":"https://alysly.com/#site","url":"https://alysly.com/","name":"Alysly","inLanguage":["de-DE","en-US"],"publisher":{"@id":"https://alysly.com/#org"}},{"@type":"WebPage","@id":"https://alysly.com/learn/labeling/#webpage","url":"https://alysly.com/learn/labeling/","name":"Labels: Triple Barrier and Meta-Labeling – Alysly","description":"Why fixed forecast horizons produce unusable labels, how the triple-barrier method fixes that, and what meta-labeling adds on top.","inLanguage":"en-US","isPartOf":{"@id":"https://alysly.com/#site"},"dateModified":"2026-11-04T09:15:31+01:00","publisher":{"@id":"https://alysly.com/#org"},"mainEntity":{"@id":"https://alysly.com/learn/labeling/#entity"},"primaryImageOfPage":{"@type":"ImageObject","url":"https://alysly.com/img/ta/triple-barrier-og.73c8d920dae704b33b82eb8dfc1322d78f6f823100f1eec02f9155c9a02918bf.png","width":1200,"height":630}}]},{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Investing & Trading Basics","item":"https://alysly.com/learn/"},{"@type":"ListItem","position":2,"name":"Labels: Triple Barrier and Meta-Labeling"}]},{"@context":"https://schema.org","@type":"Article","@id":"https://alysly.com/learn/labeling/#entity","headline":"Labels: Triple Barrier and Meta-Labeling","description":"Why fixed forecast horizons produce unusable labels, how the triple-barrier method fixes that, and what meta-labeling adds on top.","inLanguage":"en-US","mainEntityOfPage":"https://alysly.com/learn/labeling/","image":[{"@type":"ImageObject","height":630,"url":"https://alysly.com/img/ta/triple-barrier-og.73c8d920dae704b33b82eb8dfc1322d78f6f823100f1eec02f9155c9a02918bf.png","width":1200},{"@type":"ImageObject","height":560,"url":"https://alysly.com/img/ta/triple-barrier.2a04c5e6f56399814f4f4e7ed5f97073c99adc153df83f02e45612d2966c3edc.webp","width":1280},{"@type":"ImageObject","height":460,"url":"https://alysly.com/img/ta/meta-labeling.4de017da868265f4cceab98ce5573d05d901a0ea967e42d6fcb564fc1083a5c4.webp","width":1280}],"isPartOf":{"@type":"CreativeWorkSeries","name":"Investing & Trading Basics","url":"https://alysly.com/learn/"},"educationalLevel":"Level 3","author":{"@id":"https://alysly.com/#founder"},"publisher":{"@id":"https://alysly.com/#org"},"datePublished":"2026-08-02T15:54:51+02:00","dateModified":"2026-11-04T09:15:31+01:00"}],"notice":"© 2026 Alysly.com"}