Upside Downside Unchanged VolumeUpside Downside Unchanged Volume
Plot NYSE or NASDAQ Upside Volume, Downside Volume, or Unchanged Volume (e.g. UPVOL.NY, UVOL, or ADVN.NY) as a percent (values 0 to 1, where 1 = 100%) of Total Volume.
Plot Day, Week, and Month volume and/or chart timeframe period volume.
Plot volume as a histogram, line, or area.
Plot various moving averages of volume points.
Horizontal lines at 0, 10, 30, 50, 70, 90, and 100% levels.
Inspired by Paul Desmond of Lowry’s Reports.
Lowry
Improved Lowry Up-Down Volume + Stocks Indicatordocs.cmtassociation.org
In Paul F. Desmond's award winning paper in 2002 entitled "Identifying Bear Market Bottoms and New Bull Markets", he proposed an indicator for panic buying and selling that can be used to determine major market bottoms.
The paper explains that in major bear markets, you should have at least one, or more than one multiple 90% down days. Recoveries out of bear markets, or beginnings of new bull markets, should have at least one of the following conditions:
1) At least one 90% up volume day
2) At least two back-to-back 80% up volume days
Up and Down volume are defined as:
1) 90% up volume - defined as 90% up volume / total volume (or 10% down volume / total volume)
2) 90% down volume - defined as 90% down volume / total volume (or 10% up volume / total volume)
Several scripts exist in Tradingview to show this indicator for Up and Down volume, along with arrows or indicators for green up days or red down days.
However, this script is an improved version as it allows you the option to customize a couple parameters:
1) You may chose whether you'd like to use volume or stocks - sometimes it's better to have confluence between volume and actual stocks at the 90% threshold
2) You may chose the exchanges to consider - in the paper the NYSE is discussed, but this allows the expansion into NYSE, NASDAQ, DOW, and even a combined NYSE + NASDAQ + DOW indicator
3) It uniquely codes in the ability to plot a buy signal for both 90% up days, but also two back-to-back 80% up days - which is in the spirit of the original paper
I hope you enjoy this script and please let me know if you'd like me to make any modifications or additions.
Thank you, sincerely,
Jim Bosse
Lowry Upside % VolumeThis script takes the total NYSE volume for the day and determines what percentage of that volume is Upside Volume (or buying volume).
What's different in this script compared to others is that the 3 most essential values determined by Paul F. Desmond's Dow Award-winning paper for Lowry's Reports are color coded:
1) 90% Upside Volume Day
2) 80% Upside Volume Day
3) 90% Downside Volume Day
According to Paul's award-winning research, these precise criteria are objective definitions of panic selling and panic buying and are generally near major market tops and bottoms.
His Dow Award-winning paper on the topic can be explored and scrutinized in more detail here:
docs.cmtassociation.org
UpVol/TVol NYSE Lowry Upside DaysTakes Tradingviews Upside Volume for NYSE and divides it by Total Volume on NYSE.
Tradingview's data source generally has different volume figures than say the Wall Street Journal. Therefore, this indicator is an estimate.
10% upside volume shows extreme panic and is consistent with market sell offs.
90% upside days, following a decline, are often occur within a week or so of significant market bottoms.
Recommend using columns as the plot type.
Based on research of LowryResearch Corp.
90% DaysIndicator from the paper "IDENTIFYING BEAR MARKET BOTTOMS AND NEW BULL MARKETS"
This paper was the winner of the prestigious 2002 Charles H. Dow Award. Each year the Market Technicians Association, in alliance with Dow Jones and Company, presents an award for excellence in the field of Technical Analysis. The recipient of that award in 2002 was Paul Desmond, President of Lowry Research Corporation.
"Important market bottoms are preceded by, and result from, important market declines.
And, important market declines are, for the most part, a study in the extremes of human emotion.
The intensity of their emotions can be statistically measured through their purchases and sales. To
clarify, as prices initially begin to weaken, investor psychology slowly shifts from complacency to
concern, resulting in increased selling and an acceleration of the decline. As prices drop more
quickly, and the news becomes more negative, the psychology shifts from concern to fear. Sooner
or later, fear turns to panic, driving prices sharply lower, as investors strive to get out of the market
at any price. It is this panic stage that drives prices down to extreme discounts – often well below
book values – that is needed to set the stage for the next bull market. Thus, if an investor had a
method for identifying and measuring panic selling, at least half the job of spotting major market
bottoms would be at hand.
Over the years, a number of market analysts have attempted to define panic selling (often
referred to as a selling climax, or capitulation) in terms of extreme activity, such as unusually
active volume, a massive number of declining stocks, or a large number of new lows. But, those
definitions do not stand up under critical examination, because panic selling must be measured in
terms of intensity, rather than just activity. To formulate our definition of panic selling, we
reviewed the daily history of both the price changes and the volume of trading for every stock
traded on the New York Stock Exchange over a period of 69 years, from 1933 to present. We
broke the volume of trading down into two parts – Upside (buyers) Volume and Downside (sellers)
Volume. We also compiled the full and fractional dollars of price change for all NYSE-listed
stocks that advanced each day (Points Gained), as well as the full and fractional dollars of price
change for all NYSE-listed stocks that declined each day (Points Lost). These four daily totals –
Upside Volume and Points Gained, Downside Volume and Points Lost – represent the basic
components of Demand and Supply, and have been an integral part of the Lowry Analysis since
1938. (Note: an industrious statistician can compile these totals from the NYSE stock tables in
each day’s Wall Street Journal.)
In reviewing these numbers, we found that almost all periods of significant market decline
in the past 69 years have contained at least one, and usually more than one, day of panic selling in
which Downside Volume equaled 90.0% or more of the total of Upside Volume plus Downside
Volume, and Points Lost equaled 90.0% or more of the total of Points Gained plus Points Lost.
...
But, there is a second key ingredient to every major market bottom. It is essential to
recognize that days of panic selling cannot, by themselves, produce a market reversal, any more
than simply lowering the sale price on a house will suddenly produce an enthusiastic buyer. As the
Law of Supply and Demand would emphasize, it takes strong Demand, not just a reduction in
Supply, to cause prices to rise substantially. It does not matter how much prices are discounted; if
investors are not attracted to buy, even at deeply depressed levels, sellers will eventually be forced
to discount prices further still, until Demand is eventually rejuvenated. Thus, our 69-year record
shows that declines containing two or more 90% Downside Days usually persist, on a trend basis,
until investors eventually come rushing back in to snap up what they perceive to be the bargains of
the decade and, in the process, produce a 90% Upside Day (in which Points Gained equal 90.0% or
more of the sum of Points Gained plus Points Lost, and on which Upside Volume equals 90.0% or
more of the sum of Upside plus Downside Volume). These two events – panic selling (one or more
90% Downside Days) and panic buying (a 90% Upside Day, or on rare occasions, two back-toback 80% Upside Days)
– produce very powerful probabilities that a major trend reversal has
begun, and that the market’s Sweet Spot is ready to be savored."
Includes an option to display 90% days for NASDAQ, but these are much rarer and, oddly, there are no Upside Days.
*Includes an option for repainting -- default value is true, meaning the script will repaint the current bar.
False = Not Repainting = Value for the current bar is not repainted, but all past values are offset by 1 bar.
True = Repainting = Value for the current bar is repainted, but all past values are correct and not offset by 1 bar.
In both cases, all of the historical values are correct, it is just a matter of whether you prefer the current bar to be realistically painted and the historical bars offset by 1, or the current bar to be repainted and the historical data to match their respective price bars.
As explained by TradingView,`f_security()` is for coders who want to offer their users a repainting/no-repainting version of the HTF data.