[Rygel] Dual time frame Bollinger Bands with signals and alertsThis indicator displays two Bollinger Bands coming from two different time frames, chart's current one and a higher one.
It analyzes these two Bollinger Bands data and combines them with RSI, MFI and MACD divergences and SuperTrend to identify areas of opportunity where price is the most likely to be at a local top or bottom.
It uses probabilistic data, the Bollinger Bands, to identify convergence areas where the price is statistically overbought or oversold simultaneously at two different time frames, it then looks for signs of a trend exhaustion, using RSI, MFI and MACD divergences, and finally it looks for an early confirmation of a trend reversal, using SuperTrend data with aggressive settings.
This indicator does not produce buy and sell signals. You won't get a buy for every sell or a sell for every buy. In a bearish trend, you may get multiple consecutive bullish signals and in a bullish trend multiple bearish signals.
It is meant to help you to identify and to alert you about areas of opportunity where you could, for instance, consider taking some profits or opening a trade.
It is meant to support your investment or trading decisions, not to induce them.
SIGNALS
This indicator generated multiple types of signals. Diamonds are better than squares. Colored ones are better than grey ones.
Green square: a bullish signal confirmed by a regular divergence
Red square: a bearish signal confirmed by a regular divergence
Blue square: a bullish signal confirmed by a hidden divergence (disabled by default as these signals are less reliable)
Orange square: a bearish signal confirmed by a hidden divergence (disabled by default as these signals are less reliable)
Diamonds: same as the square signals but the signal is forming a divergence with a previous one. Diamond signals are always stronger (i.e. more reliable) than square signals.
Grey signals: same as the previous ones but for weaker signals. These signals appear when price in the current time frame is overbought or oversold but only close to be at the higher timeframe. (disabled by default as these signals are less reliable)
When a weak signal follows a strong one and creates a MACD divergence with it, it will be considered as a strong signal and displayed as a colored signal, even when weak signals are disabled.
When a strong signal follows a weak one, forming a MACD divergence, it will be shown as a diamond signal, even when weak signals are disabled.
Most reliable signals are green and red diamonds.
SETTINGS
Bollinger Bands
Source: the source used to calculate the Bollinger Bands ("close" by default)
Length: the moving-average length of the Bollinger Bands (20 by default)
You will most likely have no need to change these settings. If you're wondering what they actually do, you should most likely not touch them.
Main channel standard deviation: the standard deviation used to calculate the classical Bollinger Bands channel. (2.0 by default)
Outer bands standard deviation: additional channels outside the main one, using a larger standard deviation. (3.0 by default)
Theoretically, with a 1.0 standard deviation, around 68% of the price action should be contained within the Bollinger Bands.
With a 2.0 standard deviation, around 95%.
With a 3.0 standard deviation, around 99.7%.
With a 4.0 standard deviation, around 99.99%.
But as security prices returns have no actual statistical distribution, these probabilities don't strictly apply to Bollinger Bands. According to Wikipedia, studies have found that with a 2.0 standard deviation, only about 88% (85–90%) of the price data remain with the Bollinger Bands, instead of the theoretical 95%.
The higher you set the values, the less signals you'll get.
You should most likely keep the main channel standard deviation between 2 and 3 and add between +0.5 and +1 for the outer bands.
Most commonly used value for Bollinger Bands is 2.0.
Current time frame
Show current time frame Bollinger Bands: these are the Bollinger Bands you're used to. (enabled by default)
Show current time frame outer bands: add two additional bands outside the main channel using a larger standard deviation. (enabled by default)
Higher time frame
Show higher time frame Bollinger Bands: display secondary Bollinger Bands from a higher time frame. Time frames are configured in the below "Time frames" section. (enabled by default)
Show higher time frame outer bands: add two additional bands outside the main channel using a larger standard deviation (enabled by default)
Overbought and oversold
Show oversold and overbought background: add a background to the higher time Bollinger Bands whose color depends on the dual time frame Bollinger Bands oversold / overbought status. (enabled by default)
Asset is considered overbought/oversold when its price is outside of the Bollinger Bands' main channel.
Asset is considered strongly overbought/oversold when its price is outside of the Bollinger Bands' outer bands.
Dark red: both time frame are overbought (outside the main channel)
Red: one time frame is strongly overbought (outside the outer bands) and the other one is overbought (outside the main channel)
Bright red: both time frame are strongly overbought (outside the outer bands)
Dark green: both time frame are oversold (outside the main channel)
Green: one time frame is strongly oversold (outside the outer bands) and the other one is oversold (outside the main channel)
Bright green: both time frame are strongly oversold (outside the outer bands)
Signals
Show signals: display signals when an area of opportunity is detected. Read the introduction and the Signals section for more information. (enabled by default)
Show weak signals: display signals although at the higher time frame price is not yet overbought or oversold but close to be (disabled by default)
Divergences
Use MACD for divergences (enabled by default)
Use MFI for divergences (enabled by default)
Use RSI for divergences (enabled by default)
At least one source of divergences must be enabled for signals to work.
Enable hidden divergences: signals don't use hidden divergences by default as they generate more false positives than regular divergences. You can enable them to get more signals, it can be especially useful at high time frames (like weekly, monthly, etc.) where signals are rarer. (disabled by default)
Show divergences: draw MACD, MFI and RSI divergences on the chart. (disabled by default)
Green: regular bullish divergence
Red: regular bearish divergence
Blue: hidden bullish divergence
Orange: hidden bearish divergence
Confirmation
Confirmation speed: a faster confirmation speed will generate more false positive signals, a slower one will produce delayed but more reliable signals.
Fastest: don't wait for a SuperTrend confirmation, only wait for a divergence confirmation. Lot of false positives.
Fast: wait for a fast SuperTrend confirmation (SuperTrend factor = 1).
Medium: wait for a slower but more reliable SuperTrend confirmation (SuperTrend factor = 2). Fewer false positives but more lagging signals.
Slow: wait for an even slower but very reliable SuperTrend confirmation (SuperTrend factor = 3). Very few false positives but very late signals.
Time frames
You can define the higher time frames you wish to use here.
Default values try to adhere to a x6 to x8 ratio, x4 to x12 at maximum.
Some pairs are more significant than others, like 4 hour + daily, daily + weekly and weekly + monthly.
1 second: 10 seconds
5 seconds: 30 seconds
10 seconds: 1 minute
15 seconds: 2 minutes
30 seconds: 3 minutes
1 minute: 10 minutes
2 minutes: 15 minutes
3-4 minutes: 30 minutes
5-9 minutes: 45 minutes
10-11 minutes: 1 hour
12-14 minutes: 1 hour
15-29 minutes: 2 hours
30-44 minutes: 4 hours
45-59 minutes: 6 hours
1 hour: 8 hours
2 hours: 12 hours
3 hours: 1 day
4-5 hours: 1 day
6-7 hours: 2 days
8-11 hours: 3 days
12-23 hours: 4 days
1 day: 1 week
2 days: 2 weeks
3 days: 3 weeks
4 days: 1 month
5 days: 1 month
6 days: 1 month
1 week: 1 month
2 weeks: 2 months
3 weeks: 3 months
1 month: 6 months
2 months: 9 months
3 months: 12 months
4 months: 15 months
5 months: 21 months
6 months: 24 months
Time frames use the TradingView units:
s = seconds
h = hours
D = days
W = weeks
M = months
no unit = minutes
Time frame strings follow these rules:
They are composed of the multiplier and the time frame unit, e.g., “1S”, “30” (30 minutes), “1D” (one day), “3M” (three months).
The unit is represented by a single letter, with no letter used for minutes: “S” for seconds, “D” for days, “W” for weeks and “M” for months.
When no multiplier is used, 1 is assumed: “S” is equivalent to “1S”, “D” to “1D, etc. If only “1” is used, it is interpreted as “1min”, since no unit letter identifier is used for minutes.
There is no “hour” unit; “1H” is not valid. The correct format for one hour is “60” (remember no unit letter is specified for minutes).
The valid multipliers vary for each time frame unit:
- For seconds, only the discrete 1, 5, 10, 15 and 30 multipliers are valid.
- For minutes, 1 to 1440.
- For days, 1 to 365.
- For weeks, 1 to 52.
- For months, 1 to 12.
Styles
You can configure the appearance of the Bollinger Bands, the overbought / oversold background, the divergences and the signals here.
Advanced - MACD
Settings used for the MACD divergences. You most likely won't need to change these values, especially if you need them to be explained.
Advanced - MFI
Settings used for the MACD divergences. You most likely won't need to change these values, especially if you need them to be explained.
Advanced - RSI
Settings used for the MACD divergences. You most likely won't need to change these values, especially if you need them to be explained.
Advanced - SuperTrend
Settings used for the MACD divergences. You most likely won't need to change these values, especially if you need them to be explained.
ALERTS
Any signal: a bullish or bearish signal has been detected.
Bullish signal: a bullish signal has been detected.
Bullish signal with divergence: a bullish signal forming a divergence with a previous bullish signal has been detected.
Bearish signal: a bearish signal has been detected.
Bearish signal with divergence: a bearish signal forming a divergence with a previous bearish signal has been detected.
Overbought/oversold = asset price is outside of the Bollinger Bands' main channel.
Strongly overbought/oversold = asset price is outside of the Bollinger Bands' outer bands.
Current time frame - Entering overbought: asset is now overbought at the current time frame.
Current time frame - Exiting overbought: asset is not overbought anymore at the current time frame.
Current time frame - Entering strongly overbought: asset is now strongly overbought at the current time frame.
Current time frame - Exiting strongly overbought: asset is not strongly overbought anymore at the current time frame.
Current time frame - Entering oversold: asset is now oversold at the current time frame.
Current time frame - Exiting oversold: asset is not oversold anymore at the current time frame.
Current time frame - Entering strongly oversold: asset is now strongly oversold at the current time frame.
Current time frame - Exiting strongly oversold: asset is not strongly oversold anymore at the current time frame.
Higher time frame - Entering overbought: asset is now overbought at the higher time frame.
Higher time frame - Exiting overbought: asset is not overbought anymore at the higher time frame.
Higher time frame - Entering strongly overbought: asset is now strongly overbought at the higher time frame.
Higher time frame - Exiting strongly overbought: asset is not strongly overbought anymore at the higher time frame.
Higher time frame - Entering oversold: asset is now oversold at the higher time frame.
Higher time frame - Exiting oversold: asset is not oversold anymore at the higher time frame.
Higher time frame - Entering strongly oversold: asset is now strongly oversold at the higher time frame.
Higher time frame - Exiting strongly oversold: asset is not strongly oversold anymore at the higher time frame.
Dual time frame - Entering overbought: asset is now overbought at current and higher time frames.
Dual time frame - Exiting overbought: asset is not overbought anymore at current and higher time frames.
Dual time frame - Entering oversold: asset is now oversold at current and higher time frames.
Dual time frame - Exiting oversold: asset is not oversold anymore at current and higher time frames.
Dual time frame - Entering strongly overbought: asset is now strongly overbought at current and higher time frames.
Dual time frame - Exiting strongly overbought: asset is not strongly overbought anymore at current and higher time frames.
Dual time frame - Entering strongly oversold: asset is now strongly oversold at current and higher time frames.
Dual time frame - Exiting strongly oversold: asset is not strongly oversold anymore at current and higher time frames.
ABOUT THE HIGHER TIME FRAME BOLLINGER BANDS
Using a classical higher time frame Bollinger Bands would produce lagging data. For instance, if we are using a weekly BB at the daily time frame, we'll have to wait up to 7 days for the weekly bar to close to get the actual final weekly BB values. Instead, this indicator generates real time higher time frame Bollinger Bands by multiplying the moving average length of the Bollinger Bands by the higher time frame / current time frame ratio. For instance, a weekly BB in the daily time frame will use a x7 ratio (i.e. a 20 * 7 = 140 days MA BB).
It produces slightly different but very similar bands that are as meaningful and can be used in real time at lower time frames.
Alternatives would have been to wait up to seven days for signals to be finalized, which would have render them meaningless. Or to use previous week data, which would have made the signal inaccurrate.
To sum up, weekly Bollinger Bands use a 20 weeks moving average updated one time a week. In the daily time frame, this indicator also use a 20 weeks (140 days) moving average but updated daily instead of weekly.
A comparison between a traditional higher time frame Bollinger Bands vs the ones used by this indicator:
Blue and orange lines are the actual weekly BBs, grey ones are the daily updated ones.
ABOUT THE DIVERGENCES
This indicator uses the same divergences algorithm as my other indicators:
- RSI with divergences
- MACD with divergences
- Trend Reversal Indicator
You'll find more information about this algorithm on my RSI page.
التقلب
Excalibur Trading System [Dare]✦ INTRODUCTION
The core goal in the Excalibur Trading System is attaining an optimal entry - fading the masses, selling others' buys, buying others' sells, and trading along true tops and bottoms where price manipulation commonly occurs. Executions are most successful intraday and when aligned with HTF price action while still maintaining a systematic approach in analysis and risk management. Use of this tool is not recommended for the uninitiated trader; it takes intense focus, dedicated practice, and unwavering confidence to wield this successfully. Please go through the guide I’ve provided which contains comprehensive coverage of all the elements below which, in the context of this post, are meant to depict a general idea of what the indicator is meant to accomplish.
✦ INDICATOR DETAILS
System Overview
System Components
Indicator Settings
Plotting Interpretation
Postscript
✦ SYSTEM OVERVIEW
Type of System
This is a mechanical system which requires zero discretion. While trading with an objective approach offers several advantages, it's important to note that it is not foolproof. Market conditions can change, and indicators can provide false signals. The accuracy is not 100% and even following it perfectly, as with any strategy, one will incur losses.
Objective Decision-making - No emotional bias, no fear.
Consistent - A repeatable approach that eliminates impulsivity.
Easily tested - Strategy performance can be measured universally no matter who is using it, in both forward and backtesting.
No Guesswork - Provides specific entry and exit signals with a systematic procedure.
Predefined Rules - Controls risk and enforces discipline.
Simple and Clear - Reduces complexity and confusion.
Performance in Various Market Conditions
Excalibur is meant to catch reversals and second-stage continuations, but trending days should be avoided. It has been tested and used in live market conditions in Index Futures, during the regular NY Session, on the 1m Timeframe, targeting ≥2.5RR Ratio. Outcomes will vary by trader due to factors such as risk tolerance, entry opportunities taken, human error and psychological barriers. Historical performance is not a guarantee of future results.
✦ SYSTEM COMPONENTS
Setup Schematic
The premise for all setups is the same. We are identifying manipulation above a previous high (bearish) or below a previous low (bullish) in anticipation of a reversal. This indicator is meant to be used as a measuring tool to quantify that manipulation taking place using Hi's and Lo's as identified by the Bar , which is based on a standard deviation calculation. The Fu tag is meant to be used to find Divergence at custom pivots, not predetermined lookback periods - this is similar to SMT - Smart Money Technique, but this Divergence references bodies vs. wicks and the execution of the trade is at the extreme pivot vs. the weak pivot.
Using the Bar as a guide, the trader will set the Hi/Lo tags and the indicator will automatically calculate the Threshold, the point beyond which one’s Entry resides when Divergence is also present. A valid entry plots as a Polaris star below (bullish) and above (bearish) the current bar in their respective scenarios.
Bullish Setup
(1) Place the Lo tag at the current threshold as signified by the Bar.
(2) Search for Divergence with price action below that threshold by using the Fu tag at extreme bodies of recent swing lows.
(3) Wait for a bullish Entry to plot, confirmed at candle close.
Bearish Setup
(1) Place the Hi tag at the current threshold as signified by the Bar.
(2) Search for Divergence with price action above that threshold by using the Fu tag at extreme bodies of recent swing highs.
(3) Wait for a bearish Entry to plot, confirmed at candle close.
The indicator collects the OHLC values of the target asset candles based on the trader’s Hi/Lo placement, compares them to up to two assets, and plots an entry depending on the context of the setup. The entry method, like the setup composition, is based on minute Divergences in price between the assets and other criteria related to how the candles close relative to each other.
✦ INDICATOR SETTINGS
Options
This line controls the colors of the Polaris (✦) and the squares in the Manipulation Bar. Manipulation can be measured using either mathematical calculation (ᴀʟᴘʜᴀ) or OHLC data-points (ʙᴇᴛᴀ). The Polaris denotes a time and price of possible reversal at an extreme low or high - deselect this line to hide it.
⋆ This line controls colors of the Tags and Candles - Bullish, Bearish, and All. To customize, switch to ᴄᴜsᴛᴏᴍ. If the Divergence Candles are not consistently visible, change the Visual Order to Front on the chart by selecting the indicator Title then More. To hide, deselect this line.'
The third and fourth lines controls the visibility of the Manipulation Bar, Matrix Tags, Advisor Arrows and Invalidation Labels.
Time
By default, the times for Hi, Lo and Fu are set to 09:00, 09:30 and 09:15 respectively. The date will need to be manually adjusted at the beginning of each trading day.
Price
By default, the charted Asset is assumed to be ES1! (E-Mini S&P 500 Continuous Contract) . If the trader would like to chart a different Asset, be sure to adjust Assets I and II to valid comparisons so that the indicator can accurately detect price divergences.
Risk
Input the account size and percentage one intends to risk. To pyramid, indicate the quantity the position to be divided into. In MT4 or 5, right-click a symbol then Specification. The Contract Size field contains the Units per Lot. Use the various options to customize the table format and visibility.
The tooltips (i) will be available in the UI in case the trader will ever need to refer to them for the information above.
✦ PLOTTING INTERPRETATION
Matrix Tags
Guided by the manipulation bar, the trader will use Hi and Lo tags to measure the manipulation threshold. The Fu tag measures either bullish or bearish divergences depending on the placement of the Hi/Lo tags.
Manipulation Bar
The squares plotted together form a bar and indicate whether a candle is or isn’t plotting a new manipulation threshold (creating a new Hi or Lo ). The trader should always use the current Hi or Lo .
Advisor Arrows
The arrows are meant to signify a possible valid entry in the temporary period of time between the candle open and close. They give advance notice that the trader should be looking for divergences using the Fu tag to attain a confirmed entry (Polaris) on that particular candle as it is forming.
Entry Signal
The Polaris denotes a time and price of trade execution. As long as the Matrix tags are placed correctly, this is a valid signal to place a position in the direction indicated. Entry price is at the candle close, regardless of the next candle’s open price.
Risk Labels and Table
This is an automatic calculation for Stop placement based on average true range (valid only for indices with a 0.25pt tick value. A future version may allow for customization of this feature for assets not based on ticks, like forex pairs). The table (by default at the bottom right) will display the trader's position size based on the inputs.
Divergence Candles
Using the Fu tag, the trader can select swing highs and lows to determine if divergence is occurring above and below them, respectively. Divergence is maintained as long as the colored candles are printed consecutively. Referring to the charts of Assets I and II in a separate layout window is recommended but not required.
✦ POSTSCRIPT
I forged this sword, Excalibur, in pursuit of my highest aspiration - to create a legacy and provide a gift to my friends, family, and all those burdened by obligations that limit them from living what they would consider to be a fulfilling life. Those free to pursue the ambitions they truly value are the ones who change their communities and even the world for the better.
~Dare.
ATR VisualizerAdvance Your Market Analysis with the True Range Indicator
The True Range Indicator is a sophisticated screener meticulously developed to bolster your trading execution by presenting an exceptional understanding of the market direction. The centerpiece of this instrument is a distinctive candle configuration depicting the Average True Range (ATR) and the Bear/Bull range. However, it traverses beyond the conventional channels to offer specific market settings to boost your trading decisions.
User-Defined Settings
Broadly, the indicator offers five dynamic settings:
Bear/Bull Range
The Bear/Bull Range outlines the ATR for each candle type - bearish and bullish - and then smartly opts for the pertinent one based on the prevalent market circumstances. This feature aids in comparing the range of bullish and bearish candlesticks, which deepens your understanding of the price action and volatility.
Bearish Range
The Bearish Range isolates and computes the ATR for bearish candles solely. Utilizing this option spots the bear-dominated periods and provides insights about potential market reversals or downward continuations.
Bullish Range
Opposite to the Bearish Range, the Bullish Range setting tabulates the ATR exclusively for bullish candles. It assists in tracking the periods when bulls control, enlightening traders about the possibility of upward continuations or trend reversals.
Average Range
The Average Range provides an unbiased measure of range without prioritizing either bull or bear trends. This model is ideal for traders looking for a holistic interpretation of market behavior, regardless of direction.
Cumulative Average Range
Equally significant is the Cumulative Average Range which calculates the aggregate moving average of the true ranges for an expressed period. This setting is extremely valuable when evaluating the long-term volatility and spotting potential breakouts.
Dual Candle Configuration
Going a step ahead, the True Range Indicator uniquely offers the possibility to incorporate more than one candle estimate on your screen. This ensures simultaneous analysis of multiple market dynamics, thereby enhancing your trading precision multifold.
Concluding Thoughts
In essence, the True Range Indicator is an indispensable companion for traders looking to not only leverage market volatility but also make educated predictions. Equipped with an array of insightful market settings and the ability to display dual candle estimates on-screen, you can customize the functionality to suit your unique trading style and magnify your market performance dramatically.
Simple Grid Lines VisualizerAbout Grid Bots
A grid bot is a type of trading bot or algorithm that is designed to automatically execute trades within a predefined price range or grid. It is commonly used in markets that exhibit ranging or sideways movement, where prices tend to fluctuate within a specific range without a clear trend.
The grid bot strategy involves placing a series of buy and sell orders at regular intervals within the predefined price range or grid. The bot essentially creates a grid of orders, hence the name. When the price reaches one of these levels, the bot will execute the corresponding trade. For example, if the price reaches a predefined lower level, the bot will buy, and if it reaches a predefined upper level, it will sell.
The purpose of the grid bot strategy is to take advantage of the price oscillations within the range. As the price moves up and down, the bot aims to generate profits by buying at the lower end of the range and selling at the higher end. By repeatedly buying and selling at these predetermined levels, the bot attempts to capture gains from the price fluctuations.
About this Script
Simple Grid Lines Visualizer is designed to assist traders in visualizing and implementing automated price grids on their charts. With just a few inputs, this script generates gridlines based on your specified top price, bottom price, and the number of grids or profit per grid.
How it Works:
Specify Top and Bottom Prices: Start by setting the top and bottom prices that define the range within which the gridlines will be generated. These prices can be based on support and resistance levels, historical data, or any other factors you consider relevant to your analysis.
Determine Grid Parameters: Choose either the number of grids or profit per grid, depending on your preference and trading strategy. If you select the number of grids, the script will evenly distribute the gridlines within the specified price range. Alternatively, if you opt for profit per grid, the script will calculate the price increment required to achieve your desired profit level per grid.
Note that when choosing Profit per Grid , an approximation usually is performed, as all grid lines must be evenly distributed. To achieve that, the script computes the grid distance using the mean price between top and bottom, then computes how many of those complete distances may enter the entire range, and lastly, creates a grid with evenly distributed distances as close as possible to the previously computed.
Customize Styling and Display: Adjust the line color, line style, transparency, and other visual aspects to ensure clear visibility on your charts.
Analyze and Trade: Once the gridlines are plotted on your chart, carefully observe how the market interacts with them. The gridlines can act as reference points for potential support and resistance levels, as well as simple buy/sell orders for a trading bot.
Try to find gridlines that intersect prices as frequently as possible from one to another.
A grid with too many lines will make lots of potential trades, but the amount traded will be minimal (as the total amount invested is divided over the number of grids).
A grid with too few lines will make lots of profits with each trade, but the trades will be less likely to occur (depending on the top/bottom distance).
This tool aims to help visually which grid parameters seem to optimize this problem.
Future versions may include automatic profit computation.
Dynamic Trend RipperThe "Dynamic Trend Ripper" indicator is designed to identify dynamic support and resistance levels based on exponential moving averages (EMA) and the average true range (ATR). It aims to assist traders in identifying potential trading opportunities by visualizing dynamic support and resistance areas on the price chart. Think of it as more of overbought or oversold areas then true support and resistance,
The indicator calculates two sets of EMAs: two for the top cloud and two for the bottom cloud. The lengths of these EMAs are determined by user-defined input parameters. Additionally, the indicator uses the ATR to adjust the EMAs, enhancing their effectiveness as dynamic support and resistance levels.
The top cloud is formed by adding the ATR to the top fast EMA and subtracting the ATR from the top slow EMA. The bottom cloud is formed by subtracting the ATR from the bottom fast EMA and adding the ATR to the bottom slow EMA.
The indicator plots the dynamic OB (Overbought) level, which is the top fast EMA plus the ATR multiplied by the OBOS multiplier. It also plots the dynamic OS (Oversold) level, which is the top slow EMA minus the ATR multiplied by the OBOS multiplier. These levels are visualized using colored lines on the chart.
The top fast EMA, top slow EMA, bottom fast EMA, and bottom slow EMA are also plotted on the chart. The area between the top slow EMA and top fast EMA is filled with a color, forming the top cloud. The area between the bottom fast EMA and bottom slow EMA is filled with another color, forming the bottom cloud. The color of the clouds changes based on the relationship between the top fast EMA and top slow EMA. If the Regular Fast EMA is greater than the Regular slow EMA, indicating a bullish trend, the clouds are displayed in green. Otherwise, if the top fast EMA is less than the top slow EMA, indicating a bearish trend, the clouds are displayed in red.
The indicator can be used to identify potential support and resistance zones where the price may encounter obstacles or reverse its direction. Traders can look for price interactions with the dynamic support and resistance levels, as well as the OB and OS levels, to make trading decisions. For example, a trader might consider entering a short trade when the price approaches the top cloud, or a long trade when the price bounces off the bottom cloud.
By incorporating the ATR, which measures volatility, the indicator adjusts the EMAs to adapt to changing market conditions. Traders can watch for price reactions or reversals near these levels to gauge potential overextension or exhaustion in the price movement. I'm not going to claim this as my own idea, but I will say that I came up with this version myself. I haven't seen anyone else take this approach which is why I think it can be revolutionary to trading.
EXTREME OVERBOUGHT/SOLD BANDS
ATR-ADJUSTED EMA'S
Z-Score Heikin-Ashi TransformedThe Z-Score Heikin-Ashi Transformed (𝘡 𝘏-𝘈) indicator is a powerful technical tool that combines the principles of Z-Score and Heikin Ashi to provide traders with a smoothed representation of price movements and a standardized measure of market volatility.
The 𝘡 𝘏-𝘈 indicator applies the Z-Score calculation to price data and then transforms the resulting Z-Scores using the Heikin Ashi technique. Understanding the individual components of Z-Score and Heikin Ashi will provide a foundation for comprehending the methodology and unique features of this indicator.
Z-Score:
Z-Score is a statistical measure that quantifies the distance between a data point and the mean, relative to the standard deviation. It provides a standardized value that allows traders to compare different data points on a common scale. In the context of the 𝘡 𝘏-𝘈 indicator, Z-Score is calculated based on price data, enabling the identification of extreme price movements and the assessment of their significance.
Heikin Ashi:
Heikin Ashi is a popular charting technique that aims to filter out market noise and provide a smoother representation of price trends. It involves calculating each candlestick based on the average of the previous candle's open, close, high, and low prices. This approach results in a chart that reduces the impact of short-term price fluctuations and reveals the underlying trend more clearly.
Methodology:
The 𝘡 𝘏-𝘈 indicator starts by calculating the Z-Score of the price data, which provides a standardized measure of how far each price point deviates from the mean. Next, the resulting Z-Scores are transformed using the Heikin Ashi technique. Each Z-Score value is modified according to the Heikin Ashi formula, which incorporates the average of the previous Heikin Ashi candle's open and close prices. This transformation smooths out the Z-Score values and reduces the impact of short-term price fluctuations, providing a clearer view of market trends.
This tool enables traders to identify significant price movements and assess their relative strength compared to historical data. Positive transformed Z-Scores indicate that prices are above the average, suggesting potential overbought conditions, while negative transformed Z-Scores indicate prices below the average, suggesting potential oversold conditions. Traders can utilize this information to identify potential reversals, confirm trend strength, and generate trading signals.
Utility:
The indicator offers valuable insights into price volatility and trend analysis. By combining the standardized measure of Z-Score with the smoothing effect of Heikin Ashi, traders can make more informed trading decisions and improve their understanding of market dynamics. 𝘡 𝘏-𝘈 can be used in various trading strategies, including identifying overbought or oversold conditions, confirming trend reversals, and establishing entry and exit points.
Note that the 𝘡 𝘏-𝘈 should be used in conjunction with other technical indicators and analysis tools to validate signals and avoid false positives. Additionally, traders are encouraged to conduct thorough backtesting and experimentation with different parameter settings to optimize the effectiveness of the indicator for their specific trading approach.
Key Features:
Optional Reversion Doritos
Adjustable Reversion Threshold
2 Adjustable EMAs
Example Charts:
See Also:
On Balance Volume Heikin-Ashi Transformed
Moving Average-TREND POWER v2.0-(AS)HELLO:
-This indicator is a waaaay simpler version of my other script - Moving Average-TREND POWER v1.1-(AS).
HOW DOES IT WORK:
-Script counts number of bars below or above selected Moving Average (u can se them by turning PLOT BARS on). Then multiplies number of bars by 0.01 and adds previous value. So in the uptrend indicator will be growing faster with every bar when price is above MA. When MA crosess price Value goes to zero so it shows when the market is ranging.
If Cross happens when number of bars is higher than Upper threshold or below Lower threshold indicator will go back to zero only if MA crosses with high in UPtrend and low in DNtrend. If cross happens inside THSs Value will be zero when MA crosses with any type of price source like for example (close,high,low,ohlc4,hl etc.....).This helps to get more crosess in side trend and less resets during a visible trend
HOW TO SET:
Just select what type of MA you want to use and Length. Then based on your preference set values of THSs'
OTHER INFORMATIONS:
-Script was created and tested on EURUSD 5M.
-For bigger trends choose slowerMAs and bigger periods and the other way around for short trends (FasterMAs/shorter periods)
-Below script code you can find not used formulas for calculating indicator value(thanks chat GPT), If you know some pinescript I encourage you to try try them or maybe bulid better ones. Script uses most basic one.
-Pls give me some feedback/ideas to improve and check out first version. Its way more complicated for no real reason but still worth to take a look'
-Also let me know if you find some logical errors in the code.
Enjoy and till we meet again.
Moving Average - TREND POWER v1.1- (AS)0)NOTE:
This is first version of this indicator. It's way more complicated than it should be. Check out Moving Average-TREND POWER v2.1-(AS), its waaaaay less complicated and might be better.Enjoy...
1)INTRODUCTION/MAIN IDEA:
In simpliest form this script is a trend indicator that rises if Moving average if below price or falling if above and going back to zero if there is a crossover with a price. To use this indicator you will have to adjust settings of MAs and choose conditions for calculation.
While using the indicator we might have to define CROSS types or which MAs to use. List of what cross types are defined in the script and Conditiones to choose from.The list will be below.
2) COMPOSITION:
-MA1 can be defined by user in settings, possible types: SMA, EMA, RMA, HMA, TEMA, DEMA, LSMA, WMA.
-MA2 is always ALMA
3) OVERLAY:
Default is false but if you want to see MA1/2 on chart you can change code to true and then turn on overlay in settings. Most plot settings are avalible only in OV=false.
if OV=true possible plots ->MA1/2, plotshape when choosen cross type
if OV=false -> main indicator,TSHs,Cross counter
4)PRESETS :
Indicator has three modes that can be selected in settings. First two are presets and do not require selecting conditions as they set be default.
-SIMPLE - most basic
-ABSOLUTE - shows only positive values when market is trending or zero when in range
-CUSTOM - main and the most advanced form that will require setting conditions to use in calculating trend
4.1)SIMPLE – this is the most basic form of conditions that uses only First MA. If MA1 is below selected source (High/Low(High for Uptrend and Low for DNtrend or OHLC4) on every bar value rises by 0.02. if it above Low or OHLC4 it falls by 0.02 with every bar. If there is a cross of MA with price value is zero. This preset uses CROSS_1_ULT(list of all cross types below)
4.2) ABSOLUTE – does not show direction of the trend unlike others and uses both MA1 and MA2. Uses CROSS type 123_ULT
4.3) CUSTOM – here we define conditions manually. This mode is defined in parts (5-8 of description)
5)SETTINGS:
SOURCE/OVERLAY(line1) – select source of calculation form MA1/MA2, select for overlay true (look point 3)
TRESHOLDS(line2). – set upper and lower THS, turn TSHs on/off
MA1(line3) – Length/type of MA/Offset(only if MA type is LSM)
MA2(line4) – length/offset/sigma -(remember to set ma in the way that in Uptrend MA2MA1 in DNtrend)
Use faster MA types for short term trends and slower types / bigger periods for longer term trends, defval MA1/2 settings
are pretty much random so using them is not recomended.
CROSSshape(line5) – choose which cross type you want to plot on chart(only in OV=true) or what type you want to use in counting via for loops,
CROSScount(line6) – set lookback for type of cross choosen above
BOOLs in lines 5 and 6 - plotshape if OV=true/plot CROSScount histogram (if OV=false)
Lines 7 and 8 – PRESET we want to use /SRC for calculation of indicator/are conditions described below/which MAs to use/Condition for
reducing value t 0 - (if PRESET is ABSOLUTE or SIMPLE only SRC should be set(Line 8 does not matter if not CUSTOM))
5)SOURCE for CONDS:
Here you can choose between H/L and OHLC. If H/L value grow when MAlow. If OHLC MAOHLC. H/L is set by default and recommended. This can be selected for all presets not only CUSTOM
6)CROSS types LIST:
“1 means MA1, 2 is MA2 and 3 I cross of MA1/MA2. L stands for low and H for high so for example 2H means cross of MA2 and high”
NAME -DEFINITION Number of possible crosses
1L - cross of MA1 and low 1
1H - cross of MA1 and high 1
1HL - cross of MA1 and low or MA1 and high 2 -1L/1H
2L - cross of MA2 and low 1
2H - cross of MA2 and high 1
2HL - cross of MA2 and low or MA1 and high 2 -2L/2H
12L - cross of MA1 and low or MA2 and low 2 -1L/2L
12H - cross of MA1 and high or MA2 and high 2 -1H/2H
12HL - MA1/2 and high/low 4 -1H/1L/2H/2L
3 -cross of MA1 and MA2 1
123HL -crosses from 12HL or 3 5 -12HL/3
1_ULT - cross of MA1 with any of price sources(close,low,high,ohlc4 etc…)
2_ULT - cross of MA2 with any of price sources(close,low,high,ohlc4 etc…)
123_ULT – all crosses possible of MA1/2 (all of the above so a lot)
7)CRS CONDS:
“conditions to reduce value back to zero”
>/< - 0 if indicator shows Uptrend and there’s a cross with high of selected MA or 0 if in DNtrend and cross with low. Better for UP/DN trend detection
ALL – 0 if cross of MA with high or low no matter the trend, better for detecting consolidation
ULT – if any cross of selected MA, most crosses so goes to 0 most often
8)MA selection and CONDS:
-MA1: only MA1 is used,if MA1 below price value grows and the other way around
MA1price =-0.02
-MA2 – only MA2 is used, same conditions as MA1 but using MA2
MA2price =-0.02
-BOTH – MA1 and MA2 used, grows when MA1 if below, grows faster if MA1 and MA2 are below and fastest when MA1 and MA2 are below and MA2price=-0.02
-MA1 and MA2 >price=-0.03
-MA1 and MA2 ?price and MA2>MA1=-0.04
9)CONDITIONS SELECTION SUMMARRY:
So when CUSTOM we choose :
1)SOURCE – H/L or OHLC
2)MAs – MA1/MA2/BOTH
3)CRS CONDS (>/<,ALL,ULT)
So for example...
if we take MA1 and ALL value will go to zero if 1HL
if MA1 and >/< - 0 if 1L or 1H (depending if value is positive or negative).(1L or 1H)
If ALL and BOTH zero when 12HL
If BOTH and ULT value goes back to zero if Theres any cross of MA1/MA2 with price or cross of MA1 and MA2.(123_ULT)
If >/< and BOTH – 0 if 12L in DNtrend or 12H if UPtrend
10) OTHERS
-script was created on EURUSD 5M and wasn't tested on different markets
-default values of MA1/MA2 aren't optimalized so do not
-There might be a logical error in the script so let me know if you find it (most probably in 'BOTH')
-thanks to @AlifeToMake for help
-if you have any ideas to improve let me know
-there are also tooltips to help
ATR DeltaThe ATR Delta indicator is based on the concept of Average True Range (ATR), which reflects the average price range over a specified period. By calculating the difference between current and previous ATR values, the ATR Delta provides valuable insights into volatility shifts in the market. This information can help traders identify periods of heightened or diminished price movement, enabling them to adjust their strategies accordingly.
The ATR Delta indicator consists of two main calculations:
-- ATR Calculation : The Average True Range (ATR) is calculated using the specified length parameter. It measures the average price range (including gaps) during that period. A larger ATR value indicates higher volatility, while a smaller value indicates lower volatility.
-- ATR Delta Calculation : The ATR Delta is calculated by subtracting the ATR value of the previous bar from the current ATR value. This calculation captures the change in volatility between the two periods, providing a measure of how volatility has evolved.
Positive ATR Delta values indicate an increase in volatility compared to the previous period. It suggests that price movements have expanded, potentially indicating a more active market. On the other hand, negative ATR Delta values indicate a decrease in volatility compared to the previous period. It suggests that price movements have contracted, potentially signaling a calmer or range-bound market.
The ATR Delta indicator uses coloration to visually represent the relationship between the ATR Delta, zero, and a signal line:
-- Green color is assigned when the ATR Delta is positive, above the signal line, and increasing. This coloration suggests a scenario of higher volatility, as the market is experiencing upward momentum in price swings.
-- Red color is assigned when the ATR Delta is negative, below the signal line, and decreasing. This coloration suggests a scenario of lower volatility, as the market is experiencing downward momentum in price swings.
-- Gray color is assigned for other cases when the ATR Delta and signal line relationship does not meet the above conditions.
These colors are reflected in the columns of the ATR Delta as well as the bar coloration.
The ATR Delta indicator includes a signal line, which acts as a reference for interpreting the ATR Delta values. The signal line is calculated as a moving average (EMA) of the ATR Delta over a specified length. It helps smooth out the ATR Delta fluctuations, providing a clearer indication of the underlying trend in volatility changes. When the ATR Delta crosses above the signal line, it may suggest a potential increase in volatility, indicating a market that is becoming more active. Conversely, when the ATR Delta crosses below the signal line, it may suggest a potential decrease in volatility, indicating a market that is becoming less active.
The coloration of the signal line in the ATR Delta indicator helps to differentiate between positive and negative values and provides further insight into market sentiment. When the signal line is positive, indicating increasing volatility, it is colored lime. This color choice reinforces the bullish sentiment and signifies potential opportunities for trend continuation or breakouts. On the other hand, when the signal line is negative, indicating decreasing volatility, it is colored fuchsia. This color choice highlights the bearish sentiment and suggests potential range-bound or consolidation periods. These colors are reflected in the background of the indicator.
The ATR Delta indicator offers several potential applications for traders:
-- Volatility Analysis : The ATR Delta is invaluable for understanding and analyzing volatility dynamics in the market. Traders can observe the changes in ATR Delta values and use them to assess the current level of price movement. This information can help determine the appropriate strategies and risk management approaches.
-- Breakout Strategies : Traders often use the ATR Delta to identify periods of increased volatility, which frequently accompany breakouts. By monitoring the ATR Delta, traders can anticipate potential price breakouts and adjust their entry and exit levels accordingly.
-- Trend Confirmation : Combining the ATR Delta with trend-following indicators allows traders to validate the strength of a trend. Higher ATR Delta values during an uptrend may indicate stronger momentum and a higher likelihood of continuation. Conversely, lower ATR Delta values during a downtrend may suggest a potential consolidation phase or trend reversal.
Limitations :
-- Lagging Indicator : The ATR Delta indicator is based on historical data and calculates the difference between current and previous ATR values. As a result, it may lag behind real-time market conditions. Traders should be aware of this delay and consider it when making trading decisions. It is advisable to combine the ATR Delta with other indicators or price action analysis for a more comprehensive assessment of market conditions.
-- Parameter Sensitivity : The ATR Delta indicator's effectiveness can be influenced by the selection of its parameters, such as the length of the ATR and signal line. Different market conditions may require adjustments to these parameters to better capture volatility changes. Traders should carefully test and optimize the indicator's parameters to align with the characteristics of the specific market or asset they are trading.
-- Market Regime Changes : The ATR Delta indicator assumes that volatility changes occur gradually. However, in rapidly changing market regimes or during news events, volatility can spike or drop abruptly, potentially rendering the indicator less effective. Traders should exercise caution and consider using additional tools or techniques to identify and adapt to such market conditions.
The ATR Delta indicator is a valuable tool for traders seeking to analyze and monitor volatility dynamics in the market. By calculating the difference between current and previous ATR values, it provides insights into changes in price movement and helps identify periods of increased or decreased volatility. Traders can leverage the ATR Delta to fine-tune their strategies, validate trend strength, and identify potential breakout opportunities. However, it is essential to recognize the limitations of the indicator, including its lagging nature and sensitivity to parameter selection. By combining the ATR Delta with other technical analysis tools and applying sound risk management practices, traders can enhance their decision-making process and potentially improve their trading outcomes.
Force Index with ATR channels-----------------------------------------------------------------
General Description:
This indicator multiplies the change of closing price for any bar by volume during that bar and plots an exponential moving average of the result. It is excellent for analyzing volume, deeper than simply looking at volume bars.
The cool thing about this particular version of the Force Index is that Average True Range (ATR) channels have been added to turn it into an excellent tool for identifying intermediate tops and bottoms. Force Index with ATR channels does not catch all turns, but the ones it identifies deserve very serious attention.
The indicator works on any market, any instrument, any timeframe, and any market condition.
-----------------------------------------------------------------
How it works:
Calculation:
Force Index = {Close (current period) - Close (prior period)} x Volume (current period)
If we smooth the indicator with a moving average the indicator gives much better trading signals.
Force Index(smoothed) = X-period EMA of Force Index
Changing the EMA length changes the focus of Force Index. Longer-term 13-bar EMA of Force Index helps identify intermediate trend reversals. Shorter-term 2-bar EMA helps identify market extremes.
The indicator also has the option to plot ATR channels to Force Index. Whenever the Force Index rises above or falls below its 3-ATR channel, it signals that the ticker has reached an area of an unsustainable extreme. That’s where rallies and declines become exhausted and prices tend to reverse. This is one of very few tools that are equally efficient in calling both top and bottom areas. This indicator places a red dot above the plot when the EMA of Force Index rises above the 3-ATR channel. It places a green dot underneath the plot when that EMA declines below the 3-ATR channel.
These signals work especially well on higher timeframes, weekly charts for example. Of course, you are welcome to experiment with them in any timeframe.
-----------------------------------------------------------------
Options/adjustments for this indicator:
* EMA Period of Force Index
* EMA Period for ATR calculations
* Plot ATRs?
* Plot ATR Signals?
REVE Cohorts - Range Extension Volume Expansion CohortsREVE Cohorts stands for Range Extensions Volume Expansions Cohorts.
Volume is divided in four cohorts, these are depicted in the middle band with colors and histogram spikes.
0-80 percent i.e. low volumes; these get a green color and a narrow histogram bar
80-120 percent, normal volumes, these get a blue color and a narrow histogram bar
120-200 percent, high volume, these get an orange color and a wide histogram bar
200 and more percent is extreme volume, maroon color and wide bar.
All histogram bars have the same length. They point to the exact candle where the volume occurs.
Range is divided in two cohorts, these are depicted as candles above and below the middle band.
0-120 percent: small and normal range, depicted as single size, square candles
120 percent and more, wide range depicted as double size, rectangular candles.
The range candles are placed and colored according to the Advanced Price Algorithm (published script). If the trend is up, the candles are in the uptrend area, which is above the volume band, , downtrend candles below in the downtrend area. Dark blue candles depict a price movement which confirms the uptrend, these are of course in the uptrend area. In this area are also light red candles with a blue border, these depict a faltering price movement countering the uptrend. In the downtrend area, which is below the volume band, are red candles which depict a price movement confirming the downtrend and light blue candles with a red border depicting price movement countering the downtrend. A trend in the Advanced Price Algorithm is in equal to the direction of a simple moving average with the same lookback. The indicator has the same lagging.as this SMA.
Signals are placed in the vacated spaces, e.g. during an uptrend the downtrend area is vacated.
There are six signals, which arise as follows:
1 Two blue triangles up on top of each other: high or extreme volume in combination with wide range confirming uptrend. This indicates strong and effective up pressure in uptrend
2 Two pink tringles down on top of each other: high or extreme volume in combination with wide range down confirming downtrend. This indicates strong and effective down pressure in downtrend
3 Blue square above pink down triangle down: extreme volume in combination with wide range countering uptrend. This indicates a change of heart, down trend is imminent, e.g. during a reversal pattern. Down Pressure in uptrend
4 Pink square below blue triangle up: extreme volume in combination with wide range countering downtrend. This indicates a change of heart, reversal to uptrend is imminent. Up Pressure in downtrend
5 single blue square: a. extreme volume in combination with small range confirming uptrend, b. extreme volume in combination with small range countering downtrend, c. high volume in combination with wide range countering uptrend. This indicates halting upward price movement, occurs often at tops or during distribution periods. Unresolved pressure in uptrend
6 Single pink square: a extreme volume in combination with small range confirming downtrend, b extreme volume in combination with small range countering uptrend, c high volume in combination with wide range countering downtrend. This indicated halting downward price movement. Occurs often at bottoms or during accumulation periods. Unresolved pressure in downtrend.
The signals 5 and 6 are introduced to prevent flipping of signals into their opposite when the lookback is changed. Now signals may only change from unresolved in directional or vice versa. Signals 3 and 4 were introduced to make sure that all occurrences of extreme volume will result in a signal. Occurrences of wide volume only partly lead to a signal.
Use of REVE Cohorts.
This is the indicator for volume-range analyses that I always wanted to have. Now that I managed to create it, I put it in all my charts, it is often the first part I look at, In my momentum investment system I use it primarily in the layout for following open positions. It helps me a lot to decide whether to close or hold a position. The advantage over my previous attempts to create a REVE indicator (published scripts), is that this version is concise because it reports and classifies all possible volumes and ranges, you see periods of drying out of volume, sequences of falter candles, occurrences of high morning volume, warning and confirming signals.. The assessment by script whether some volume should be considered low, normal, high or extreme gives an edge over using the standard volume bars.
Settings of REVE Cohorts
The default setting for lookback is ‘script sets lookback’ I put this in my indicators because I want them harmonized, the script sets lookback according to timeframe. The tooltip informs which lookback will be set at which timeframe, you can enable a feedback label to show the current lookback. If you switch ‘script sets lookback’ off, you can set your own preferred user lookback. The script self-adapts its settings in such a way that it will show up from the very first bar of historical chart data, it adds volume starting at the fourth bar.
You can switch off volume cohorts, only range candles will show while the middle band disappears. Signals will remain if volume is present in the data. Some Instruments have no volume data, e.g. SPX-S&P 500 Index,, then only range candles will be shown.
Colors can be adapted in the inputs. Because the script calculates matching colors with more transparency it is advised to use 100 percent opacity in these settings.
Take care, Eykpunter
Smooth Trail V1Please, enjoy your new game changing tradingview indicator, may I present you: the Smooth Trail (first version).
The Smooth Trail is an indicator that works just like a super trend, but it has a completely different usage and potential.
The super trend works following the price and displaying a line that uses the ATR to determine how far it has to be from the actual price, and many new trader like to use the indicator thanks to his easy readability and the buy sell signals that it shows, unfortunately this is not the best usage of the indicator and it often leads to lose money on the markets.
The main characteristics that this indicator has is that, not like the normal super trend, it follow the trend the better adapting itself in the retracement phases.
The second feature that dictate the best usage of this indicator, is that it shows a zone in which to buy or sell to have the best risk to reward ratio.
The indicator also works as dynamic level of support and resistance and can be used the best for trend following strategies to maximize the profits.
The first input, the multiplier, is used to determine how many times the ATR has to be added or subtracted in order to plot the indicator.
The second input, the length, is used to determine how many candle the indicator and the ATR have to consider for the calculation.
The third and last input, the zone width, is used to calculate the width of the zone displayed by the indicator, and is the factor that will be multiplied to the ATR, this means that if you leave the settings as default, the zone will be 1 ATR or 34 candle width.
This indicator is great to use in confluence with other indicator or with various candlestick pattern.
VIX Monitor [Zero54]NSE:BANKNIFTY1!
This is a simple but invaluable tool for both day traders and positional traders. VIX is about market expectations of volatility
The VIX is a very good and sound measure of risk in the markets. It gives these stock traders who are in intraday trading and short term traders an idea of whether the volatility is going up or going down in the market. They can calibrate their strategy accordingly. When the volatility is likely to shoot up sharply, the intraday traders run the risk of stop losses getting triggered quickly. Hence they can either reduce their leverage or they can widen their stop losses accordingly.
Also if you notice VIX is a very good and reliable gauge of index movement. If you plot the VIX and the Nifty movement you will see a clear negative correlation in the charts itself. Markets typically tend to peak out when the VIX is bottoming out and the markets tend to bottom out when the VIX is peaking out. This is a useful input for index trades.
You can use this simple indicator to monitor VIX real time. You can use it for short time frame intraday and also multi-hour, multi-day charts. You can also plot a moving average to gauge the VIX trend.
Also is the ability to monitor, Nifty and BankNifty the same way you are able to monitor the VIX (as explained above). The overall market moves in correlation with these main Indexes. So if you are trading a specific counter, you can also keep an eye on the index to get an idea where the counter may be going next.
The source code is open, please feel to modify or re-use as you feel it’s necessary. Any changes, improvements, bugs, please let me know.
Please like/boost this indicator and also add your comments, if you find it useful.
VIX, ATR, and Volatility Indicatorhere what the indictor do !
The "VIX, ATR, and Volatility Indicator" combines the Volatility Index (VIX), Average True Range (ATR), and moving averages to provide insights into market volatility.
VIX (Volatility Index):
The VIX measures the expected volatility in the market over the next 30 days. A higher VIX value indicates increased market volatility, while a lower value suggests lower volatility.
ATR (Average True Range):
The ATR is a technical indicator that measures the average range between high and low prices over a specified period. It provides a sense of the market's volatility by considering price movements. Higher ATR values indicate greater volatility, while lower values indicate lower volatility.
Moving Averages:
The indicator calculates both an Exponential Moving Average (EMA) and Simple Moving Average (SMA) with a specific period (e.g., 50).
Moving averages smooth out price data to identify trends and potential areas of support or resistance.
Volatility Detection:
By comparing the current closing price to the EMA and SMA, the indicator determines if there is high volatility.
If the current closing price is higher than either the EMA or SMA, it indicates potential high volatility.
Visualization:
The VIX and ATR are typically plotted on the chart, providing a visual representation of market volatility and price range.
Additionally, markers or labels may be used to highlight periods of high volatility when the current price exceeds the moving averages.
what are the VIX and ATR
Volatility Index (VIX):
Monitor the VIX value from financial platforms or market data providers. A higher VIX value indicates increased market volatility, suggesting potential trading opportunities. Conversely, a lower VIX value indicates lower volatility, which may influence your trading strategy.
Average True Range (ATR):
Calculate the ATR manually or use charting platforms that provide ATR as an indicator.
Plot the ATR on your trading chart to visualize the range of price movements.
Determine suitable entry and exit points based on ATR values. For example, higher ATR values may indicate larger potential price swings, while lower ATR values may suggest a more stable market.
how it work
Fetching VIX Data:
The request.security function is used to fetch the daily VIX data from the "CBOE:VIX" symbol. It retrieves the closing price of the VIX for each day.
Calculating ATR:
The ta.atr function calculates the Average True Range (ATR) with a period of 14. ATR measures the average range between the high and low prices over the specified period, providing an indication of market volatility.
Calculating Moving Averages:
Two types of moving averages are calculated: Exponential Moving Average (EMA) and Simple Moving Average (SMA). Both moving averages are calculated using a period of 50, but you can adjust the period as needed.
The ta.ema function calculates the Exponential Moving Average, which places greater weight on recent prices.
The ta.sma function calculates the Simple Moving Average, which gives equal weight to all prices in the period.
Identifying High Volatility:
The indicator determines if there is high volatility by comparing the current closing price to both the EMA and SMA.
If the current closing price is higher than either the EMA or SMA, the isHighVolatility variable is set to true, indicating potential high volatility.
Plotting the Indicators:
The VIX and ATR are plotted using the plot function, assigning colors and line widths for visual differentiation.
The plotshape function is used to plot markers below the bars to indicate highly volatile periods. The isHighVolatility variable determines when the markers appear.
ATR Momentum [QuantVue]ATR Momentum is a dynamic technical analysis tool designed to assess the momentum of a securities price movement. It utilizes the comparison between a faster short-term Average True Range (ATR) and a slower long-term ATR to determine whether momentum is increasing or decreasing.
This indicator visually represents the momentum relationship by plotting both ATR values as lines on a chart and applying color fill between the lines based on if momentum is increasing or decreasing.
When the short-term ATR is greater than the long-term ATR, representing increasing momentum, the area between them is filled with green.
Conversely, when the short-term ATR is less than the long-term ATR line, the area between them is filled with red. This red fill indicates decreasing momentum.
Don't hesitate to reach out with any questions or concerns.
We hope you enjoy!
Cheers.
[SMT] Buy & Sell Renko Based - AlertsThis is a custom indicator that implements a trading strategy based on Renko charts, but they can be used on regular candlestick charts and on any time frame. Renko charts are known for filtering market noise and displaying price movements in a clearer way. However, it is important to note that this indicator is provided for educational and informational purposes only and is not a guarantee of profitable returns.
Features:
- The indicator uses Renko charts to generate buy and sell signals.
- Renko bricks are built based on a predefined price variation, rather than time.
- The length of the Average True Range (ATR) used to calculate Renko bricks can be customized.
- Buy signals are generated when the price crosses below the current Renko brick.
- Sell signals are generated when the price crosses above the current Renko brick.
- Entry points are marked with "Buy" and "Sell" arrows on the chart.
It is essential to emphasize that no indicator or trading strategy guarantees profitable results. The financial market is complex and subject to unpredictable changes. It is recommended to perform additional tests and analysis before using this indicator on a real trading account.
Always remember to manage your risks properly and consider other factors such as fundamental analysis and market conditions when making trading decisions. The use of this indicator is entirely the user's responsibility.
DISCLAIMER: This indicator is not financial advice and should not be interpreted as such. Always consult with a qualified financial professional before making any investment decisions.
TOP 4 STABLECOIN MARKET CAPIn the cryptocurrency market, there is a challenge: understanding the flow of stablecoins during market growth and downturns. It's difficult to grasp whether the market surge is due to a shift in funds from BTC or an influx of USD. Detecting the fluctuation in market capitalization of stablecoins helps investors gain a clearer perspective of market volatility.
Usage:
When there are fluctuations in the market capitalization, it is essential to combine observations of this indicator with other technical indicators.
Range H/L Buy and Sell SignalThe "Range H/L Buy and Sell Signal" indicator is designed to identify potential buy and sell signals based on a specified price range and market volatility. This indicator can be used in the TradingView platform to assist traders in making informed decisions.
The indicator allows customization of several parameters to adapt to different trading strategies. These parameters include the start and end times for the price range, the volatility threshold, and the desired breakout conditions.
To begin, the indicator calculates the range start and end timestamps based on the provided hours and minutes. This defines the time period within which the indicator will analyze price movements.
Next, the indicator determines the highest high (High) and lowest low (Low) within the specified price range. These levels represent the upper and lower boundaries of the range and act as potential breakout points.
Volatility is also taken into account to filter out false signals. The indicator calculates the true range and the average true range over a period of 14 bars. The true range measures the price range from the current high to low, while the average true range provides an indication of market volatility.
Based on the breakout conditions and the volatility threshold, buy and sell signals are generated. A buy signal occurs when the closing price crosses above the High and the true range is greater than the volatility threshold multiplied by the average true range. Conversely, a sell signal is triggered when the closing price crosses below the Low and the true range exceeds the volatility threshold multiplied by the average true range.
The indicator visually displays the High and Low levels as plotted lines on the chart. Additionally, it marks the buy signals with green labels labeled "BUY" below the corresponding bars and the sell signals with red labels labeled "SELL" above the bars.
It is important to note that this indicator should be used in conjunction with other technical analysis tools and indicators for comprehensive market analysis. Trading always carries risks, and it is crucial to exercise caution and conduct thorough analysis before making any trading decisions.
Divergent Trades LLC:
Disclaimer: The information provided by the Divergent Trades LLC indicator is for educational and informational purposes only. It should not be considered financial advice or a recommendation to buy, sell, or trade any financial instrument. Divergent Trades LLC is not responsible for any losses incurred as a result of using this indicator. Trading in the financial markets carries a high level of risk and may not be suitable for all investors. Before making any investment decisions, please consult with a financial advisor and do your own due diligence. Past performance is not indicative of future results. By using the Divergent Trades LLC indicator, you acknowledge that you have read and understand this disclaimer and agree to its terms and conditions.
MTF Fusion - SuperTrend [TradingIndicators]SuperTrend is undoubtedly one of the most popular and influential indicators ever developed, and by combining it with our MTF Fusion algorithm, we believe we have made it more useful and powerful than ever with MTF Fusion SuperTrend .
Let's start with a brief review of what the original SuperTrend indicator is and how it works.
What is SuperTrend?
The SuperTrend indicator is a popular technical analysis tool used in financial markets to identify the direction of a trend and potential entry and exit points for trading. It was developed by Olivier Seban, a French trader, and first introduced in his book "Tout le monde peut gagner en bourse" ("Everyone Can Win in the Stock Market") published in 2008.
SuperTrend is based on the concept of Average True Range (ATR) and uses two parameters: the multiplier and the period. The ATR measures the volatility of a financial instrument, and the SuperTrend indicator utilizes this information to plot a line above or below the price chart. It is an 'AITM' (Always In The Market) indicator, which, in its original form, is always 'long' or 'short' - and never 'flat'.
Here's a brief overview of how the SuperTrend indicator works:
Calculation of the ATR: The ATR is calculated using historical price data over a specified period. It measures the average range between high and low prices, reflecting the market's volatility.
Calculation of the upward (long/bullish) and downward (short/bearish) SuperTrend lines: The SuperTrend indicator multiplies the ATR by a specified multiplier (typically 2 or 3) and adds/subtracts the result from the current closing price. This calculation determines the upward and downward SuperTrend lines.
Plotting the Indicator: The SuperTrend indicator plots a line above the price chart when the price is trending upwards, and below the price chart when the price is trending downwards. The distance between the price and the indicator line provides insights into the strength of the trend.
Traders commonly use the SuperTrend indicator to identify potential buy or sell signals. For example, a buy signal may be generated when the price crosses above the indicator line, indicating an uptrend. Conversely, a sell signal may be triggered when the price crosses below the indicator line, signaling a downtrend.
What is MTF Fusion?
Multi-Timeframe (MTF) Fusion is the process of combining calculations from multiple timeframes higher than the chart's into one 'fused' value or indicator. It is based on the idea that integrating data from higher timeframes can help us to better identify short-term trading opportunities within the context of long-term market trends.
How does it work?
Let's use the context of this indicator, which calculates SuperTrend lines, as an example to explain how MTF Fusion works and how you can perform it yourself.
Step 1: Selecting Higher Timeframes
The first step is to determine the appropriate higher timeframes to use for the fusion calculation. These timeframes should typically be chosen based on their ability to provide meaningful price levels and action which actively affect the price action of the smaller timeframe you're focused on. For example, if you are trading the 5 minute chart, you might select the 15 minute, 30 minute, and hourly timeframe as the higher timeframes you want to fuse in order to give you a more holistic view of the trends and action affecting you on the 5 minute. In this indicator, four higher timeframes are automatically selected depending on the timeframe of the chart it is applied to.
Step 2: Gathering Data and Calculations
Once the higher timeframes are identified, the next step is to calculate the data from these higher timeframes that will be used to calculate your fused values. In this indicator, for example, the values of SuperTrend lines are calculated by determining the value of the SuperTrend indicator for all four higher timeframes.
Step 3: Fusing the Values From Higher Timeframes
The next step is to actually combine the values from these higher timeframes to obtain your 'fused' indicator values. The simplest approach to this is to simply average them. If you have calculated the value of a SuperTrend line from three higher timeframes, you can, for example, calculate your 'multi-timeframe fused level' as (HigherTF_SuperTrend_1 + HigherTF_SuperTrend_2 + HigherTF_SuperTrend_3) / 3.0.
Step 4: Visualization and Interpretation
Once the calculations are complete, the resulting fused indicator values are plotted on the chart. These values reflect the fusion of data from the multiple higher timeframes, giving a broader perspective on the market's behavior and potentially valuable insights without the need to manually consider values from each higher timeframe yourself.
What makes this script unique? Why is it closed source?
While the process described above is fairly unique and sounds simple, the truly important key lies in determining which higher timeframes to fuse together, and how to weight their values when calculating the fused end result in such a way that best leverages their relationship for useful TA.
This MTF Fusion indicator employs a smart, adaptive algorithm which automatically selects appropriate higher timeframes to use in fusion calculations depending on the timeframe of the chart it is applied to. It also uses a dynamic algorithm to adjust and weight the SuperTrend calculations depending on each higher timeframe's relationship to the chart timeframe. These algorithms are based on extensive testing and are the reason behind this script's closed source status.
Unlike in the original indicator, flat/'No Trend' areas exist in MTF Fusion SuperTrend!
MTF Fusion SuperTrend only shows a Fusion SuperTrend when the majority of SuperTrends from higher timeframes are in agreement and signaling the same trend direction . So, unlike the original SuperTrend indicator, MTF Fusion SuperTrend sometimes shows no SuperTrend line at all - typically in flat or indecisive areas, which we think is beneficial and helps to filter out noise on smaller timeframes.
Included Features
Fusion SuperTrend lines
Dynamic Multi-Timeframe SuperTrends
Filled zones to highlight trends
Full customization of SuperTrend parameters
Pre-built color stylings
Options
Fusion View: Show/hide the Fusion SuperTrends calculated from multiple higher timeframes
MTF View: Show/hide the SuperTrends from multiple higher timeframes used to calculate the Fusion SuperTrends
Fill Trending Zones: Show/hide the fill for 'trending zones' between price and the Fusion SuperTrends
Multiplier: Sets the multiplier for all SuperTrend calculations
ATR Period: Sets the ATR period for all SuperTrend calculations
Pre-Built Color Styles: Use a pre-built color styling (uncheck to use your own colors)
Manual Color Styles: When pre-built color styles are disabled, use these color inputs to define your own
New York, London and custom trading sessionsHi Traders
The script :
The Time sessions script plots the trading sessions of both New York and London markets (background fills), In addition to the above the script also plots a user defined trading session period (vertical lines). All plots may be toggled true or false inorder to ensure you can focus on the respective market / markets / custom session.
Market sessions are useful for technical or quantitative analysis, as the majority of trading activity and net daily volume occurs in these zones, in fact the U.S./London market overlap tends to have the greatest volume accumulation across that range of time / bars than that range at any other time within the daily session. For FX traders it may also be important to take into account for many currency pairs the average exchange rate pip movement is greatest within these zones.
The custom session, is intended to be used for traders who trade only within specific intervals within the market session or day for 24/7 traded asset classes
Additional notes :
Not as of now, I have only added three optional trading sessions. If you would like to change the sessions, copy the scripts code and change the "ctm_session" default time range value, insuring the second time value is 1 min > than the first.
As always i Hope this is a useful script, and I will be updating this script in the near future.
Pullback WarningThe Pullback Warning indicator is a simple indicator that highlights the potential for a market pullback, by measuring distances between certain key moving averages.
John Pocorobba recently shared in his general market updates, research showing that when the distance between the closing price and the 9 day exponential moving average is greater than the distance between the 9 day exponential moving average and the 20 day exponential moving average a pullback is likely.
While this condition occurs frequently, I added sensitivity options to try and filter out the noise. The sensitivity is based on the closing price’s extension from the 50 day simple moving average. Depending on your level of sensitivity, only signals that occur when price is extended either 5, 6, or 7 percent away from the 50 sma will be plotted.
Choose how to see the signal:
Highlight Background
Plot a symbol at desired location
Note this signal works best on indexes, not individual securities.
Volume Spike, Price Move >3% Spike with Vol & Gap Up IdentifierTitle: Identifying Volume Spikes, Price Movements and Gap Ups: A TradingView Script
Introduction:
In the world of trading, identifying volume spikes and price movements can provide valuable insights into market trends and potential trading opportunities. In this article, we'll explore a TradingView script that helps traders visualize volume spikes, price up moves with volume spikes, and gap-up days on their charts.
Detecting Price Up Moves:
The script starts by calculating price up moves. It compares the current day's closing price with the previous day's closing price and checks if it has increased by 3% or more. This helps traders spot significant upward price movements.
Detecting Volume Spurts:
Next, the script focuses on detecting volume spikes, which are often associated with increased market activity and potential trading opportunities. It compares the current day's volume with the highest volume of the previous nine sessions. If the current volume exceeds all the volumes of the previous nine sessions, it is considered a volume spurt.
Example:
Let's consider a hypothetical scenario where we have the following volume data for a stock:
Day 1: 100,000
Day 2: 80,000
Day 3: 120,000
Day 4: 150,000
Day 5: 200,000
Day 6: 90,000
Day 7: 110,000
Day 8: 130,000
Day 9: 140,000
Day 10: 250,000 (current day)
To determine if there is a volume spurt on Day 10, the script compares the current day's volume (250,000) with the highest volume of the previous nine sessions. In this case, the highest volume among the previous nine sessions is 200,000 (on Day 5). Since the current day's volume (250,000) exceeds the highest volume of the previous nine sessions (200,000), it is considered a volume spurt.
Identifying Gap-Up Days:
Gap-up days occur when the market opens significantly higher than the previous day's close. To identify these days, the script compares the current day's low price with the previous day's high price. If the low price is greater than the previous day's high, it is marked as a gap-up day.
Visualizing the Findings:
To provide a clear visual representation of the identified patterns, the script uses different shapes and colors. First, it plots small red dots above the candles whenever a volume spurt is detected. These dots help traders quickly identify periods of increased volume activity.
For price up moves with volume spikes, the script utilizes blue triangular shapes below the candles. This allows traders to pinpoint instances where both price and volume are showing positive signs, indicating potential bullish movements.
Additionally, the script incorporates green candles to represent gap-up days. These candles help traders recognize days when the market opens with a significant upward gap, suggesting a potential shift in market sentiment.
Conclusion:
The TradingView script discussed in this article provides traders with a visual representation of volume spikes , price up moves with volume spikes , and gap-up days . By incorporating these visual cues into their analysis, traders can gain valuable insights into market trends and potential trading opportunities.
Remember, this script should be used for educational and informational purposes only and does not serve as financial advice or recommendations. Traders are encouraged to customize and modify the script according to their specific trading strategies and risk tolerance.
Share this script with other traders on TradingView to enhance their chart analysis and trading decisions.
PS: This TradingView script is designed to work specifically on the daily timeframe (daily candles). It calculates and identifies volume spurts based on the volume data of the daily timeframe. Since it is designed for the daily timeframe, it may not produce accurate results or work as intended on other timeframes.
VolatilityThis script shows three different calculations for volatility.
All three can be used as Stop-Loss...
- Absolute Price Changes
- Maximum Price Fluctuation
- and every one should know Average True Range
The script has a dark and light theme.
And the colors can be changed and each can be deactivated.
On top of that I stumbled over the fact that when MPF crosses over APC
this could result in a significant change in price and could also be used as an entry or exit.
This is also highlighted by default. You can change its background color and you can deactivate it too.
ACP measures volatility over most recent close prices.
This is excellent for comparing volatility.
It includes both frequency and magnitude.
In other words: Sum of differences between second to last close price and last close price as absolute value for 'n' bars.
MPF measures volatility over most recent candles, which could be used as an estimate of risk.
It may also be effective as the basis for a stop-loss or take-profit,
like the ATR but it ignores the frequency of directional changes within the time interval.
In other words: The difference between the highest high and lowest low over 'n' bars.
When you don't know what the ATR is then you can look at this link .