Pivot Points Algo

dman103 Updated   
This is a Pivot Points Algo (PPA).
PPA uses an adaptive pivot algorithm that adapts to different market situations based on various factors.
PPA also includes depth filtering to make it more precise at its signal decision.

======= Signal Types ======
Main Signal of BUY and SELL shown by buy/sell labels.
Mini Signals of BUY and SELL shown by buy/sell arrows and shows additional breakouts after the Main Signal occurred.
Optional reversal signals show a possible reversal in trend (small triangle).

======= Alerts =======
Main Signals alerts - Alerts when a main Buy or Sell is triggered (Shown as Labels).
Combo Alerts - Alerts when main or mini signals of Buy and Sell are triggered (Shown as Arrows).

======= Assets and Time frames =======
Can be used on various assets, stocks, forex, crypto and works great for day trading as well as swing trading and long term investing.
PPA is designed to adjust to any time frame!

======= General info =======
The purpose of this indicator is to signal possible breakouts with a high rate of success.
PPA has been extensively tested and fine tuned to provide traders and investors with a valuable tool for timing long and short entries. However, no system is 100% perfect, and it is good practice to have a plan in place and use stop losses or other tools to mitigate unforeseen risk.

Also, note, I don't hide what PPA is doing as opposed to some other commercial indicators on the market. You can view pivot lines and pivot bands and so on.
The magic is the inner system itself which works for you to pinpoint the best entrance possible, I recommend confirming your own methods to make sure you want to take the trade.

To subscribe to Pivot Points Algo service see “Author's instructions” below.

For any question you can PM me.

Happy and profitable trading!
Release Notes:
Version 1.38
Major update: Now you can update pivot lengths from indicator settings when on 'Manual' mode!
Color bars shows trend by strong colors (strong trend) and or weaker colors (weakening trend).
Bug fix for mini signals.
Release Notes:
Added option to change pivot width for breakouts for main signals and mini signals.
Added option to change bar colors from PPA main settings.
Disabled 'Style' settings and moved useful style settings to main settings.
Improvement in PowerFilter OTC.
Release Notes:
Version 1.39
Candle pattern improved detection.
Updated PowerFilter OTC algo.
Added 'SKY' color scheme.
Release Notes:
Version 1.40
Added capability to detect breakouts on sufficient previous pivots.
Pivot Points Algo update.
Release Notes:
Improved previous pivot detection algo.
Release Notes:
Version 1.41
Added new type of Alert to trigger any signal with message codes: Main Buy, Mini Buy, Main Sell, Mini Sell
Minor scheme color fixes.
Other bug fix and improvements to pivot algo.
Release Notes:
New Alert for Main Buy and Sell Signals only.
Improved alert messages.
Update to colors for black & white color scheme.
Minor bug fixes.
Release Notes:
Version 1.43
New visual false breakouts displayed by dashed lines.
New OTC NoiseFilter setting, 'Strong' - Stronger filtering - for bigger takes (swing trading/longer term trading).
Updated settings tooltip descriptions.
Algo improvements and code optimizations.
Note: GOTO documentation at Pivot Points Algo website for more info.
Release Notes:
Version 1.44
You can now visually enable labels to visually see breakout prices.
You can now set sensitivity also to MINI signals.
New various alerts that will trigger only after MAIN and it's first MINI signal for each direction (buy or sell).
Algo optimization.
Better organization in settings.  
Bug Fix.
Refer documation on the website for more information.
Release Notes:
Improved OTC NoiseFilter algo.
Main algo finetune.
Mini signals are shown as small triangles (instead of arrows).
Release Notes:
Core algo update.
Updated settings descriptions.
Added color options for pivot bands.
Release Notes:
Minor update for 1.45
Release Notes:
Version 1.46
Improved algo.
Improved adaptation of algo for futures and forex.
Update code to newest pinescript version.
Release Notes:
Version 1.47
Added new trailing stop loss such as Fixed, Trailing percentage, Trailing Sar, Trailing Pivot, etc. Remember, trailing stop loss target is to limit loss and lock profit.
Added option to auto detect asset velocity to determine automatically stop loss value.
Added enhanced configurations to give flexibility for trailing stop loss.
Added real time pivot transformation to help predict upcoming price breakouts.
Added stop loss alert.
Algorithm optimizations.
More info on website.
Release Notes:
screenshot update.
Release Notes:
Update to stop losses.
Specific update to pivot stop loss.
Option to display stop loss value on real time bars (forward) and/or historical.
Updated stop loss to start exactly on signal entry price.
Release Notes:
Update of bar colors and screenshot.
Release Notes:
Simplified and improved auto stop loss user interface settings and algo.
Add a new option to display stop loss value only at signal first candle.
Increase stop loss character size 'E'.
Fixed rare bug where stop loss can be executed twice.
Release Notes:
NEW: Support for external signal filtering like DTrendmeter!
Fixed 'Close position on touching stop loss. (Real time only)' option to work correctly when disabled (to close position on candle close).
Improved how real-time pivots are generated.
Release Notes:
Version 1.48
Removed trailing loss unnecessary labels.
Release Notes:
Version 1.49
Improvements for 'auto stop loss' algo and it's default settings.
Improvements of how trailings stop loss works on some endpoints such as triggering on the same candle with an opposite direction signal.
Added stop-loss multiplier parameter (in settings) for trailing stop loss (Auto s/l) for faster control over the 'auto s/l' value!
Labels settings have been improved drastically, more control over stop-loss values for historical and real-time.
Added option for all alerts to also send stop loss codes when triggered: '3' code for long and '-3' code for shor (disabled by default).
Some optimizations.
Release Notes:
Version 1.5
Improved support for external indicators if they are set to a higher time frame (Like DTrendmeter, MA+, etc)
Improved how stop-loss acts on buy/sell signal candles.
Improved default settings.
Release Notes:
reduced pivot auto spacing.
Release Notes:
Minor fix in settings descriptions for stop loss multiplier.
Release Notes:
* You can now enable or disable the volume filter for Mini signals (small triangles) - before this version of PPA, this option was hidden.
* Some optimizations and bug fix.
Release Notes:
Version 1.52:
* Fixed issue with stop loss incorrect plots (the cross shape) when we have a reversal signal.
* Update to bar coloring functionality to color bars only when in signal, if stop loss triggers and an exit trade, bars will remain normal until the next signal.
Release Notes:
Version 1.53
Introducing a new X-RAY filter to filter even more false signals.
Removed unused indicator status line texts.
Some code adjustments and optimizations.
Release Notes:
Version 1.54:
* Separated stop loss alerts into two different alerts (stop loss long, stop loss short)
* Improved x-ray filter - added 'Strong' setting which is similar to previous PPA ver (1.53)  'Normal' settings while the 'Normal' setting is looser on 1.54 (default is Strong).
* Improved OTC NoiseFilter algo.
* Improved ranged pivot algo like between 1 (min pivot length) to 4 (max pivot length).
* Added option to force alerts to trigger at the close of the candle.
* General optimization.
Release Notes:
Update to 1.54
* Fixed alert bug, where it could execute alert at false breakout.
* Removed option to 'Force alert at candle close', you just set what you want from Alert itself. Cheers!
Release Notes:
Version 1.55:
Update the x-ray pattern detection in real-time (also fix alert precision).
Release Notes:
1.55 update
Pivot Sensitivity Presets are working now!
Release Notes:
Version 1.56:
Update the x-ray pattern detection by adding 'Loose' settings (less sensitive).
NEW: X-Ray filter Includes multi-time frame support for even greater flexibility.
Release Notes:
Version 1.57:
Some optimizations.
Added option to change stop loss colors and looks.
Release Notes:
Update alerts bug with XRAY filter.
Some optimizations.
Release Notes:
Version: 1.59:
Removed built-in x-ray filter due to alerts issue. For X-RAY users use the XRAY indicator itself and attach it to PPA ('external indicator connection;' in PPA settings), alerts will work perfectly!
Minor tune-ups.
Release Notes:
Version 1.60:
New: Support Multi time frame
New: Support two external filters! Like Xray, Dtrendmeter, and also another PPA!
New: Now you can even attach PPA to another PPA with external filters.
For example, Chart is set to 5min, First PPA is set to the chart time frame, and other PPA is set to 30min. You attach the 30min PPA to the 5min PPA and it will show only signals that match the 30min direction. You can adjust the style of signals in each PPA. For any questions go to PPA discord server.
Release Notes:
Version 1.60:
Small algo fix.
Release Notes:
Version 1.61:
Some bug fixes.
Release Notes:
Version 1.61:
* Fixes for Multi time frame support.
* Improved Ui elements descriptions.
* More fixes.
Release Notes:
Version 1.62:
Algo tune-ups.
Release Notes:
Version 1.62.1:
Improved OTC filter algo (default is Normal)
Release Notes:
Version 1.62.2:
Major improvements of how OTC filter (Normal settings) handles gaps and other scenarios.
Release Notes:
Version 1.70:
* Major Update.
* Rebuilt engine in terms of performance and better trend detection!
Release Notes:
Version 1.70:
Bug fix
Release Notes:
Release Notes:
Version 1.72:
* Enhanced algorithm.
* Significant adjustments to 'low' sensitivity behavior.
* Fixing bugs.
Release Notes:
Fix error due to TV changes.
Release Notes:
Version 1.73:
* Enhanced overall algorithm performance.
* Improved responsiveness during off-peak trading hours for Forex and Futures markets.
* Tuned sensitivity settings for improved accuracy and adaptability.
* Bug fixes and optimizations for better functionality.
Release Notes:
Version 1.74:
* Improved signal strength calculation.
* Enhanced bar coloring algorithm.
* Added new reversal bands (similar to bar coloring).
* General fixes and bug fixes for better performance and stability.
Release Notes:
Version 1.75:
* New - Enhanced sharp moves signal detection!
* Overall algorithm tune-up.
* Bug fixes addressing various issues.
Release Notes:
Version 1.76:
* Improved signal detection for gaps.
* New option to display signals above or below the bar, and
at the close price or breakout price.
* PPA can now operate on 1-second charts.
* Added a new optional diamond sign for main signals.
Release Notes:
Version 1.77:
* Enhanced Crypto algorithm functionality
* Algorithm tune-ups
Release Notes:
Version 1.78:
* Stop loss user interface renewed.
* Added improved Trailing Pivot stop loss.
* General algorithm optimization implemented.
Release Notes:
Version 1.79:
* New sensitivity "LOW'. "Lowest" now functions as "Low" did in previous versions.
* Enhanced UI descriptions.
* Upgraded stop loss capabilities.
* General bug fixes.
Release Notes:
Version 1.80:
* Enhanced the functionality of the trailing pivot's stop loss with a new feature called 'Factor to Reduce,' increasing flexibility.
Release Notes:
Version 1.81:
New option to adjust the trailing pivot percentage at next change of pivot.
Visual change, option to choose pivot line type: "Breakout only" or "All High/Low".
Release Notes:
Version 1.81.1:
Fix that you can disable the pivot line (disabled by default)

Appreciation of my work:
Premium Pivot Points Algo Indicator:
LIVE Stream - Pivot Points Algo:
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 dman103 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

Access to Pivot Points Algo indicator will be granted up to 12 hours (usually a few hours), within your TradingView account after you purchase on the website here: You will get a notification via email.

Want to use this script on a chart?

Warning: please read before requesting access.