Wayne's Pivots Pro

There is a public version of this indicator titled "Wayne's Pivots" if you would like to try out something similar to this indicator.

Wayne's Pivots Pro is named after Wayne McDonnel who came up with this indicator's pivot trading methodology. Wayne's Pivots are only one part of his methodology, but these pivots are the most critical part. They are frequently applied to supplement other trading methodologies as well. There are 3 key features that separate Wayne's Pivots specifically from every other pivot point indicator out there.

1. Midpoint Pivots
2. Biased Pivots
3. Next Period's Pivots

Understand that this indicator is supposed to be used, according to the methodology, alongside a fundamental bias. If you have not done fundamental research to know if you're a bull or bear on an asset, then you will likely not be using these pivots correctly. They do not tell you which direction the market will move. It tells you how far and how long a trade may go depending on which way you bias the pivots , and if your fundamental view was correct. This is trade planning tool for your entries and exits.

Breaking each point down:
1. Midpoint Pivots
If you take regular pivots (S#, R#), and get a histogram of every time price closed at or above each level, you generally end up with an even distribution. By adding midpoint levels you are doubling the amount of data, and increasing the resolution of the histogram. While these extra levels don't necessarily give us entries or exits, they do tell us when price doesn't quite reach a major support or resistance level . Midpoint pivot levels are calculated by finding the midpoint between each pivot level, and are labeled from the bottom up starting at M0 (Midpoint 0).

2. Biased Pivots
The traditional rules for trading pivot points are to buy support levels and sell resistance levels. In Wayne's methodology, we see pivots as a set for entries and take profits depending on our bias. It is known that trading the inverse of traditional pivot point rules that you can end up with a reasonable strategy. Biased pivots let us focus on only what matter to us by removing all other pivots , lines, and labels. Only showing us pivots useful to the bias we set.

For example, if you are a bull fundamentally you would set the bullish biased pivots . You would look for an entry in the area between the central pivot and second midpoint ( M2 ), and an exit in the area between R2 and M4.

3. Next Period's Pivots
The third major feature of Wayne's Pivots are the "future" pivots . These are really calculated by taking the current HLC data and plotting it in realtime into the future before there's any data there. When we enter a new trading period, let say the day, we will have little data on the next day's pivots . As the current trading day goes on and gets closer to it's close, we start to see the next day's pivot points firm up. It's at this point that future pivots become actionable to create trading plans for the next day. The next period's pivots are exceptionally useful when scaled up to weekly, monthly, quarterly, and yearly timeframes. Daily, weekly, and monthly are the most commonly used within communities trading Wayne's methodology.

This is a completely rebuilt, professional use version of Wayne's Pivots . It includes many technical upgrades required by professional using Wayne's methodology. I released the original version publicly because it does not have many of the features here included in the Professional's version.

Features in Pro that are not in the public version:
  • Works on ALL timeframes.
  • Realtime pivot point updates.
  • Price levels on the pivots .
  • Extra pivots . (R3, M5, M0, S3)
  • All pivots start and end at the correct dates and times. (public version can't due to plot())
  • Easier to add more features!

Does this mean that you've abandoned the public version of Wayne's Pivots?
Absolutely not. Whenever there is a new feature in the Pro version, I always see if I can add it into the public one. It's just that the way it's built was not how I originally envisioned these pivots to be. If there's ever something that breaks the public version, I'm going to fix it because there's hundreds of people who use it.

I use the public version of Wayne's Pivots perfectly fine with my trading. Why switch to Pro?
Simply put, it's not going to give you the most accurate pivots that a professional would need. The pivots do not print properly on months with more or less than 30 days, and do their worst on short weeks. The public version has been like this ever since I first made it, and the only work around was to completely rebuild it. That's the major reason why I made the public version available to everyone in the first place. On top of all that, I can add way more features and customization options to these pivots than the public ones.

If I have a feature request will you try to implement it?
Absolutely! Some requests do have their limits, but don't be afraid to ask for something you really want. I'll try and implement lots of requested features as time goes on.
Release Notes: The "Length Multiplier" has been added to fix an issue where there wouldn't be enough UNIX time to plot the next period's pivots properly. This only effects the daily pivot points.
Release Notes: Bias Pivots Targets Label and Input Settings Revamp
  • The Bias Pivot Target labels tells you how much more price has to move in order to reach different take profit pivots according to your bias. It's only viewable when a Biased pivot is selected, and there is a toggle to turn it off manually.
  • A resolution label in the middle of the central pivot point has been added.
  • Setting Inputs tab has been redesigned so it's easier to find the options you want to change.
  • Change the Bias Target label's color, the text's color, and the size of the label.
  • Some settings include tooltips to help describe what a setting does.
  • Automated decimal placement! You are free to manually set more options too if you'd like to have more or less decimal points.
  • Changed "Length Multiplier" to "Daily Pivot Length" which properly describes how this setting changes the length of the next period's daily pivot length. (sometimes more time is needed, so this multiplier was added.)
  • Changed the drop down menu for Biased Pivots so it clearly reads by default as "Disabled" instead of "All", and put the "Range" option above "Out of Position".
  • Rewrites of big chunks of the code. More optimizations and features to come!
Release Notes: Default value update to "Daily Pivot Length" from 2 to 4.
Release Notes: Added alert conditions to the indicator for bullish and bearish biases!

What are the new features?
  • Set up alerts for bullish or bearish biased pivots.
  • Two alerts are used for each bias entry and exit zones.
  • If you're a bull and just want to be notified as soon as price hits M2, you can now create a TradingView alert for that!
  • On the other side, if you're a bear trying to take profit and exit a trade, you can set an alert for as soon as price hits M1.

What exactly do these alerts calculate?
There are 8 alert conditions, split evenly for the bullish and bearish biased entry and exit pivots.

Alerts for biased pivot entries.
  • Bullish Pivot Entry CP (alerts when price is at or below the central pivot)
  • Bullish Pivot Entry M2 (alerts when price is at or below the M2 pivot)
  • Bearish Pivot Entry CP (alerts when price is at or above the central pivot)
  • Bearish Pivot Entry M3 (alerts when price is at or above the M3 pivot)
Alerts for biased pivot exits.
  • Bullish Pivot Exit M4 (alerts when price is at or above the M4 pivot)
  • Bullish Pivot Exit R2 (alerts when price is at or above the R2 pivot)
  • Bearish Pivot Exit M1 (alerts when price is at or below the M1 pivot)
  • Bearish Pivot Exit S2 (alerts when price is at or below the R2 pivot)

I am seeing a message "Alert may trigger differently from what you expect"
This is because part of this indicator, the "future" or next period's pivots, are repainting. Though, that is not what these alerts are being triggered on: these alerts are specifically being calculated on the closed historical pivots, which do not repaint and cannot change.

If you want to see more alerts, or have questions about using these alerts, feel free to contact me directly.
Release Notes: Updated "Author's Instructions" for those who want to get access or make payment.
Release Notes: Made a quality of life update.
  • Removed the decimal input option and replaced it with a function to find the required number of decimals automatically.
  • Update alerts for each individual pivot point. Removed the "bullish and bearish" alerts for clarity. (you can still set up exactly the same alerts, they're just named after their respective pivot point levels)
  • More general code upgrades so I can add more features. (possibly a customizable label that will give you stats on how far away any arbitrary pivot currently is)
Release Notes: A quickfix to the "Daily Pivot Length" setting. It'll now automatically update itself to the most optimal setting depending if you're looking at stocks, forex, or crypto.
Release Notes: The latest update adds a long awaited feature, the Biased Pivot Highlights.

When you go into the settings of Wayne's Pivots Pro and change the Biased Pivots to a setting like Bullish, the entry and exit zones will be highlighted in green for entry and red for exit zones.

If you don't want them on, just toggle off the "Enable Biased Pivot Highlights" setting.

If you'd actually like to have all the biased pivots enabled, you can turn on "Enable All Biased Highlights" setting.

There are two versions of the highlights depending on how you'd like them show on your chart:
  • The "Pro" version which only shows the most accurate highlights. These will be the default setting.
  • The "Original" version which shows the next period's highlights at the cost of some accuracy. These can be turned off by enabling the "Future Biased Highlights (less accurate)" setting.
  • (It's about 1-4 bars in lost accuracy. This only applies to the highlights themselves, not the pivot points or their calculations.)

Other than that I have been continuously been making sweeping improvements to the code. There were some very useful functions I developed to get this feature working that I've started to apply to other indicators of mine.

Thank you to everyone who has been supporting me in creating a better and better version of Wayne's Pivots! The support goes a long way. Feel free to get in contact with me if you have suggestions or feedback about Wayne's Pivots Pro.
Release Notes: Here's a small update to the settings tab.
  • To turn on "All Biased Highlights" now requires "Biased Pivot Highlights" ticked.
  • Name of bullish/bearish highlights changed simply to lower/upper highlights.
  • Remove "Enable" from some text options. (the toggle makes it pretty obvious)
  • Minor update to Biased Pivots code. (change the structure a bit)
Release Notes: Fixed some bugs and improved the calculations for the next period's biased pivot highlights.
  • Optimized data limits. (fixes a problem from the last update where pivots wouldn't plot on timeframes below 10 minutes)
  • New Biased Pivots Highlights calculation shows the next period's pivots more accurately. Enable it with "Next Period's Highlights".
  • New "Show Last # of Highlighted Bars" setting. I recommend to leave this number very high. (this is timeframe sensitive)
Release Notes: The indicator has gone through a large rewrite to prepare the code base for more future features. The indicator will now display more labels and lines than in previous versions. Many existing settings have been refined and input options added.

In this update:
  • Many more historical pivots! See a total of 18 pivots, maxing out the limits for labels and lines. (if you want to see pivots past that point, you'll need to use TradingView's Replay Mode.)
  • Customize the color of every single aspect of the indicator individually! You can use either the default General Color Settings and change many parts at once, or you toggle the Enable Individual Pivot Settings to customize the indicator for any individual pivot or label.
  • "Resolution and Bias Settings" and "General Dropdown Settings" were added at the top. These are the most used settings.
  • Inputs in the General Dropdown Settings are stacked on top of each other instead of side by side so you can read their tooltips.
  • Brand new Pivot Line Width setting lets you set the width for all pivot point lines.
  • Pivot style settings now say "Dashed", "Dotted", and "Solid" instead of using acronyms.
  • Pivot size settings updated to say "Auto", "Tiny", "Small", "Normal", "Large", and "Huge".
  • Titles for the size settings updated to "Level Label Size" and "Price Size".
  • Separated the "Label Toggle" settings and the "Highlight Toggle" settings.
  • New calculations for the next period's pivots works makes the pivots more accurate in Replay mode.
Release Notes: Hotfix update. The 18 historical pivots have been reduced to 15 in order to prevent a memory error.
Release Notes: Minor fix: Next period's pivots show the correct price when "Price Labels" is toggled on.
Release Notes: Use 2 more types of pivot point calculations, change the color of pivot point highlight zones individually, and toggle new "H and L Labels" for a more traditional pivot numbering label for midpoint pivots.
  • Select new pivot point calculation settings. Use Traditional, Classic, or Fibonacci. The Traditional pivot points are the default setting.
  • Pick colors for each of the highlight zones individually with the new, two "Upper" and two "Lower" color inputs.
  • Toggle "H and L Labels" to replace the "M#" labels with "H#" above the central pivot and "L#" below. "H" stands for Higher, and "L" stands for Lower. This is a style of numbering the midpoint pivots that is more closely related to how "R#" and "S#" labels are numbered. This setting is disabled by default.
  • Alerts include "H#" and "L#" labels in their customizable messages.
Release Notes: "Price Labels" toggle now shows the correct price. (old code)
Release Notes: The Biased Pivot Highlights code has been updated to work in real time.
  • Biased Pivot Highlights update in real time. You no longer need to change your timeframe to update the highlights.
  • The "Next Period's Highlights" toggle hides or shows the forecasted pivot's highlights.
  • Reduce number of historical pivots by three, to a total of 12. The maximum number of highlights only goes back that far.
Release Notes: New Range Biased Pivot Highlights, minor settings updates, 2 more Highlight color options, and a reminder in case you want to use "All Biased Pivots" without the new range highlights.
  • The Range Biased Pivots now show highlights between R1 and M3, and between S1 and M2.
  • The "Bias Labels" toggle is now "Target Label".
  • The "Upper and Lower Highlights 2" settings select the Range Biased Pivot Highlights, and the "Upper and Lower Highlights 3" settings select the Out of Position / Exit Zone Highlights.
  • Moved the "Range" option one position up in the Biased Pivot dropdown.
  • Reminder: when you enable "All Biased Pivots", to get the prior visuals, you will need to set the "Upper and Lower Highlights 2" to 0% opacity.
Release Notes: Set a customizable stop loss line based on your Biased Pivot setting. New Midpoint Label Style dropdown.
  • Pivot Stop - Use the next recommended pivot level as the stop loss for the set Biased Pivot. (default setting)
  • Fixed Amount - Input any number you'd like to use for yoru stop loss.
  • Prior High / Low - Use the prior swing high or low. Set the length to set the lookback!
  • ATR Stop - Set the ATR length and multiplier to get a customized ATR stop loss. (this one updates in realtime)

New "Midpoint Label Style" dropdown. Use one of three different styles:
  • 0 to 5
  • L to H
  • - to +
Release Notes: Minor update
  • ATR and Fixed Stop Loss calculate from the close.
  • Toggle and size options for the pivot resolution text.
  • More descriptive tooltip texts. Especially for the Stop Loss Settings section.
Release Notes: More historical pivots, and better indicator stability.
  • More historical pivot points.
  • New hard code solution for "Memory limit exceeded X" error.
Release Notes:
  • The default Biased Pivot setting now says "Unbiased" instead of "Disabled" for clarification.
  • Pivot Resolution shows only 'Auto', 'D', 'W', 'M', '3M', and 'Y' settings instead of every possible timeframe.
  • New icon 🐮 for identifying cow trades. Shows when price goes past R2 or S2 if the open for the period was between M2 and M3. Off by default.
  • Resolution text is now centered properly on crypto assets.
  • Target Label for Biased Pivots is now off by default.
  • Alerts now include variable values in the alert's message. Example: "DXY, 1H close has crossed above CP at 90.105!"
  • Upper & Lower Highlight settings set to 10% opacity. Up from 5%. (Remember to enable "All Biased Highlights" set the Upper and Lower highlight opacity to 0% if you want to have a similar highlight style as the public Wayne's Pivots.)
Release Notes: New pivot condition icons in the middle of the Central Pivot line indicating when the current period's pivot points are compressed "🗜️", expanded "🔥", increasing "📈", or decreasing "📉". Pivot point traders should be made aware of how prior price movement has effected the pivot their currently trading.

The Compressed Pivot "🗜️" is when S3's price from the current period is greater than the S3 price from the prior period, and R3's price from the current period is less than the R3 price from the prior period.
Expanded Pivot "🔥" is the opposite of Compressed Pivots: When S3 from the current period is priced less than S3 from the prior period, and R3 from the current period is priced higher than R3 from the prior period.
An Increasing Pivot "📈" is when the current period's central pivot is priced greater than the prior period's central pivot.
A Decreasing Pivot "📉" is when the current period's central pivot is priced less than the prior period's central pivot.

  • Update indicator to Pinescript V5.
  • Update default line opacity from 85% to 100%.
  • Default pivot level and price label is now "Normal" from "Large".
  • New label size option for pivot condition icons.
  • Toggle all pivot condition icons on or off completely, or toggle individually in the Pivot Condition Icon Settings.
  • Enable pivot conditions for just the current and next pivot, or include icons for all historical pivots.
  • Add stop loss lines for the next pivot period when using ATR, fixed, and prior high/low stop loss measurements.
  • Below the Individual Pivot Settings is an optional setting to plot 2 EMAs and customize their lengths. Color and line style can be changed in the Style tab.
Release Notes:
  • Add Bullish and Bearish versions of Range, Extension, and Continuation biased pivot setups.
  • Add "Pivot Resolution with Pivot Label" option. Displays "D" "W" "M", the selected pivot resolution, in front of the pivot point's level label.
  • Complete rework of the pivot entry and exit highlight settings.
  • The Bias Pivot Setups now have custom Entry and Exit color inputs.
  • Override any pivot's highlights by enabling Individual Pivot Highlights.
  • The "Unbiased" setting is now first in the Biased Pivot settings list.
  • Add "Neutral" biased pivot setup which mimics Wayne's Pivots bi-directional pivot highlights.
  • The "Neutral" bias is now the default biased pivot setup instead of "Unbiased".
  • "Price Size" setting is now "Price Label Size" for clarity.
  • Update Fibonacci calculations for R3 and S3.
  • Remove "R4 / S4" test input setting. Was left in accidentally.
Release Notes:
  • Fix distance error for the next weekly period pivot points plot.
  • Fix Pivot Condition Icons back to the center of the pivots.
  • Update Midpoint Label Style input dropdown box options text.
  • Midpoint Label Style default value set from "M0 / M5" to "L# / H#".
  • Target Info Label default value set from true to false.
Release Notes:
  • 🆕 Price Table displays the current price of the current and next period's pivot points. Customize the text size, position, color, and data displayed pivot by pivot in the entire table. The Price Table is not shown by default and must be enabled first.
  • 🐜 Resolved both an error with loading the Yearly resolution pivots, and a visual error for specifically weekly pivot condition icons.

Joe Baus
Invite-only script

Access to this script is restricted to users authorized by the author and usually requires payment. You can add it to your favorites, but you will only be able to use it after requesting permission and obtaining it from its author. Contact joebaus for more information, or follow the author's instructions below.

TradingView does not suggest paying for a script and using it unless you 100% trust its author and understand how the script works. In many cases you can find a good open-source alternative for free in our Community Scripts.


The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Author's instructions

Get a 2 week trial by asking for access in #waynes-pivots-pro in this Discord: Indicator access is a one time purchase, includes all future upgrades. Notify me after your purchase!

Want to use this script on a chart?

Warning: please read before requesting access.