PivottrendHi all!
This script is based on the concept of "higher highs and higher lows" and "lower highs and lower lows". Bullish/bearish trend changes when a previous pivot (low in bullish trend and high in bearish trend) is broken (or has equal value). Some settings are customizable by the user:
Timeframe
- You can choose what timeframe the pivots are found on
Left length
- The left length used for the pivots found
Right length
- The right length used for the pivots found
Show labels
- Choose if you want to display buy and sell labels
Show pivots
- Choose if you want to display the pivots found
Show MSS
- Choose if you want to display a line when price breaks a previous pivot
The "look and feel" is inspired by the script "SuperTrend" by KivancOzbilgic ().
Best of trading luck!
Pivot
PEMA SUITESPivot based EMA (PEMA) is giving ema based on pivot .
Pivot MA's indicator is a combination of the following:
Pivot SMA
Pivot EMA's
Pullback to EMA Band
Pivot EMA's Cross Over
Pivot Double-EMA's Cross Over
Modified Pivot EMA's Cross Over
All the pivot EMA’s calculations are based on "Profiting With Pivot-Based Moving Averages" book by Frank Ochoa.
How to use it :-
One should have to refer this book for in depth usage of this indicator.
You can use the option's provided in the indicator and the signals have been generated according to the concept in this book.
Don't turn on multiple option's, it becomes clumsy to look.
Description:-
1. Pullback to PEMA Band:-
Perhaps the most trader-friendly PEMA setup is the PEMA Pull-Back, because it forces you to trade in the direction of an established trend.
In this, u get the signal when the price retraces to 13 EMA and closes above the PEMA Band.
It is like Buy the Dips & Sell the Rips. The idea of the PEMA Pull-Back is to buy the market at a discount during an uptrend, and sell the market at a premium during a down trend.
2. PEMA Cross Over :-
The PEMA Crossover fires a signal when the fast EMA crosses the slow EMA.
If the fast EMA crosses above the slow EMA, a long signal is fired; whereas, if the fast EMA crosses below the slow EMA, a short signal is fired.
Depending on your trader personality, you will have to choose the periodicities of the two moving averages to suit your taste.
Some combination of EMA's are provided.
3. Double EMA Cross Over :-
A double exponential moving average (DEMA) is basically the EMA of an EMA, meaning the output is the second derivative of the original exponential moving average.
While an EMA is a faster moving average than the SMA, the DEMA is on another level in terms of speed.
4. Modified PEMA Cross Over :-
This system is an ultra-fast PEMA crossover signal that has built-in trend confirmation.
The Modified PEMA Crossover system fires signals in the direction of the prevailing trend, as measured by a larger moving average.
For Example, Take (1,3),21 combination. In this we use 1- and 3-period pivot EMA’s for crossovers, and use a 21-period pivot EMA for trend confirmation.
1 and 3 period EMA's are not shown in the chart, Only 21 EMA and signals are shown for clear view.
Therefore, this system will only allow bullish crossover signals to fire when price is above the 21-period pivot EMA, and will only allow bearish crossover signals to fire when price is below the 21-period average.
In essence, the results are usually highly qualified “buy the dip, and sell rip” type of opportunities.
This also helps you to avoid getting chopped up during price confluence.
Traders have to look for reversal when price is near the pivot based EMA Zone.
CAMARILLA PIVOTSThis indicator is based on the Pivot study. Traders will be able to plot CPR, Standard floor pivots as well as Camarilla Pivots on multiple timeframes.
Why pivots from multiple timeframes are relevant and included in this one indicator?
We can analyse pivots on multiple timeframes for different trading setups. As in, Daily floor pivots are best suited for analysing the market trend for Day trading. Similarly, Weekly and Monthly floor pivots can be analysed for Swing and positional trading entries. Whereas yearly pivot is best suited for trend analysis for investment purpose.
What is the relevance of plotting tomorrow's pivot level in advance?
Pivot are calculated based on the price happened on a previous day. And hence trader can plot tomorrow pivots in advance to shortlist stocks for tomorrow's trading session.
TimeFrames Available to traders are –
- Auto (1H)
1. Daily
2. Weekly
3. Monthly
4. Quarterly
5. Yearly
A) Daily Pivots
Present Day –
1. Trader can plot Daily CPR
2. Trader can plot Daily R1, R2, R3 and R4 pivot resistance levels
3. Trader can plot Daily S1, S2, S3 and S4 pivot support levels
4. Trader can plot Daily Camarilla levels
Future Day –
1. Trader can plot Tomorrow CPR
2. Trader can plot Tomorrow R1, R2, R3 and R4 pivot resistance levels
3. Trader can plot Tomorrow S1, S2, S3 and S4 pivot support levels
4. Trader can plot Tomorrow Camarilla levels
5. Previous Day High and Low
B) Weekly Pivots
Present Week –
1. Trader can plot Present week CPR
2. Trader can plot Present week R1, R2, R3 and R4 pivot resistance levels
3. Trader can plot Present week S1, S2, S3 and S4 pivot support levels
4. Trader can plot Present week Camarilla levels
Next Week –
1. Trader can plot Next week CPR
2. Trader can plot Next week R1, R2, R3 and R4 pivot resistance levels
3. Trader can plot Next week S1, S2, S3 and S4 pivot support levels
4. Trader can plot Next week Camarilla levels
5. Previous Week High and Low
C) Monthly Pivots
Present Month –
1. Trader can plot Present Month CPR
2. Trader can plot Present Month R1, R2, R3 and R4 pivot resistance levels
3. Trader can plot Present Month S1, S2, S3 and S4 pivot support levels
4. Trader can plot Present Month Camarilla levels
Next Month –
1. Trader can plot Next Month CPR
2. Trader can plot Next Month R1, R2, R3 and R4 pivot resistance levels
3. Trader can plot Next Month S1, S2, S3 and S4 pivot support levels
4. Trader can plot Next Month Camarilla levels
5. Previous Month High and Low
EXTREME REVERSAL SETUP:
This is by far my favorite setup in the lot. Classic Mean Reversion setup.
The logic, as explained in the book, goes like this,
1. The first bar of the pattern is about two times larger than the average size of the candles in the lookback period.
2. The body of the first bar of the pattern should encompass more than 50 percent of the bar’s total range, but usually not more than 85 percent.
3. The second bar of the pattern opposes the first.
The setup works extremely well in high beta stocks like Vedanta VEDL.
Feel free to play with the settings in order to better align this pattern with your favorite stock.
OUTSIDE REVERSAL SETUP:
My second favorite setup, it is quite good at catching intraday trends.
Here’s the logic,
1. The engulfing bar of a bullish outside reversal setup has a low that is below the prior bar’s low and a close that is above the prior bar’s high. Reverse the conditions for bearish outside reversal.
2. The engulfing bar is usually 5 to 25 percent larger than the size of the average bar in the lookback period.
Settings for this pattern simply reflect these conditions. Feel free to modify them as you wish.
DOJI REVERSAL SETUP:
Doji candles signify market indecision and this pattern tries to profit off these market conditions.
Logic:
1. The open and close price of the doji should fall within 10 percent of each other, as measured by the total range of the candlestick.
2. For a bullish doji, the high of the doji candlestick should be below the ten-period simple moving average. Vice-versa for bearish.
3. For a bullish doji setup, one of the two bars following the doji must close above the high of the doji. Vice-versa for bearish.
Feel free to modify the settings and optimize according to the stock you are trading.
Don't optimize too much :)
This pattern works brilliantly well on larger intraday timeframes, like 15m/30m/60m.
This pattern also has a higher propensity to give false indications than the two described above.
Doji reversal typically helps to catch larger trend reversals.
WICK REVERSAL SETUP:
This pattern tries to capture candlesticks with large wick sizes, as they often indicate trend reversal when coupled with significant support and resistance levels.
Logic:
1. The body is used to determine the size of the reversal wick. A wick that is between 2.5 to 3.5 times larger than the size of the body is ideal.
2. For a bullish reversal wick to exist, the close of the bar should fall within the top 35 percent of the overall range of the candle.
3. For a bearish reversal wick to exist, the close of the bar should fall within the bottom 35 percent of the overall range of the candle.
This pattern must always be coupled with important support resistance levels, else there will be a lot of false signals.
This indicator helps you identify market structure by plotting swing highs and lows (HH, LH, HL, LL).
Indicator Settings Overview
SWING LENGTH
The number of leftbars and rightbars when searching for swing points. The lower the value, the more swing points are shown and the higher the value, the less swing points are shown. I suggest adjusting it to fit your style and when switching between different timeframes.
Market Pivot Levels [Past & Live]Market Levels provide a robust view of daily pivot points of markets such as high/low/close with both past and live values shown at the same time using the recently updated system of polylines of pinescript.
The main need for this script arose from not being able to use plots for daily points because plots are inherently once drawn can't be erased and because we can't plot stuff for previous bars after values are determined we can't use them reliably. And while we can use traditional lines, because we would have extremely high amount of lines and we would have to keep removing the previous ones it wouldn't be that effective way for us. So we try to do it with the new method of polylines .
Features of this script:
- Daily High/Low Points
- Yesterday High/Low/Close Points
- Pre-Market High-Low points.
Now let's preview some of the important points of code and see how we achieve this:
With the code below we make sure no matter which chart we are using we are getting the extended hours version of sessions so our calculations are made safely for viewing pre-market conditions.
// Let's get ticker extended no matter what the current chart is
tc = ticker.new(syminfo.prefix, syminfo.ticker, session.extended)
Coding our own function to calculate high's and low's because inbuilt pinescript function cannot take series and we send this function to retrieve our high's and lows.
// On the fly function to calculate daily highlows instead of tv inbuilt because tv's length cannot take series
f_highlow(int last) =>
bardiff = last
float _low = low, float _high = high
for i = bardiff to 0 by 1
if high > _high
_high := high
if low < _low
_low := low
With doing calculations at the bars of day ending points we can retrieve the correct points and values and push them for our polylines array so it can be used in best way possible.
// Daily change points
changeD = timeframe.change("D")
// When new day starts fill polyline arrays with previous day values for polylines to draw on chart
// We also update prevtime values with current ones after we pushed to the arrays
if changeD
f_arrFill(cpArrHigh, cpArrLow, prevArrh, prevArrl, prevArrc, prevMarh, prevMarl)
valHolder.unshift(valueHold.new(_high, _low, _high, _close, _low, time, pr_h, pr_l))
The rest of the code is annotated and commented. You can let me know in comments if you have any questions. Happy trading.
[Pivots Consolidation Breakout Screener] with Alerts (TSO) This is a pivots consolidation screener indicator, with ability to choose up to 12 different symbols/instruments with alert to be notified when consolidation happens on either one with the new pivots formation (new R3(inner resistance) pivot formed below previous one and new S3(inner support) pivot formed above previous one). Once the alert on a certain symbol/instrument is received - there is an ability to set a Breakout alert for the consolidated symbol/instrument.
This is a very powerful strategy, which doesn't happen often, but when happens - it often causes big moves after a breakout!
NOTE: Every calculation is done on a confirmed closed candle bar state, so the indicator will never repaint!
===========================================================================
Explanation of all the Features/Inputs/Settings
---------------------------------------------------------------------------
>>> On the very top, please read the important NOTES/TIPs.
>>> Next section is where the desired symbols can be turned on/checked to be screened for consolidation - the selected/checked symbols at creation of a 'Any alert() function call' alert will alert on any of the selected/checked symbols. Also, once consolidation forms, until next pivots formation - it will show it on the "Consolidation Stats" table. Once alerted on a specific symbol for consolidation - manual alert - 'Consolidation BREAKOUT' - can be created (MUST be done on the actual symbol chart, Right-Click > Add Alert) to be notified when actual breakout takes place.
>>> Pivots Settings section is where a manual timeframe/length can be set for the pivots as by Default it uses "Daily" timeframe. So, if want to experiment with more signals, but less accurate - a smaller timeframe can be set for Pivots Timeframe with smaller chart timeframe.
>>> Final section is simply the "Consolidation Stats" table location.
===========================================================================
Adding Alerts in TradngView
---------------------------------------------------------------------------
1) Consolidation alert(s) for the selected/checked symbols
- Select/check/find the desired symbols/instruments (when selecting symbols, make sure - they are from correct BROKER/SOURCE as pricing may differ between different brokers, causing confusion (under 1 broker/source, the symbol will be consolidated, under another it will not...))
-Right-click anywhere on any TradingView chart
-Click on Add alert
-Condition: Select this indicator by it’s name
-Immediately below, change it to "alert() function calls only"
-Expiration: Open-ended (that may require higher tier TradingView account, otherwise the alert will need to be occasionally re-triggered)
-Alert name: Whatever you desire
-Hit “Create”
-Note: If you change ANY Settings within the indicator – you must DELETE the current alert and create a new one per steps above, otherwise it will continue triggering alerts per old Settings!
* Once alert triggers, don't get confused, as it will show "Alert on SYMBOL", the SYMBOL will be where you created the major alert for all the symbols within the screener list! Within the alert, on the bottom, it will say: "EURUSD: Camarilla Pivots R3S3 Consolidation ALERT!" - this is where the correct symbol is for which the alert for consolidation was triggered!
---------------------------------------------------------------------------
2) Consolidation BREAKOUT alert(s)
-Right-click anywhere on any TradingView chart
-For the actual symbol (which got consolidated), open the chart (make sure timeframe is the same as with which "Consolidation alert(s)" were created prior), then Right-Click on the chart > Add Alert
-Click on Add alert
-Condition: Select this indicator by it’s name
-Immediately below, change it to "Consolidation BREAKOUT1"
-Expiration: Open-ended (that may require higher tier TradingView account, otherwise the alert will need to be occasionally re-triggered)
-Alert name: Whatever you desire
-Hit “Create”
* It will alert when a breakout occurs in any direction - once you open the chart for the symbol/instrument for which alert has occurred - you can immediately see into which direction the breakout occured, it will be marked on the chart with green/red triangle.
===========================================================================
If you have any questions or issues with the indicator, please message me directly via TradingView.
---------------------------------------------------------------------------
Good Luck! (NOTE: Trading is very risky, past performance is not necessarily indicative of future results, so please trade responsibly!)
DIY Custom Strategy Builder [ZP] - v1DISCLAIMER:
This indicator as my first ever Tradingview indicator, has been developed for my personal trading analysis, consolidating various powerful indicators that I frequently use. A number of the embedded indicators within this tool are the creations of esteemed Pine Script developers from the TradingView community. In recognition of their contributions, the names of these developers will be prominently displayed alongside the respective indicator names. My selection of these indicators is rooted in my own experience and reflects those that have proven most effective for me. Please note that the past performance of any trading system or methodology is not necessarily indicative of future results. Always conduct your own research and due diligence before using any indicator or tool.
===========================================================================
Introducing the ultimate all-in-one DIY strategy builder indicator, With over 30+ famous indicators (some with custom configuration/settings) indicators included, you now have the power to mix and match to create your own custom strategy for shorter time or longer time frames depending on your trading style. Say goodbye to cluttered charts and manual/visual confirmation of multiple indicators and hello to endless possibilities with this indicator.
What it does
==================
This indicator basically help users to do 2 things:
1) Strategy Builder
With more than 30 indicators available, you can select any combination you prefer and the indicator will generate buy and sell signals accordingly. Alternative to the time-consuming process of manually confirming signals from multiple indicators! This indicator streamlines the process by automatically printing buy and sell signals based on your chosen combination of indicators. No more staring at the screen for hours on end, simply set up alerts and let the indicator do the work for you.
Available indicators that you can choose to build your strategy, are coded to seamlessly print the BUY and SELL signal upon confirmation of all selected indicators:
EMA Filter
2 EMA Cross
3 EMA Cross
Range Filter (Guikroth)
SuperTrend
Ichimoku Cloud
SuperIchi (LuxAlgo)
B-Xtrender (QuantTherapy)
Bull Bear Power Trend (Dreadblitz)
VWAP
BB Oscillator (Veryfid)
Trend Meter (Lij_MC)
Chandelier Exit (Everget)
CCI
Awesome Oscillator
DMI ( Adx )
Parabolic SAR
Waddah Attar Explosion (Shayankm)
Volatility Oscillator (Veryfid)
Damiani Volatility ( DV ) (RichardoSantos)
Stochastic
RSI
MACD
SSL Channel (ErwinBeckers)
Schaff Trend Cycle ( STC ) (LazyBear)
Chaikin Money Flow
Volume
Wolfpack Id (Darrellfischer1)
QQE Mod (Mihkhel00)
Hull Suite (Insilico)
Vortex Indicator
2) Overlay Indicators
Access the full potential of this indicator using the SWITCH BOARD section! Here, you have the ability to turn on and plot up to 14 of the included indicators on your chart. Simply select from the following options:
EMA
Support/Resistance (HeWhoMustNotBeNamed)
Supply/ Demand Zone ( SMC ) (Pmgjiv)
Parabolic SAR
Ichimoku Cloud
Superichi (LuxAlgo)
SuperTrend
Range Filter (Guikroth)
Average True Range (ATR)
VWAP
Schaff Trend Cycle ( STC ) (LazyBear)
PVSRA (TradersReality)
Liquidity Zone/Vector Candle Zone (TradersReality)
Market Sessions (Aurocks_AIF)
How it does it
==================
To explain how this indictor generate signal or does what it does, its best to put in points.
I have coded the strategy for each of the indicator, for some of the indicator you will see the option to choose strategy variation, these variants are either famous among the traders or its the ones I found more accurate based on my usage. By coding the strategy I will have the BUY and SELL signal generated by each indicator in the backend.
Next, the indicator will identify your selected LEADING INDICATOR and the CONFIRMATION INDICATOR(s).
On each candle close, the indicator will check if the selected LEADING INDICATOR generates signal (long or short).
Once the leading indicator generates the signal, then the indicator will scan each of the selected CONFIRMATION INDICATORS on candle close to check if any of the CONFIRMATION INDICATOR generated signal (long or short).
Until this point, all the process is happening in the backend, the indicator will print LONG or SHORT signal on the chart ONLY if LEADING INDICATOR and all the selected CONFIRMATION INDICATORS generates signal on candle close. example for long signal, the LEADING INDICATOR and all selected CONFIRMATION INDICATORS must print long signal.
The dashboard table will show your selected LEADING and CONFIRMATION INDICATORS and if LEADING or the CONFIRMATION INDICATORS have generated signal. Signal generated by LEADING and CONFIRMATION indicator whether long or short, is indicated by tick icon ✔. and if any of the selected CONFIRMATION or LEADING indicator does not generate signal on candle close, it will be indicated with cross symbol ✖.
how to use this indicator
==============================
Using the indicator is pretty simple, but it depends on your goal, whether you want to use it for overlaying the available indicators or using it to build your strategy or for both.
To use for Building your strategy: Select your LEADING INDICATOR, and then select your CONFIRMATION INDICATOR(s). if on candle close all the indicators generate signal, then this indicator will print SHORT or LONG signal on the chart for your entry. There are plenty of indicators you can use to build your strategy, some indicators are best for longer time frame setups while others are responsive indicators that are best for short time frame.
To use for overlaying the indicators: Open the setting of this indicator and scroll to the SWITCHBOARD section, from there you can select which indicator you want to plot on the chart.
For each of the listed indicators, you have the flexibility to customize the settings and configurations to suit your preferences. simply open indicator setting and scroll down, you will find configuration for each of the indicators used.
I will also release the Strategy Backtester for this indicator soon.
Pivot Points [MisterMoTA]The Pivot Points indicator by MisterMoTA allow users to get pivots points calculated from last candle high, low and close on any timeframe from 1 minute to weekly.
This will help users that are trading ins small timeframes to see the pivots that are near their timeframes and not only daily timeframe.
Here is an example on the chart from nex image the timeframe is set to 1 minute and pivot points displayed are at 15 minutes :
The users have control on pivots colors, pivot labels colors, text color from labels, decimal numbers displayed in the labels and style of the pivots lines.
Please follow me for other script like this one.
Kind regards,
MisterMoTA
Double Tops & Bottoms [QuantVue]This indicator is designed to detect and plot Double Tops and Double Bottoms, by setting the initial high or low using standard pivot points.
Double Tops
A Double Top is a bearish reversal pattern, typically found when an uptrend returns back to a prior peak. It signifies a potential turning point or resistance level and could potentially reverse in direction.
The pattern is confirmed as a Double Top when the price breaks above the resistance level, but closes below it. A decisive close below this level is seen as a confirmation of the bearish trend.
Double Bottoms
A Double Bottom, on the other hand, is a bullish reversal pattern typically found after a downtrend. It signals a potential turning point or support level where the price has bottomed and could potentially reverse upwards.
The pattern is confirmed as a Double Bottom when the price breaks below the support level, but closes above it. A decisive close above this level is viewed as a confirmation of the bullish trend.
Indicator Features
🔹Double Top Detection: When a double top is identified, a downward-pointing triangle will be plotted above the bar, and if the alerts are enabled, a notification will be triggered.
🔹Double Bottom Detection: When a double bottom is identified, an upward-pointing triangle will be plotted below the bar, and if the alerts are enabled, a notification will be triggered.
🔹Pivot Lookback: Defines the number of bars to the left and right of the pivot that must be lower/higher to qualify as a pivot.
🔹Maximum Length Between Tops/Bottoms: Maximum number of bars between two tops/bottoms to be considered a double top or bottom.
🔹Style Settings: Allows the user to customize the appearance of the lines indicating the tops/bottoms. Options include color selection, line style (dotted, dashed, or solid), and line thickness.
🔹Alerts: The user can enable or disable alerts for Double Top and Double Bottom.
Give this indicator a BOOST and COMMENT your thoughts!
We hope you enjoy.
Cheers!
CPR UJHi i am UJ, This is Central Pivot Level which includes Daily , Weekly , Monthly Range You have to choose the range in indicator setting.
Upper red line is resistance , Lower green line is support you can buy if resistance broken , sell if support is broken go with price action or SMC confirmation which ever strategy you use indicator only indicates it wont work 100% , your accuracy will improve if you combine indicator with strategy.
Liquidity Concepts [BigBeluga]The Liquidity Concepts indicator is designed to represent the liquidity on the chart using pivot points as potential stop-losses / liquidity grabs.
The indicator is facilitated by a market structure detector and pivot points to identify resting liquidity / stop-loss levels.
A liquidity grab or a stop-loss hunt is when retail traders place their stop-loss orders at recent highs / most recent highs or lows. This is a spot where big players attempt to push the market to trigger all the stop-loss orders and gain a better entry in their favor.
🔶 CALCULATION
The indicator uses the Higher Lower script made by @LonesomeTheBlue to determine these pivot points. When a pivot point is formed, it is displayed on the chart with the corresponding symbol (HH - HL - LH - LL). When one of these points is broken, a line is drawn between the pivot point and the candle that broke it.
A liquidity grab is only recognized after it has occurred, and it is represented with a box showing all the candles that were involved in the sweep / stop-loss hunt.
A pivot point is established only after the selected lookback period and cannot be printed beforehand in any manner. This ensures that it captures the highest point within the lookback period following the candle formation.
An HL (Higher Low) point is established when it is lower than an HH (Higher High) point, whereas an LH (Lower High) point is established when it is higher than an LL (Lower Low) point.
Boxes are formed in two different types: Major and Minor.
- Major boxes occur when LH or HL points are breached, with their high or low point crossing above or below in the specific lookback period.
- Minor boxes occur when HH or LL points are breached, with their high or low point crossing above or below in the specific lookback period.
Minor points are less efficient since they represent key highs and lows, and before taking out those liquidity levels, the HL and LH points should be cleared.
Representation of Pivot Point Formation:
Liquidity wicks are a minor representation of a stop-loss hunt during the retracement of a pivot point. This means that a pivot point is broken only by the wick and not by the entire body.
Bigger wick = more liquidity
Lower wick = less liquidity
Liquidity wicks can be used as trade confirmation or targets for your entry to enhance accuracy.
Users have the option to display candle coloring based on the currently detected trend.
🔶 VERIFICATION
Users have the option to specify the verification length for when the liquidity should occur. This means that if the length is set to 7, the indicator will search for the liquidity formation within the last 7 candles; otherwise, it will be considered invalid.
🔶 CONCEPTS
The whole idea is to help find possible zone of stop loss hunting helping having a better entry in our trading, we can utilize a lot more tools, and this shoud be used as confluence only
🔶 OPTIONS
Users have complete control over the settings, allowing them to:
- Disable pivot points.
- Disable the display of boxes.
- Disable liquidity wicks.
- Customize colors to their preferences.
- Adjust lookback settings for historical data analysis.
- Modify candle coloring settings.
- Adjust the text size of labels for better readability and customization.
🔶 RECAP
Box => Represents liquidity formation / stop-loss hunt
- Minor Box HH / LL point
- Major Box LH / HL point
Liquidity Wicks => Formed when a pivot point is broken only by the wick
BOS / CHoCH => Calculated using the pivot points from the @LonesomeTheBlue script
🔶 RELATED SCRIPTS
Price Action Concepts =>
The Next Pivot [Kioseff Trading]Hello!
This script "The Next Pivot" uses various similarity measures to compare historical price sequences to the current price sequence!
Features
Find the most similar price sequence up to 100 bars from the current bar
Forecast price path up to 250 bars
Forecast ZigZag up to 250 bars
Spearmen
Pearson
Absolute Difference
Cosine Similarity
Mean Squared Error
Kendall
Forecasted linear regression channel
The image above shows/explains some of the indicator's capabilities!
The image above highlights the projected zig zag (pivots) pattern!
Colors are customizable (:
Additionally, you can plot a forecasted LinReg channel.
Should load times permit it, the script can search all bar history for a correlating sequence. This won't always be possible, contingent on the forecast length, correlation length, and the number of bars on the chart.
Reasonable Assessment
The script uses various similarity measures to find the "most similar" price sequence to what's currently happening. Once found, the subsequent price move (to the most similar sequence) is recorded and projected forward.
So,
1: Script finds most similar price sequence
2: Script takes what happened after and projects forward
While this may be useful, the projection is simply the reaction to a possible one-off "similarity" to what's currently happening. Random fluctuations are likely and, if occurring, similarities between the current price sequence and the "most similar" sequence are plausibly coincidental.
That said, if you have any ideas on cool features to add please let me know!
Thank you (:
Pivot Point SuperTrend Strategy +TrendFilterIn the dynamic world of financial markets, traders are always on the lookout for innovative strategies to identify trends and make timely trades. The "Pivot Point SuperTrend strategy +TrendFilter" has emerged as an intriguing approach, combining two popular indicators - Pivot Points and SuperTrend, while introducing an additional trend filter for added precision. This strategy draws inspiration from Lonesome TheBlue's "Pivot Point SuperTrend" script, aiming to provide traders with a reliable tool for trend following while minimizing false signals.
The Core Concept:
The strategy's foundation lies in the fusion of Pivot Points and SuperTrend indicators, and the addition of a robust trend filter. It begins by calculating Pivot Highs and Lows over a specified period, serving as crucial reference points for trend analysis. Through a weighted average calculation, these Pivot Points create a center line, refining the overall indicator.
Next, based on the center line and the Average True Range (ATR) with a user-defined Factor, upper and lower bands are generated. These bands adapt to market volatility, adding flexibility to the strategy. The heart of the "Pivot Point SuperTrend" strategy lies in accurately identifying the prevailing trend, with the indicator smoothly transitioning between bullish and bearish signals as the price interacts with the SuperTrend bands.
The additional trend filter introduced into the strategy further enhances its capabilities. This filter is based on a moving average, providing a dynamic assessment of the trend's strength and direction. By combining this trend filter with the original Pivot Point SuperTrend signals, the strategy aims to make more informed and reliable trading decisions.
Advantages of "Pivot Point SuperTrend" with Trend Filter:
1. Enhanced Precision: The incorporation of a trend filter improves the strategy's accuracy by confirming the overall trend direction before generating signals.
2. Trend Continuation: The integration of Pivot Points and SuperTrend, along with the trend filter, aims to prolong trades during strong market trends, potentially maximizing profit opportunities.
3. Reduced Whipsaws: The strategy's weighted average calculation, coupled with the trend filter, helps minimize false signals and reduces whipsaws during uncertain or sideways market conditions.
4. Support and Resistance Insights: The strategy continues to provide additional support and resistance levels based on the Pivot Points, offering valuable contextual information to traders.
Pivot Point Trend LineThis Indicator simply draw lines between high pivot points and low points.
in the code by default its used tradingview default ta.pivothigh and ta.pivotlow function to get the high and low points.
it will generate recent 4 lines of high and low pivot points.
you can change the no of days for both highs and lows pivot points.
this script is not generating any buy or sell signals its just autodraw and connect 2 pivot points. so you dont have to do it manually.
HTF Liquidity Dashboard [TFO]The purpose of this indicator is to server as a multi-symbol scanner that indicates when user-defined symbols have exceeded their previous Day/Week/Month highs and lows.
By default, the dashboard will use a compact view where the green ✔ means that price has swept and is currently exceeding the level of interest, the red ❌ implies that price swept the level but reversed back into the original range, and - indicates that the level hasn't been reached. However, the dashboard text can be toggled to show the numerical values of the highs and lows instead of these compact strings, as shown in the following image.
These levels may be shown and customized on the current chart as well via the Show Levels option. By default, levels from the selected timeframes will initially be plotted as black, and will change to red once traded through. Users can optionally increase the Session Limit parameter to show more than one previous high/low on their chart, for each selected timeframe.
Optionally, we can also plot labels to show when any of the user-defined symbols have exceeded their respective highs and lows, for any of the selected timeframes. Alerts can be created for these events as well; simply select the desired symbols and timeframes, create a new alert using this indicator, and you should be alerted when highs and lows are traded through. Note: if you encounter any issues with duplicate alerts, try deleting the alert, navigating to a lower timeframe such as the 1m, and making a new alert.
Daily Range Support & Resistance Levels [QuantVue]The Daily Range Support & Resistance Levels is an advanced analytical tool designed to assess daily price movements and provide potential support and resistance levels.
This tool examines the average daily price fluctuations over the past 150 trading days, and creates support and resistance levels based on the opening price.
The indicator also considers a standard deviation multiplier.
This enables traders and investors to identify potential price zones.
The support and resistance levels are dynamically updated every day.
Users can also choose to view previous daily levels as well.
Customizable settings for this tool include:
-Averaging Period: Adjust the number of days to calculate the average daily range.
-Standard Deviation Multiplier: Modify the standard deviation multiplier to fine-tune the sensitivity of the support and resistance levels. A higher multiplier will result in wider levels, accommodating higher price fluctuations.
-Toggle Support & Resistance Prices: Easily switch on or off the display of support and resistance price levels.
-Show Daily Open Line: Display the daily opening price as a reference point on the chart.
-Show Previous Levels: Choose whether to display past daily support and resistance levels.
Note: this indicator works best on 5 or 15 minute charts.
Give this indicator a BOOST and COMMENT your thoughts!
We hope you enjoy.
Cheers.
CoinFxPro Range indicator V 1.0This indicator has a structure that combines daily and weekly pivot levels, moving averages, and strength index-linked oscillators. The purpose of the indicator is designed to analyze price movements and identify potential trend reversals. Daily pivot levels are helpful in identifying critical support and resistance zones, while moving averages and oscillators indicate overbought or oversold situations in the price.
It is very simple to use and simple in appearance.
Triangular Signals appearing on the chart screen come when the price touches the daily or weekly support and resistance levels.
If you want the signals to be received less or more healthy, I added the filtering feature. In this way, you can filter the incoming signals through the volume or volatility filter, so that less signals are received.
On the other hand, the 4 timeframe rsi values of the price for daily use of the indicator are also given in the table.
You can change the RSI timeframes as you wish.
In this way, it is seen more clearly whether the signal is healthy and provides convenience while trading.
Evaluation of incoming signals;
First of all, when the signal occurs, pay attention to whether the RSI values that occur in the timeframe you trade and in other timeframes are overbought (red) or oversold (green).
When the signal comes, I buy or sell, especially if the RSI values in the 5 minutes, 15 minutes and 1 hour time periods are overbought or oversold.
If you wish, you can try a different strategy for yourself.
After the healthiest of the signals on the chart comes, the RSI values are also at overbought or oversold levels in 5-15 minutes and 1 hour timeframes and if there is a Trendline line above or below the price, it is out of that region.
A healthy buying or selling transaction can be made.
It should be noted that since risk = return, high risk means high return. High risk must be taken for high returns. Therefore, I recommend that you do not exceed 10% of your capital as margin when trading with leverage.
When trading, I always recommend trading with additional confirmation from a different indicator.
I also added a filtering feature to the indicator to block market structure related variables. Those who want to use can also use filtering.
I have added the automatic trendline for ease of trading. You can increase or decrease the number of trend lines as you wish.
I just published the indicator for daily use.
Pivots Support Resistance ZoneThis simple script base on function of Pivot High Low to plot Support and Resistance Zone on chart with detail as below:
1. Support Zone
+ New Pivot Low is plotted
+ New Pivot Low lower previous Pivot Low
+ Upper Line of Support Zone is previous Pivot Low
+ Lower Line of Support Zone is new Pivot Low
2. Resistance Zone
+ New Pivot High is plotted
+ New Pivot High higher previous Pivot High
+ Upper Line of Resistance Zone is new Pivot High
+ Lower Line of Resistance Zone is previous Pivot High
Price Legs: Average Heights; 'Smart ATR'Price Legs: Average Heights; 'Smart ATR'. Consol Range Gauge
~~ Indicator to show small and large price legs (based on short and long input pivot lengths), and calculating the average heights of these price legs; counting legs from user-input start time ~~
//Premise: Wanted to use this as something like a 'Smart ATR': where the average/typical range of a distinct & dynamic price leg could be calculated based on a user-input time interval (as opposed to standard ATR, which is simply the average range over a consistent repeating period, with no regard to market structure). My instinct is that this would be most useful for consolidated periods & range trading: giving the trader an idea of what the typical size of a price leg might be in the current market state (hence in the title, Consol Range gauge)
//Features & User inputs:
-Start time: confirm input when loading indicator by clicking on the chart. Then drag the vertical line to change start time easily.
-Large Legs (toggle on/off) and user-input pivot lookback/lookforward length (larger => larger legs)
-Small Legs (toggle on/off) and user-input pivot lookback/lookforward length (smaller => smaller legs)
-Display Stats table: toggle on/off: simple view- shows the averages of large (up & down), small (up & down), and combined (for each).
-Extended stats table: toggle on/off option to show the averages of the last 3 legs of each category (up/down/large/small/combined)
-Toggle on/off Time & Price chart text labels of price legs (time in mins/hours/days; price in $ or pips; auto assigned based on asset)
-Table position: user choice.
//Notes & tips:
-Using custom start time along with replay mode, you can select any arbitrary chunk of price for the purpose of backtesting.
-Play around with the pivot lookback lengths to find price legs most suitable to the current market regime (consolidating/trending; high volatility/ low volatility)
-Single bar price legs will never be counted: they must be at least 2 bars from H>>L or L>>H.
//Credits: Thanks to @crypto_juju for the idea of applying statistics to this simple price leg indicator.
Simple View: showing only the full averages (counting from Start time):
View showing ONLY the large legs, with Time & Price labels toggled ON:
lib_zigLibrary "lib_zig"
Object oriented implementation of ZigZag
method tostring(this, date_format)
Namespace types: Zigzag
Parameters:
this (Zigzag)
date_format (simple string)
method update(this)
Namespace types: Zigzag
Parameters:
this (Zigzag)
method draw(this, colors)
Namespace types: Zigzag
Parameters:
this (Zigzag)
colors (PivotColors type from robbatt/lib_pivot/19)
Zigzag
Fields:
max_pivots (series__integer)
hldata (|robbatt/lib_pivot/19;HLData|#OBJ)
pivots (array__|robbatt/lib_pivot/19;Pivot|#OBJ)
lib_pivotLibrary "lib_pivot"
Object oriented implementation of Pivot methods.
method tostring(this)
Converts HLData to a json string representation
Namespace types: HLData
Parameters:
this (HLData) : HLData
Returns: string representation of Pivot
method tostring(this, date_format)
Namespace types: Pivot
Parameters:
this (Pivot)
date_format (simple string)
method tostring(this, date_format)
Namespace types: Pivot
Parameters:
this (Pivot )
date_format (simple string)
method get_color(this, mode)
Namespace types: PivotColors
Parameters:
this (PivotColors)
mode (int)
method get_label_text(this)
Namespace types: Pivot
Parameters:
this (Pivot)
method direction(this)
Namespace types: Pivot
Parameters:
this (Pivot)
method same_direction_as(this, other)
Namespace types: Pivot
Parameters:
this (Pivot)
other (Pivot)
method exceeds(this, price)
Namespace types: Pivot
Parameters:
this (Pivot)
price (float)
method exceeds(this, other)
Namespace types: Pivot
Parameters:
this (Pivot)
other (Pivot)
method exceeded_by(this, price)
Namespace types: Pivot
Parameters:
this (Pivot)
price (float)
method exceeded_by(this, other)
Namespace types: Pivot
Parameters:
this (Pivot)
other (Pivot)
method retracement_ratio(this, lastPivot, sec_lastPivot)
Namespace types: Pivot
Parameters:
this (Pivot)
lastPivot (Pivot)
sec_lastPivot (Pivot)
ratio_target(sec_lastPivot, lastPivot, target_ratio)
Parameters:
sec_lastPivot (Pivot)
lastPivot (Pivot)
target_ratio (float)
method update(this, ref_highest, ref_lowest)
Namespace types: HLData
Parameters:
this (HLData)
ref_highest (float)
ref_lowest (float)
method update(this, bar_time, bar_idx, price, prev)
Namespace types: Pivot
Parameters:
this (Pivot)
bar_time (int)
bar_idx (int)
price (float)
prev (Pivot)
method create_next(this, bar_time, bar_idx, price)
Namespace types: Pivot
Parameters:
this (Pivot)
bar_time (int)
bar_idx (int)
price (float)
HLData
HLData wraps the data received from ta.highest, ta.highestbars, ta.lowest, ta.lowestbars, as well as the reference sources
Fields:
length (series int) : lookback length for pivot points
highest_offset (series int) : offset to highest value bar
lowest_offset (series int) : offset to lowest value bar
highest (series float) : highest value within lookback bars
lowest (series float) : lowest value within lookback bars
new_highest (series bool) : update() will set this true if the current candle forms a new highest high at the last (current) bar of set period (length)
new_lowest (series bool) : update() will set this true if the current candle forms a new lowest low at the last (current) bar of set period (length)
new_highest_fractal (series bool) : update() will set this true if the current candle forms a new fractal high at the center of set period (length)
new_lowest_fractal (series bool) : update() will set this true if the current candle forms a new fractal low at the center of set period (length)
PivotColors
Pivot colors for different modes
Fields:
hh (series color) : Color for Pivot mode 2 (HH)
lh (series color) : Color for Pivot mode 1 (LH)
hl (series color) : Color for Pivot mode -1 (HL)
ll (series color) : Color for Pivot mode -2 (LL)
Pivot
Pivot additional pivot data around basic Point
Fields:
point (Point type from robbatt/lib_plot_objects/5)
mode (series int) : can be -2/-1/1/2 for LL/HL/LH/HH
price_movement (series float) : The price difference between this and the previous pivot point in the opposite direction
retracement_ratio (series float) : The ratio between this price_movement and the previous
prev (Pivot)
Pivot HL Trading SetupThis simple script base on function of Pivot High Low to plot Trading Setup on chart with detail as below:
2. Trading Setup
2.1 Buy setup
+ New Pivot Low is plotted
+ Entry Long at market price.
+ Stoploss at Pivot Low
+ Takeprofit at Pivot High
+ Buy setup invalidation when price crossed Pivot High or Pivot Low
2.1 Sell setup
+ New Pivot High is plotted
+ Entry Short at market price.
+ Stoploss at Pivot High
+ Takeprofit at Pivot Low
+ Sell setup invalidation when price crossed Pivot High or Pivot Low
[MAD] Support / ResistanceSupport/Resistance - Multi-Timeframe Data Plotter
This Pine Script indicator provides users with the ability to analyze various technical indicators, including Bollinger Bands, Simple Moving Averages (SMA), Exponential Moving Averages (EMA), and Pivot Points, across different timeframes. It visually represents these indicators on the chart, allowing for comprehensive analysis.
Key Features:
Bollinger Bands: The indicator supports 6 different timeframes for Bollinger Bands. Users can customize the length of the Bollinger Bands for each timeframe and choose whether to display levels and plots.
Simple Moving Averages (SMA): The indicator supports 4 different timeframes for SMAs. Users can define custom lengths for the SMAs and choose which ones to display on the chart or in the S/R Screen.
Exponential Moving Averages (EMA): Similar to SMAs, the indicator supports 4 different timeframes for EMAs. Users can define custom lengths for the EMAs and choose which ones to display on the chart or in the S/R Screen.
Pivot Points: The indicator supports 4 different timeframes for Pivot Points. Users can choose between Traditional and Fibonacci calculation methods and customize the appearance of the pivot levels.
Global Switches: Users have the option to enable or disable the display of pivots, Bollinger Bands, SMAs, EMAs, open/close/high/low values, horizon plot, and VPR-style plot (weighted Gaussian addition).
Plot Limitation: Users can limit the plotting of support and resistance lines by specifying a percentage up/down.
This indicator offers extensive customization and flexibility, allowing users to analyze the market using these technical indicators across multiple timeframes.
Please refer to this screenshot for an overview of all available settings:
Additionally, the indicator includes a multiplot-chartselect feature to address the limitation of 32 data streams with colors. This feature enables the selection of 10 SMAs or EMAs from different timeframes, along with 3 timeframes of Bollinger Bands and the daily open/close values, all in a single packed indicator. Here is an example of how the data can be displayed:
Enabling all features simultaneously may result in visual overload. However, for users who wish to view specific indicators, this indicator provides all the necessary options. Please refer to this screenshot for an example of various indicators displayed:
To enhance visibility, all lines are weighted, and line and label positions can be dynamically shifted based on these weights.
Price Action Box RetracementsThe Price Action Box Retracements Indicator offers a fresh perspective on price analysis, departing from the conventional fixed-length lookback period commonly used in trading indicators. This indicator embraces a more flexible and adaptable approach, taking into account changes in price action behavior and avoiding overfitting. With a design philosophy rooted in the principle of "Keep it simple, stupid!" (KISS), this indicator allows users to customize just one variable: Price Box Size.
Imagine the price action as a journey within a box or channel, defined by significant pivots from the past that act as support and resistance levels. The Price Action Box Retracements Indicator visualizes the midpoints between these pivots, representing half-point retracements. By adjusting the "Price Box Size" variable, users can select the size of the price action box that the script will identify on the chart. A larger value will look for a larger box/channel, meaning the price will stay within it for a longer duration. Think of it as switching to a slower timeframe without changing the chart resolution.
The indicator plots a median line within the price action box, which changes color based on the position of the price action within the box. When the price action is trading below the median, the line is displayed in red, indicating a potential for short entries. Conversely, when the price action is above the box median, the line turns green, suggesting opportunities for long entries. An orange color is used when the price action breaks outside the box, signaling the start of a new trend or a measured move where the box size is expected to double.
Sudden changes in the median location are crucial signals that the price action has broken outside its previous box and created a new one. Usually, the price action will attempt to return back and test its old box boundaries or median (support/resistance) before continuing further. If the new box is positioned above the previous one, it indicates an upward channel (uptrend), while a box below the previous one suggests a descending channel (downtrend). A flat median line represents a ranging market, where the price action lacks a clear directional bias.
In addition to the median plot, the script also offers a pivot-anchored moving average, assisting traders in identifying smaller trends and potential entry points within a larger price action box.
Experience a new approach to price analysis with the Price Action Box Retracements Indicator and enhance your trading strategies with simplicity and flexibility.