iBox, Initial Balance | IB High, Low, Midpoint | OpeningThis Indicator will print basically 4 lines.
You have to understand the importance of the "Initial Balance" the first trading hour of Cash session is very important in trading stocks and indizes.
So you will get 4 lines:
Opening
Initial Balance High
Initial Balance Low
Initial Balance Midpoint/Halfback
Most indicators for Range Box, Opening Trade, Opening Range, Initial Balance, iBOX and "Ultimate Lines" will only use the timezone of the exchange or your own timezone. I'm living in europe and we have this daylight saving time change in Summer/Winter - which will cause problems with most of the existing indicators or at least will push you to change the times regularly.
Another important point: I really like to switch the indizes when trading on my mobile. So what will happen when you set up opening range for DAX at 09:00 and then switch to S&P500? All indicators I tried failed here - they will just draw a wrong line for SPX, NDX, DJI, FTSE, ASX etc. I fixed that and hard coded stock exchanges and ticker symbols into 3 main groups Initial Balance EU/US/Asia
For example we take DAX - XETRA DAX is opening at 09:00 MEZ (Europe/Berlin)
The Initial Balance is set during the H1 Candle from 09:00 - 09:59
Please be aware, that some cash indizes only deliver data to TradingView after the "opening auction" - so for Xetra DAX you have to book live data and often you will only see data at 09:02/09:03 after the opening auction.
So you will get different opening lines compared from cash to future or your CFD provider. Future and CFD should fit for 99%
The Opening Line will be drawn at exactly 09:00
IB High on the highest price during the H1 candle
IB Low on the lowest price during the H1 candle
IB Halfback is simple: (IB High + IB Low) / 2
The lines will be drawn from cash start until next day and will end 2 minutes before the next cash session will start again. Please make your own experience! Activate the indicator for a CFD or Future switch to M15 and watch the wicks around the 4 lines. Even in the night or the next morning before the next Initial Balance will be set.
For me the lines are valid for around 24 hours and often longer. That's why it's good to have the old lines on the chart too.
To-do:
Yesterday high / low / close / halfback (also for last week and month)
Labels for the lines - sometimes only the colors will confuse you - a simple label should be a benefit (IB_h, IB_l, IB_1/2, 1D_o)
Range Lines for Asia Range and Premarket Range - additionaly a parameter to disable premarket lines when premarket is trading in asia range.
Add Alert condition to get alerts after IB is set
If you have and thoughts, ideas or improvements, please send me an message or leave an comment!
Like i said, the stock exchanges and ticker symbols are hard coded and can be extended for all relevant assets.
Have fun and i really hope this indicator will help improving your trading experience!
Полосы и каналы
MCL-YG Pair Trading StrategyThis strategy uses Bollinger Band breakouts to detect buy and sell signals on a correlated pair of assets.
Pivot-Based Channels & Bands [Misu]█ This Indicator is based on Pivot detection to show bands and channels.
The pivot price is similar to a resistance or support level. If the pivot level is breached, the price should continue in that direction. Or the price could reverse at or near this level.
█ Usages:
Use channels as a support & resistance zone.
Use bands as a support & resistance zone. It is also very powerfull to use it as a breakout.
Use mid bands & mid channels as a trend direction or trade filter as a more usual moving average.
█ Parameters:
Show Pivot Bands: show bands.
Show Pivot Mid Band: show mid bands.
Show Pivot Channels: show channels.
Show Pivot Mid Channel: show mid channels.
Deviation: deviation used to calculate pivot points.
Depth: depth used to calculate pivot points.
Growth Stock Arbitrage Indicator [@PierceARK]This indicator takes advantage of the fact that when the 10 and 5 year Treasury Constant Maturity Minus Federal Funds rates (T10YFF/T5YFF) go down sharply, investors tend to rotate into stocks. This arbitrage works great for growth stocks, since growth stocks are higher beta by virtue of their lower market cap and more speculative nature in general. This script identifies the moving-average convergence/divergence of the average of the 10y and 5y treasury rates and then finds the variance of that macd line. By averaging that variance with the macdline's inverse, an analog output of treasury -> stock rotation can be identified. The upper and lower thresholds bring buy and sell windows into focus.
Donchian Channels OscillatorIf we take the difference between Donchian Channels upper and lower, we can get a lot of information on the trend. I made it into a percentage and used a color system to make it easy to look at.
> green color = bullish trend
> red color = bearish trend
> white color = consolidation OR trend is about to change (low percentage)
The percentage value tells us about the strength of the trend. The highest, the strongest the trend is.
Rolling QuartilesThis script will continuously draw a boxplot to represent quartiles associated with data points in the current rolling window.
Description :
A quartile is a statistical term that refers to the division of a dataset based on percentiles.
Q1 : Quartile 1 - 25th percentile
Q2 : Quartile 2 - 50th percentile, as known as the median
Q3 : Quartile 3 - 75th percentile
Other points to note:
Q0: the minimum
Q4: the maximum
Other properties :
- Q1 to Q3: a range is known as the interquartile range ( IQR ). It describes where 50% of data approximately lie.
- Line segments connecting IQR to min and max (Q0→Q1, and Q3→Q4) are known as whiskers . Data lying outside the whiskers are considered as outliers. However, such extreme values will not be found in a rolling window because whenever new datapoints are introduced to the dataset, the oldest values will get dropped out, leaving Q0 and Q4 to always point to the observable min and max values.
Applications :
This script has a feature that allows moving percentiles (moving values of Q1, Q2, and Q3) to be shown. This can be applied for trading in ways such as:
- Q2: as alternative to a SMA that uses the same lookback period. We know that the Mean (SMA) is highly sensitive to extreme values. On the other hand, Median (Q2) is less affected by skewness. Putting it together, if the SMA is significantly lower than Q2, then price is regarded as negatively skewed; prices of a few candles are likely exceptionally lower. Vice versa when price is positively skewed.
- Q1 and Q3: as lower and upper bands. As mentioned above, the IQR covers approximately 50% of data within the rolling window. If price is normally distributed, then Q1 and Q3 bands will overlap a bollinger band configured with +/- 0.67x standard deviations (modifying default: 2) above and below the mean.
- The boxplot, combined with TradingView's builtin bar replay feature, makes a great tool for studies purposes. This helps visualization of price at a chosen instance of time. Speaking of which, it can also be used in conjunction with a fixed volume profile to compare and contrast the effects (in terms of price range) with and without consideration of weights by volume.
Parameters :
- Lookback: The size of the rolling window.
- Offset: Location of boxplot, right hand side relative to recent bar.
- Source data: Data points for observation, default is closing price
- Other options such as color, and whether to show/hide various lines.
Stock Tech Bot One ViewTechnical indicators are not limited. Hence, here is another indicator with the combination of OBV, RSI, and MACD along with support, and resistance that follows the price while honoring the moving average of 200, 90 & 50.
The default lookback period of this indicator is 21 though it is changeable as per the user's desire.
The highest high and lowest low for the last 21 days lookback period proven to be the perfect Support & Resistance as the price of particular stock values are decided by market psychology. The support and resistance lines are very important to understand the market psychology which is very well proven with price action patterns and the lines are drawn based on,
Lower Extreme = 0.1 (Changeable)
Maximum Range = 21 days highest high - 21 days lowest low.
Support Line = 21 days lowest low + (Maximum Range * Lower Extreme)
Resistance Line = 21 days highest high - (Maximum Range * Lower Extreme)
RSI - Relative strength indicator is very famous to find the market momentum within the range of 0 - 100. Though the lookback period is changeable, the 14 days lookback period is the perfect match as the momentum of market movement for the last 3 weeks will always assist to identify the market regime. Here the momentum is just to highlight the indication (green up arrow under the candle for long and red down arrow above the candle for short) of market movement though it is not very important to consider if the price of the stock respect the support & resistance lines along with volume indicator (* = violet color).
OBV - Momentum:
The on-balance volume is always going indicator on any kind of tickers, which helps to identify the buying interest. Now, applying momentum on OBV with the positive movement for at least two consecutive days gives perfect confirmation for entry. A combination of the price along with this momentum(OBV) in the chart will help us to know the whipsaw in the price.
The Symbol "*" on top of each bar shows the market interest in that particular stock. If your ticker is fundamentally strong then you can see this "*" even when the market falls.
MACD:
One of the favorites and simple indicators widely used, where the thump of the rule is not to change the length even if it is allowed. It's OK to believe blindly in certain indicator and consider it while trading. That's why the indicator changes the bar color by following the MACD histogram.
Volume:
It may be the OBV works based on the open price and close price along with volume movement, it is wise to have the volume that is plotted along with price movement that should help you to decide whether the market is greedy or fearful.
The symbol "-" on top of each bar tells you a lot and don't ignore it.
Moving Average:
Moving average is a very good trend indicator as everyone considers seeing along with the price in the chart which is not omitted while we gauge the price movement alone with volume in this indicator. The 200, 90 & 50 MA's are everyone's favorite, and the same is plotted on the chart.
As explained above, the combination of all four indicators with price movement will give us very good confidence to take entry.
Candlestick Pattern:
You should admire the techniques of the candlestick pattern as you navigate the chart from right to left. Though there are a lot of patterns that exist, it is easy to enable and disable to view the signal as the label.
Further, last but not least, the exit always depends on individual conviction and how often the individual watch the price movement, if your conviction is strong then follow the down arrow red indication. If not, then exit with a trailing stop that indicates the bar with orange color.
Happy investing
Note: It is just a combination of multiple indicators and patterns to get one holistic view. So, the credit goes to all wise developers who publically published.
Polynomial Regression Bands w/ Extrapolation of Price [Loxx]Polynomial Regression Bands w/ Extrapolation of Price is a moving average built on Polynomial Regression. This indicator paints both a non-repainting moving average and also a projection forecast based on the Polynomial Regression. I've included 33 source types and 38 moving average types to smooth the price input before it's run through the Polynomial Regression algorithm. This indicator only paints X many bars back so as to increase on screen calculation speed. Make sure to read the tooltips to answer any questions you have.
What is Polynomial Regression?
In statistics, polynomial regression is a form of regression analysis in which the relationship between the independent variable x and the dependent variable y is modeled as an nth degree polynomial in x. Polynomial regression fits a nonlinear relationship between the value of x and the corresponding conditional mean of y, denoted E(y |x). Although polynomial regression fits a nonlinear model to the data, as a statistical estimation problem it is linear, in the sense that the regression function E(y | x) is linear in the unknown parameters that are estimated from the data. For this reason, polynomial regression is considered to be a special case of multiple linear regression .
Related indicators
Polynomial-Regression-Fitted Oscillator
Polynomial-Regression-Fitted RSI
PA-Adaptive Polynomial Regression Fitted Moving Average
Poly Cycle
Fourier Extrapolator of Price w/ Projection Forecast
Rob Booker - ADX Breakout updated to pinescript V5Rob Booker - ADX Breakout. The strategy remains unchanged but the code has been updated to pinescript V5. This enables compatibility with all new Tradingview features. Additonally, indicators have been made more easily visible, default cash settings as well as input descriptions have been added.
Rob Booker - ADX Breakout: (Directly taken from the official Tradingview V1 version of the script)
Definition
Rob Booker’s Average Directional Index (ADX) Breakout is a trend strength indicator that affirms the belief that trading in the direction of a trend and continuing to follow its pull is more profitable for traders, while simultaneously reducing risk.
History
ADX was traditionally used and developed to determine a price’s trend strength. It is commonly known as a tool from the arsenal of Rob Booker, experienced entrepreneur and currency trader.
Calculations
Calculations for the ADX Breakout indicator are based on a moving average of price range expansion over a specific period of time. By default, the setting rests at 14 bars, this however is not mandatory, as other periods are routinely used for analysis as well.
Takeaways
The ADX line is used to measure and determine the strength of a trend, and so the direction of this line and its interpretation are crucial in a trader’s analysis. As the ADX line rises, a trend increases in strength and price moves in the trend’s direction. Similarly, if the ADX line is falling, a trend decreases in strength and price then enters a period of consolidation, or retracement.
Traditionally, the ADX is plotted on the chart as a single line that consists of values that range from 0-100. The line is non-directional, meaning that it always measures trend strength regardless of the position of a price’s trend (up or down). Essentially, ADX quantifies trend strength by presenting in both uptrends and downtrends of the line.
What to look for
The values associated with the ADX line help traders determine the most profitable trades and where risk lies in the current trend. It is important to know how to quantify trend strength and distinguish between the varying values in order to understand the differences in trending vs. non-trending conditions. Let’s take a look at ADX values and what they mean for trend strength.
ADX Value:
0-25: Signifies an absent of weak trend
25-50: Signifies a strong trend
50-75: Signifies a very strong trend
75-100: Signifies an extremely strong trend
To delve into this a bit further, let’s assess the meaning of ADX if it is valued below 25. If the ADX line remains below 25 for more than 30 or so bars, price then enters range conditions, making price patterns more distinguishable and visible to traders. Price will move up and down between resistance and support in order to determine selling and buying interest and may then eventually break out into a trend or pattern.
The way in which ADX peaks, ebs, and flows is also a signifier of its overall pattern and trend momentum. The line can clearly indicate to the trader when trend strength is strong versus when it is weak. When ADX peaks are pictured as higher, it points towards an increase in trend momentum. If ADX peaks are pictured as lower - you guessed it - it points towards a decrease in trend momentum. A trend of lower ADX peaks could be a warning for traders to watch prices and manage and assess risk before a trade gets out of hand. Similarly, whenever there is a sudden move that seems out of place or a change in trend character that goes against what you’ve seen before, this should be a clear sign to watch prices and assess risk.
Summary
The ADX Breakout indicator is a trend strength indicator that analyzes price movements relative to trend strength to signal a user when is best for a trade and when is best to manage risk and assess patterns. As long as a trader recognizes strong trends and assesses the risk of each trade properly, they should have no problem using this indicator and utilizing it to work in their favor. In addition, the ADX helps identify trending conditions, but while doing so, also aids traders in finding strong trends to trade. The indicator can even alert traders to specific changes in trend momentum, allowing them to be primed for risk management.
MTF EMA Ribbon & Bands + BBMulti Timeframe Exponential Moving Average Ribbon & Bands + Boillinger Bands
I used the script "EMA Ribbon - low clutter, configurable " by adam24x, I made some color change and I added a few indicators (Boillinger Bands, EMA on multi timeframe and EMA bands from "34 EMA Bands " by VishvaP).
The script can display various EMA from the chart's timeframe but also EMA from other timeframes.
Bollinger Bands and EMA bands can also be added to the chart.
Bermaui Variety Averages Bands [Loxx]Bermaui Variety Averages Bands is a reverse Bollinger Bands indicator with Loxx's Variety Moving Averages and Loxx's Expanded Source Types.
What are Bermaui Bands?
Bermaui Bands (BB) is a technical analysis tool that help filter between ranging and trending price movements. A buy signal is made when price crosses above the upper band, a sell signal is made when price crosses below the bottom band. The idea is when the bands are far apart, this is low volatility; when the bands are close together, this is high volatility.
Included
Loxx's Expanded Source Types
Loxx's Moving Averages
Alerts
Signals
Ultimate IndicatorThis is a combination of all the price chart indicators I frequently switch between. It contains my day time highlighter (for day trading), multi-timeframe long-term trend indicator for current commodity in the bottom right, customizable trend EMA which also has multi-timeframe drawing capabilities, VWAP, customizable indicators with separate settings from the trend indicator including: EMA, HL2 over time, Donchian Channels, Keltner Channels, Bollinger Bands, and Super Trend. The settings for these are right below the trend settings and can have their length and multiplier adjusted. All of those also have multi-timeframe capabilities separate from the trend multi-time settings.
The Day Trade Highlight option will draw faint yellow between 9:15-9:25, red between 9:25-9:45, yellow between 9:45-10:05. There will be one white background at 9:30am to show the opening of the market. while the market is open there will be a very faint blue background. For the end of the day there will be yellow between 15:45-15:50, red between 15:50-16:00, and yellow between 16:00-16:05. During the night hours, there is no coloring. The purpose of this highlight is to show the opening / closing times of the market and the hot times for large moves.
The indicators can also be colored in the following ways:
1. Simple = Makes all colors for the indicator Gray
2. Trend = Will use the Donchian Channels to get the short-trend direction and by default will color the short-term direction as Blue or Red. Unless using Super Trend, the Donchian Channel is used to find short-term trend direction.
3. Trend Adv = Will use the Donchian Channels to get the short-trend direction and by default will color the short-term direction as Blue or Red. Unless using Super Trend, the Donchian Channel is used to find short-term trend direction. If there is a short-term up-trend during a long-term down-trend, the Blue will become Navy. If short-term down-trend during long-term up-trend, the Red will be Brown.
4. Squeeze = Compares the Bollinger Bands width to the Keltner Channels width and will color based on relative squeeze of the market: Teal = no squeeze. Yellow = little squeeze. Red = decent squeeze. White = huge squeeze. if you do not understand this one, try drawing the Bollinger Bands while using the Squeeze color option and it should become more apparent how this works. I also recommend leaving the length and multiplier to the default 20 and 2 if using this setting and only changing the timeframe to get longer/shorter lengths as I've seen that changing the length or multiplier can more or less make it not work at all.
Along with the indicator settings are options to draw lines/labels/fills for the indicator. I enjoy having only fills for a cleaner look.
The Labels option will show Buy/Sell signals when the short-term trend flips to agree with the long-term trend.
The Trend Bars option will do the same as the Labels option but instead will color the bars white when a Buy/Sell option is given.
The Range Bars option shows will color a bar white when the Close of a candle is outside of a respective ranging indicator option (Bollinger or Keltner).
The Trend Bars will draw white candles no matter which indicator selection you make (even "Off"). However, Range Bars will only draw white when either Bollinger or Keltner are selected.
The Donchian Channels and Super Trend are trending indicators and should be used during trending markets. I like to use the MACD in conjunction with these indicators for possibly earlier entries.
The Bollinger Bands and Keltner Channel are ranging indicators and should be used during ranging markets. I like to use the RSI in conjunction with these indicators and will use 60/40 for overbought and oversold areas rather than 70/30. During a range, I wait for an overbought or oversold indication and will buy/sell when it crosses back into the middle area and close my position when it touches the opposite band.
I have a MACD/RSI combination indicator if you'd like that as well :D
As always, trade at your own risk. This is not some secret indicator that will 100% win. As always, the trades you see in the picture use a 1:1.5 or 1:2 risk to reward ratio, for today (August 8, 2022) it won 5/6 times with one trade still open at the end of the day. Manage your account correctly and you'll win in the long term. Hit me up with any questions or suggestions. Happy Trading!
MTF VWAP & StDev BandsMulti Timeframe Volume Weighted Average Price with Standard Deviation Bands
I used the script "Koalafied VWAP D/W/M/Q/Y" by Koalafied_3 and made some changes, such as adding more standard deviation bands.
The script can display the daily, weekly, monthly, quarterly and yearly VWAP.
Standard deviation bands values can be changed (default values are 0.618, 1, 1.618, 2, 2.618, 3).
Also the previous standard deviation bands can be displayed.
Value At Risk Channel [AstrideUnicorn]The Value at Risk Channel (VaR Channel) is a trading indicator designed to help traders control the level of risk exposure in their positions. The user can select a time period and a probability value, and the indicator will plot the upper and lower limits that the price can reach during the selected time period with the given probability.
CONCEPTS
The indicator is based on the Value at Risk (VaR) calculation. VaR is an important metric in risk management that quantifies the degree of potential financial loss within a position, portfolio or company over a specific period of time. It is widely used by financial institutions like banks and investment companies to forecast the extent and likelihood of potential losses in their portfolios.
We use the so-called “historical method” to compute VaR. The algorithm looks at the history of past returns and creates a histogram that represents the statistical distribution of past returns. Assuming that the returns follow a normal distribution, one can assign a probability to each value of return. The probability of a specific return value is determined by the distribution percentile to which it belongs.
HOW TO USE
Let’s assume you want to plot the upper and lower limits that price will reach within 4 hours with 5% probability. To do this, go to the indicator Settings tab and set the Timeframe parameter to "4 hours'' and the Probability parameter to 5.0.
You can use the indicator to set your Stop-Loss at the price level where it will trigger with low probability. And what's more, you can measure and control the probability of triggering.
You can also see how likely it is that the price will reach your Take-Profit within a specific period of time. For example, you expect your target level to be reached within a week. To determine this probability, set the Timeframe parameter to "1 week" and adjust the Probability parameter so that the upper or lower limit of your VaR channel is close to your Take-Profit level. The resulting Probability parameter value will show the probability of reaching your target in the expected time.
The indicator can be a useful tool for measuring and managing risk, as well as for developing and fine-tuning trading strategies. If you find other uses for the indicator, feel free to share them in the comments!
SETTINGS
Timeframe - sets the time period, during which the price can reach the upper or lower bound of the VaR channel with the probability, set by the Probability parameter.
Probability - specifies the probability with which the price can reach the upper or lower bound of the VaR channel during the time period specified by the Timeframe parameter.
Window - specifies the length of history (number of historical bars) used for VaR calculation.
Return Moving Average [SpiritualHealer117]The return moving average is similar to a simple moving average, but is based on return instead of close prices. This indicator works in two modes, oscillator mode and default mode, which can be selected from the inputs menu for the indicator. Oscillator mode features an oscillator centered around 1, which shows the return, and how it relates to the moving average for returns, highest return and lowest return. Default mode features three lines, a white moving average line which shows the average return multiplied by the source, a red line which is calculated from the highest return multiplied by the source, and a green line which shows the lowest return multiplied by the source.
The indicator can be used for checking trends or as an indicator of reversals.
Hodrick-Prescott Channel [Loxx]Hodrick-Prescott Channel is a fast and slow moving average that moves inside a channel. Breakouts are when the fast ma crosses up over the slow ma and breakdowns are the opposite. The white moving average is the fast ma, the slow moving average is the red/green ma.
What is Hodrick–Prescott filter?
The Hodrick–Prescott filter (also known as Hodrick–Prescott decomposition) is a mathematical tool used in macroeconomics, especially in real business cycle theory, to remove the cyclical component of a time series from raw data. It is used to obtain a smoothed-curve representation of a time series, one that is more sensitive to long-term than to short-term fluctuations. The adjustment of the sensitivity of the trend to short-term fluctuations is achieved by modifying a multiplier Lambda.
The filter was popularized in the field of economics in the 1990s by economists Robert J. Hodrick and Nobel Memorial Prize winner Edward C. Prescott, though it was first proposed much earlier by E. T. Whittaker in 1923.
There are some drawbacks to use the HP filter than you can read here: en.wikipedia.org
Included
Bar coloring
Signals
Alerts