(mab) DivergencesThis overlay indicator detects divergences between price movement and a number of price, volume and combined price-volume indicators.
In contrast to other scripts which can detect divergences, this indicator re-evaluates the status of each divergence at every confirmed candle. Divergences are potential when they are first detected. They can later be confirmed if the indicator value crosses the confirmation level. They can be invalidated before or after confirmation if the indicator value crosses the invalidation level.
Potential divergences are good bullish or bearish signals. However, confirmed divergences are much more significant and powerful. Invalidated divergences on the other hand shouldn't be considered as any signal anymore, that's why the are removed from the display by default.
The chart below illustrates confirmation and invalidation levels.
Bullish divergences:
- Potential bullish divergence: Price in downtrend making a lower low (pivot point D lower than pivot point B) while the indicator makes a higher low (pivot point D higher than pivot point B)
- Confirmed bullish divergence: The indicator value moves above the previous high (indicator value E higher than confirmation level C)
- Invalidated bullish divergence: The indicator value moves below the previous low (indicator value lower than invalidation level D). Divergences can be invalidated at any point, before or after
confirmation.
Bearish divergences:
- Potential bearish divergence: Price in uptrend making a higher high (pivot point D higher than pivot point B) while the indicator makes a lower high (pivot point D lower than pivot point B)
- Confirmed bearish divergence: The indicator value moves below the previous low (indicator value E lower than confirmation level C)
- Invalidated bearish divergence: The indicator value moves above the previous high (indicator value higher than invalidation level D). Divergences can be invalidated at any point, before or after
confirmation.
Divergences for the following price and volume indicators are implemented:
- MACD , Moving Averages Convergence Divergence, modified default configuration
- RSI , Relative Strength Index
- MMF, (mab) Money Flow , my proprietary money flow index using price and volume data and a formula similar to RSI
- MVI , (mab) Volume Index, my proprietary volume index using a formula similar to RSI
- Willy, a Williams %R, modified default configuration
- SqzMom, Squeeze Momentum, the momentum indicator of Squeeze Pro (John Carter)
- CMF , Chaikin Money Flow
- MFI , Money Flow Index
- OBV, On-balance Volume
V 0.9
© happymab
Livelli e punti pivot
Mastering Market Structure"Market structure first, always" - Mr. Anderson aka TrueCrypto28 right before he went on to master Kung-Fu
Understanding and identifying market structure is essential for successful and consistent profitability. No system is perfect, but trading in the direction of the prevailing market structure can reduce the likelihood of being caught severely offsides and can yield trades with tighter invalidations and greater risk-to-reward potential.
This script will automatically identify and plot the following:
Market Structure
Pivot highs and lows using the lookback left and right lengths are analyzed to identify major swing highs and lows to identify the current trading range.
Bullish structure is characterized by a series of higher highs and higher lows.
Bearish Structure is characterized by lower highs and lower lows.
Structure breaks when a bar closes outside the current trading range. Major swing highs and lows will update following these breaks to continue following the current price action
Current market structure bias, bullish or bearish, can be displayed in a table in the location of your choosing.
Structure is fractal, so seeing low time frame structure shift against the high time frame structure can identify the beginning of a pullback. When it realigns with the high timeframe structure, it can identify the beginning of the high time frame trend continuation. You can choose to analyze structure on any timeframe with this script and even add multiple copies of it to your chart each analyzing different a timeframes to easily find high quality trade opportunities.
Fibonacci Levels of the current trading range
These are included to help identify areas of interest for trade execution and profit levels.
We want to buy at a discount and sell at a premium. The "Wholesale Zone" can be considered below the 50% retracement level in bullish structure, or above it in a bearish structure.
When in a bullish structure, "discount" buy opportunities can be found below the 50% retracement level with the expectation of trend continuation.
In a bearish structure, more ideal "premium' sell opportunities can be found above the 50% retracement with the expectation of trend continuation.
Optimal trade entry (OTE) zone, between the 61.8% and 78.6% retracement can offer a great risk-to-reward ratio for execution of a new position in trending environments.
When trading sideways in a range, opening new buy positions near the bottom of the range or new sell positions from the top of the range are preferred. Midrange 50% level commonly sees some reaction and can be used as a primary target with further targets either being the opposite end of the range or lower support levels (see order block section).
Order Blocks
New Bullish and bearish order blocks are created and plotted with every respective market structure break. They identify the price level from which the most recent leg of price action that yielded the structure break began.
In strong trending environments, these levels should continue to support or resist price. They are great areas to look to enter new positions.
Order blocks can also be used as targets for your trades to avoid giving back unrealized profits as price tends to react off of these levels.
To keep your chart clean and the order blocks relevant, an order block will be automatically deleted if price trades through and closes beyond it. Otherwise, printed order blocks will remain on your chart until either it's origin bar is out of TradingView's maximum bar history allowance or their maximum box count allowance.
Pairing these with fibonacci levels, retracements into order blocks that are in the Wholesale Zone or even the OTE zone offer higher probability trades with more favorable risk-to-reward potential.
Swing Failure
Swing failure patterns (SFPs) arise when a candle takes out a swing high or low, but fails to close beyond it.
Again, pairing these with other features of this script like range boundaries, wholesale zones, OTE zones, and order blocks can help traders identify the best times to actually execute their trade as SFPs are commonly seen at points of inflection in price action.
Moving Averages
Up to 4 moving averages from the current time frame are available. MA type and lengths can be adjusted to your preference.
Up to 4 MTF MAs. By Default this is an EMA 200 as it is commonly used for trend identification and support/resistance.
These are included for confluence of trend direction and strength.
They can also act as dynamic support and resistance and so can be useful for trade execution if price bounces or rejects off of them or targets as price may do so when it reaches them.
Additionally, alerts have been coded for the following scenarios:
MS Break alerts will trigger on bar close when a break in market structure has been confirmed.
SFP alerts will trigger on bar close when the swing failure pattern has been confirmed.
Entering OB alerts will trigger as soon as price touches the closest order block.
Entering Wholesale Zone alerts will trigger as soon as price cross the 50% retracement level. This can be used as an early alert to identify assets that have undergone a significant pullback before potential continuation in the direction of the main trend.
Entering OTE Zone alerts will trigger as soon as price crosses into the Optimal Trade Entry zone between the 61.8% and 78.6% retracement.
This script is unique in the way that it tracks market structure, automatically updates as price action continues to develop, presents high quality areas of interest, and SFPs for trend reversal and continuation. Traders will no longer need to constantly monitor their charts or exhaustively update their alerts to find good trade opportunities. This script takes care of all of it automatically. Collectively, all of the included features can be used to build a complete trading system.
Auto Fibo Multi Timeframe [Misu]█ This indicator shows a Multi Timeframe automatic Fibonacci retracement levels.
This indicator is built using pivots from a user-selected timeframe to draw and orient the Fibonacci retracement.
Fibonacci analysis uses a logical sequence of numbers to predict trends and price action.
█ Usages:
The Fibonacci retracement is used to identify hidden support and resistance levels that an investor can use for entry, exit, and stop placement.
Depending on your usage, you can track breakouts above and below retracement levels to provide early entry points for major breakouts and breakdowns.
Higher timeframe Fibs allow you to have more relevant and weighted signals.
█ Features:
Choose Timeframe
Choose Fib levels
Color Fib Levels Individually
Color Fib Levels all in one
█ Parameters:
Timeframe: The Timeframe chosen.
Left Bars: A parameter used to calculate pivots.
Right Bars: A parameter used to calculate pivots.
UI Settings: Select Fibs levels and colors.
SPY to ES or QQQ to NQThis indicator is used to automatically map SPY VWAP and 10 levels of your choice to ES / MES or map QQQ VWAP and 10 levels of your choice to NQ / MNQ . Since SPY and QQQ have the same price action as their futures iteration, there seems to a direct correlation between their levels and VWAP. This indicator is made to easily map the key levels of your choice to the appropriate futures instrument.
Daily Profile (Nephew_Sam_)From getting several requests to combine many of my indicators into one, this indicator plots everything you need for a Daily Profile.
1. Session = Current session + Daily dividers + day of the week
2. Open Lines = Plot the open of the day, midnight, week and month
3. Asian Range = Plots the asian range with an option for midpoint and extending lines
4. Previous OHLC = Plot the previous day/week/month OHLC
EVERY line/label/color/size/style is fully customizable in this indicator.
Important to adjust your timezone to get the correct data
Quarter Theory LevelsQuarter Theory Levels is a script that will create level lines based on major round numbers and spilt those levels into half and quarter ranges. This tool is intended to help traders see major levels that price will likely react to in the future.
The Script is inspired by Quarters Theory.
Round Number LevelsQuick Script to mark out round number levels. These levels often become reversal points or where the next price range will develop. This script is intended to be a tool to aid along with additional trading strategies.
SQueezeVergenceThis is my SQueezeVergence indicator. It fires Buy and Sell signals based on squeeze momentum and trend. **It also creates Bull and Bear signals based on MACD divergence which should only be used as areas of support and resistance being as these signals repaint based on a 5 candle look back of pivots.** All settings are editable for better use. The default settings are what I use on the 1 Minute chart of ES to scalp. This is a simple indicator to help me get alerts on when I need to scalp. The divergence signals work well for areas of significance. I like to watch for breaks of these levels along with support and resistance. I hope this helps.
Pivot mtf semaphore support&resistance [LM]Hello Traders,
I would like to introduce you pivot semaphore mtf support&resistance levels. The idea is the same as my other S/R scripts to have a look at the important levels. The Semaphore is used to spot future multi-level Supports and Resistance zones. It is also useful to spot HL or LL or HH or LH zones. The script is based on amazing work of @LucF so really big thanks for your work on mtf line offsetting.
It has three settings:
First two settings are for higher timeframes
Third setting is setting for pivots on current timeframe
!!!! Very important is there is limitation in pinescript how many candles you can look back(4999) if you choose timeframes that are very distant from each other there is a chance that those lines won't show up
Hopefully you will enjoy
Cheers, Lukas
Economic Calendar Events: FOMC, CPI, and moreThis script plots major events from the Economic Calendar that often correspond to major pivot points in various markets. It also includes built-in logic to retroactively adjust larger time intervals (i.e. greater than 1 hour) to be correctly aligned with the interval during which the event occurred.
Events are taken from the Economic Calendar and will be updated periodically at the following library:
The above library can be used to conveniently access date-related data for major Meetings, Releases, and Announcements as integer arrays, which can be used in other indicators. Currently, it has support for the following events:
FOMC Meetings
The FOMC meets eight times a year to determine the course of monetary policy. The FOMC's decisions are based on a review of economic and financial developments and its assessment of the likely effects of these developments on the economic outlook.
FOMC Minutes
The FOMC minutes are released three weeks after each FOMC meeting. The minutes provide a detailed account of the FOMC's discussion of economic and financial developments and its assessment of the likely effects of these developments on the economic outlook.
Producer Price Index (PPI) Releases
The Producer Price Index (PPI) measures changes in the price level of goods and services sold by domestic producers. The PPI is a weighted average of prices of a basket of goods and services, such as transportation, food, and medical care. PPI is a leading indicator of CPI.
Consumer Price Index (CPI) Releases
The Consumer Price Index (CPI) measures changes in the price level of goods and services purchased by households. The CPI is a weighted average of prices of a basket of consumer goods and services, such as transportation, food, and medical care. CPI is one of the most widely used measures of inflation.
Consumer Sentiment Index (CSI) Releases
The University of Michigan's Consumer Sentiment Index (CSI) is a measure of consumer attitudes about the economy. The CSI is based on a monthly survey of U.S. households and reflects the consumers' assessment of present and future economic conditions. The CSI is a leading indicator of consumer spending, which accounts for about two-thirds of U.S. economic activity.
Consumer Confidence Index (CCI) Releases
The Consumer Confidence Index is a survey that measures how optimistic or pessimistic consumers are regarding their expected financial situation.
Non-Farm Payroll (NFP) Releases
The Non-Farm Payroll (NFP) is a measure of the change in the number of employed persons, excluding farm workers and government employees. The NFP is a leading indicator of consumer spending, which accounts for about two-thirds of U.S. economic activity.
PivotsSimply plots pivots found on any timeframe based on length specified.
Supports other timeframes, you choose to display gaps or not, with gaps on the labels may disappear so keep that in mind.
Converging Pullbacks and PeaksMulti Timeframe Converging Lines Indicator. Using the highest/lowest Values at 2 different lengths. Convergence created by taking the highest/lowest value and subtracting/adding the # of barssince the highest/lowest bar was set multiplied by the price multiplied by the float. Curves are created from averaging out the emas of the center lines of the extremeties.
Helps show trendlines automatically most of the time but can be tweaked by changing the floats or Fast/Slow lengths to you liking.
Rabi Pivot High LowIt is used to buy and sell in Stock Market NSE. It can also be used to Trail the SL to gain more profit or limit the loss.
Discipline is important in following the levels. If followed the levels properly, you will never be in loss in overall trade setup.
Dealar VIX Implied Range + Retracement LevelsThis Implied range Is derived by the VIX(1 sd annual +/- Implied move.)
This Indicator plots the daily Implied range, A lot of quantitative trading firms/ MM firms hedge their delta & gamma exposure around the Implied range(prop calc). I have added retracement levels as well, so you have more pivot levels.
Enjoy!
Visual Range Quarter Points [dasanc]Introduction
This tool can be used in multiple ways:
explore a Symbol's historical volatility for DCA and Grid trading strategies.
combine with Order Blocks as confluence before entering trades
intra-trade management - partial exits and moving SL into profits
Features
Draw Quarter Point levels on chart based on the visible range. Interval between levels is automatically calculated by default to have ~10 levels on chart.
As you scroll through the chart or change timeframes, the interval and levels are updated.
Change the color, width of levels as a percentage of the interval, and draw additional levels as needed.
Choose to display a dashboard with relevant information on levels:
Price range - High and Low on visible range
Interval - display as Currency or PIPs for Forex pairs
Number of Levels drawn
-Cheers, DasanC
OHLC-TablesENGLISH VERSION
The command shows the opening-high-low-closing-change values of that day based on the previous value in each period.
You can set the clock in any time zone you want.
You can use the indicator by adapting it wherever you want on your screen. You can adjust its position. Top-Left-Middle Left- Bottom Left/ Top Right-Middle Right- Bottom Right.
Although it is not a command with a Buy-Sell indicator, its user-friendliness and convenience were taken into account while developing it.
The purpose of the indicator is to allow you to consider the values while focusing not only on the chart you are watching.
ADR - Average Daily Range RobertsFXThe most overlooked indicator in trading. Average daily range shows you how far the price will move today if moved as on average. It's a great tool to calculate take profits to close within the same day.
ADR - Average Daily Range RobertsFXThe most overlooked but powerful indicator makes you see the markets for what they are.
You will see how much the markets move on average per day. This is fantastic info if you are an intraday trader and want to set your take profit within the average range, so you have as high a probability as possible of reaching your take profit today.
You can also trade reversals from ADR high and low. Very often the price changes direction back into the middle of the ADR high and low, at around 50%.
Golden SlopeGolden Slope is an ATR based trend tool that mixes KNN machine learning to allow you to confirm your entry and exits, which can give out significantly more accurate signals.
Flag and rectangle signals are machine learning signals, they confirm an entry and exit position. You can use entry and exit signals alone but it's more accurate to confirm with machine learning signals. The idea is to either see a machine learning signal first and confirm it by Golden Slope entry or the other way around.
PS. Watch out if candle starts hitting the golden belly (or the yellow area after an entry signal is given because it can indicate a reversal before machine learning or the golden slope itself catch it, but these events happen rarely.
SPX and Federal Net Liquidity differenceScript for applying Federal Net Liquidity to the SPX post-2020 monetary policy. Original indicator from jlb05013 with adjustments to make it more readable and usable. When the indicator is above 250 the SPX is overbought and when it's below -250 the SPX is oversold.
It's not perfect, I'm just publishing because I didn't see it already out there.
HH-LL ZZAnother ZigZag, yes...
I believe though this concerns another angle/principle, therefore I wanted to share
How does it work?
Given:
source for level breach -> close
X breaches -> 3
Let's say this is the latest found 'lower low' (LL - blue dot under bar):
This bar has been triggered because 3 bars closed under low of previous 'trigger bar' (TB )
The high and low of this new TB will act as triggers
(aqua blue lines, seen in image above)
Then there are 2 options:
- again 3 bars closes under the latest TB , in that case the TB moves to that new LL.
- 3 bars closes higher than the high of previous TB
The high and low of this new TB act again as trigger
If a new TB LL/HH is found, the script checks previous LL/HH
and searches the highest/lowest point in between.
If necessary, the temporary highest/lowest will be adjusted:
Another example:
The last 2 points can change (repaint).
Yellow coloured lines/labels are set and won't change anymore.
Concluded:
In case of these settings:
source for level breach -> close
X breaches -> 3
once a new TB is found, the high and low act as trigger lines
- when 3 bars closes under that low , a new LL is found, this will be the new TB
- when 3 bars closes above that high , a new HH is found, this will be the new TB
and so on...
Settings:
source for level breach -> close or high/low - H/L
X breaches -> 1 -> 10
line style -> solid, dotted, dashed
show level breaches -> new found TB (blue/lime coloured)
show Support/Resistance (lines at the right)
repaint warning can be removed
show labels / lines
This ZZ can be used for Harmonic patterns, Trend evaluation, support/resistance,...
In this script, I also used new features
- text_font_family = font.family_monospace -> link
- display=display.pane -> link
Cheers!
Trend SuggestionsThis brings together a number of variables to produce trend predictions that could be utilized as decision-making tools.
Uses the aforementioned price and volume derivatives
- A moving average and three weighted moving averages (WMA1, WMA2, WMA3)
- Super Trend Line (ST)
- Opening Range Breakout on Five Minutes, Resistance Bands Pocket pivots, support, and price volume
he Direction is determined by the High and Low Bands of WMAs and the Supertrend Line, which are used to determine the Upper and Lower Lines around the Price. When the price passes below the lower boundary of the band, a downtrend is said to have begun.
Similarly, for an uptrend, this continues until the price passes over the upper edge of the band. Teal for an uptrend and fuchsia for a downturn area shared by the band to identify the trend.
The first five minutes of the breakout lines have a tiny buffer augmentation of 11% applied to them.
Based on what has been observed, support and resistance zones have been somewhat changed from the figures that are often utilized (might work other markets as well)
The markings that may be seen are as follows:
- Blue Triangle indicates a pocket pivot with an upward bias;
- Maroon Triangle indicates a pocket pivot with a downward bias;
- Teal colored Diamonds indicate price upthrusts and potential trend confirmation locations, depending on success or failure.
- Similar backdrop color changes that look as vertical shading are also used to identify them.
- Fuchsia-colored diamonds indicate price declines and a potential trend, depending on whether it persists or fails.
- Dark green and maroon square boxes indicate potential price reversals in the support and resistance bands, respectively.
It goes without saying that this work is derived from numerous other open-source community initiatives.
Feel free to adjust anything you'd like, and we appreciate any feedback.