Most drawdown tools answer one question: how far is price below its peak right now. On its own that number has no scale. A fall of 12% is one thing in a market whose past declines mostly ended near 5%, and another in a market that has fallen 30% several times. What is missing is the record of that market's own declines.
We have published a free, open-source indicator on TradingView that shows that record: the Drawdown Severity Histogram. It counts every completed drawdown in the chart's loaded history, sorts them by depth, and draws the result as a histogram. It is descriptive. It gives no buy or sell signals and makes no forecast.
An episode starts at a peak, runs through its lowest point, and ends on the bar that sets a new peak. For each one the indicator records two things: the maximum depth, as the percentage fall from the peak to the lowest point, and the length, in chart bars from the peak to the bar that sets the new one. An episode is recorded once, when it ends, and only closed bars are used.
Take a constructed example, not market data. A market closes at 100, falls to 88 over several weeks, and later closes above 100. That is one episode, 12% deep. If it bounced to 95 on the way and fell back to 90, the inner dip is not counted separately, because 95 was never a new peak. Each episode is measured from a high the chart had not exceeded before, so episodes never overlap and no decline is counted twice.
One consequence follows. A long bear market is a single episode however many rallies it contains, while a steady climb with frequent small pullbacks produces many. The histogram counts episodes, not days.
The horizontal axis is depth, in bins that are 5% wide by default. The height of each bar is the number of completed episodes in that bin. A label above each bar gives the count and the depth range, and hovering over it shows how many episodes went at least that deep, as a count and as a share of all counted episodes.
Two settings shape the picture. By default, dips shallower than 1% are left out of the counts and the statistics. Setting that filter to zero counts every dip below a peak, and the first bar then dominates the chart. The count scale can also be switched from linear to logarithmic, which keeps a bin holding one or two episodes visible next to a bin holding a hundred. In that mode the counts are read from the labels, because the scale on the right is no longer a count.
Peaks and troughs use closing prices by default. An option switches to highs for peaks and lows for troughs, which captures the extremes inside each bar. On a bar that sets a new peak the order of its high and low is unknown, so that bar's low is not counted. A further option starts the count from a chosen date.
A table beside the histogram summarizes the same episodes. On the depth side it lists the number of completed episodes, the median depth, the 90th and 95th percentile depths, and the deepest episode. On the duration side it lists time under water: the median, the 90th percentile and the longest, in chart bars. On a daily chart one bar is one trading day.
The percentiles are taken over episodes. A 90th percentile depth says that nine in ten completed episodes on that chart ended shallower than that figure. It says nothing about the share of time the market spent that far down. Depth and length are also summarized separately, so the deepest episode and the longest one need not be the same.
The open drawdown is kept out of every count and every statistic, because its final depth is not known. It is shown apart. The bin where it would land if it ended at its deepest point so far is drawn in a second color, and the table lists that deepest point, the number of bars under water, and the current distance from the peak.
This makes one comparison possible: the open drawdown set beside the median and the 90th percentile of the completed ones on the same chart. That is a comparison with the past and nothing more. It does not say how the open episode ends. An episode that looks ordinary today can still become the deepest on record before it closes.
The indicator sees only the history loaded on the chart. Less history means fewer episodes, and the deep bins usually rest on a handful of them, sometimes one. A percentile drawn from thirty episodes is a rough figure. The first loaded bar is also treated as the first peak, so any decline already under way at that point is measured from there.
The results depend on chart settings. Dividend adjustment changes historical prices and therefore the peaks and the depths. The timeframe matters too: a weekly chart uses weekly closes and misses a low that was reached and recovered inside the week. The same symbol produces different counts under different settings, and each set is correct for its own definition.
All of the loaded history goes into one distribution. Large moves have tended to arrive in clusters, as described in what is volatility clustering, so calm and turbulent periods are mixed together in the counts. The histogram is drawn at the right edge of the visible chart and follows it when the chart is scrolled or zoomed, but the counts always cover the whole loaded history. Scrolling back does not show the histogram as it stood on an earlier date.
Above all, the deepest drawdown on record is only the deepest so far. Past behavior is not a guarantee of future results, and nothing in the histogram sets a limit on the next decline.
The histogram is not part of the Behavioral Transform Model. It is a separate, free script, and its source is open for anyone to read. No figure in Oisigma's working paper depends on it, and we have published no research on drawdowns. It is a counting tool.
The two tools describe different things. The expected range is a measurement of how far price has typically moved over one bar, drawn around the prior close, as set out on How It Works. The working paper tests how often the next close landed inside that range historically. That is a statement about single bars, and it validates the range's calibration, not the profitability of any use of it.
A drawdown is a path across many bars. A run of ordinary-sized declines can add up to a deep drawdown without one close leaving the range, and a close outside the range can occur at a new high. The range is also symmetric, while a drawdown looks only at the downside, a distinction covered in downside deviation vs standard deviation. Neither tool has been shown to improve anyone's results.
A current drawdown figure needs a reference. The histogram supplies the chart's own record: how many declines there were, how deep they went, how long they lasted, and where the unfinished one sits beside them. It is a record of what happened in the loaded history under the chosen settings, and it should be read as that.
Does the Drawdown Severity Histogram repaint? Completed episodes are recorded on closed bars only, and an episode that has been counted does not change afterward. The open-drawdown rows and the highlighted bin do update with the live bar, because they describe an episode that has not ended. Changing a setting or loading more history reruns the whole count.
Why do the drawdown numbers change when the timeframe changes? Each timeframe has its own closes, so the peaks and troughs differ. A weekly close can sit well above the lowest daily close of that week, which can make the weekly episode shallower. The amount of history loaded also differs by timeframe, and so does the number of episodes.
Does it work on crypto, forex and intraday charts? It runs on any chart with positive prices, and durations are counted in bars of whatever timeframe is open. Intraday charts usually load a shorter span of calendar time, so they contain fewer large episodes. The script's description suggests starting from a daily chart of a liquid index or ETF with a long history, and the bin width and minimum depth may need changing elsewhere.
How is a drawdown histogram different from an underwater chart? An underwater chart plots the distance below the peak through time, so it shows when each decline happened and how it unfolded. The histogram drops the dates and shows the distribution: how many episodes fell in each depth range and how long episodes lasted. The two views are built from the same peak-to-trough arithmetic and answer different questions.
The Drawdown Severity Histogram is free on TradingView. The Behavioral Transform Model is Oisigma's separate indicator, which draws a calibrated expected range on any TradingView chart, with what was measured and where it falls short published on the Proof page. You can start a free 30-day trial and see how the range sits on the markets you follow.
Oisigma provides descriptive market analytics for educational use. It is not investment advice, does not predict prices, and does not provide buy or sell signals. Statistics referenced are historical and were measured in our working paper (not peer-reviewed); past behavior is not a guarantee of future results. Trading and investing involve substantial risk of loss, including the possible loss of all capital invested. Leveraged products (futures, options, margin) carry additional risk and can result in losses that exceed your initial investment. Bollinger Bands® is a registered trademark of John Bollinger; Oisigma is not affiliated with or endorsed by Mr. Bollinger. RiskMetrics® is a registered trademark of MSCI Inc.; Oisigma is not affiliated with or endorsed by MSCI Inc. Nothing in this article is a recommendation to use any particular strategy. Read the full Disclaimer →
Try it free for 30 days and see the range update as new bars print, on whatever symbols and timeframes you actually trade.
30 days free, then $15/mo. Cancel anytime from your account.
Pick up where you left off.