ka66: Alpha-Configurable EMAAllows directly modifying the Alpha/Smoothing Factor parameter of an EMA. This can allow for very close fits to price movement, instead of the more standard coarse-grained approach of adjusting smoothing via the look-back period.
Furthermore, we allow smoothing this EMA further by passing the original EMA through the EMA function again, and the output of this, yet again, to as many smoothing iterations are desired. For efficiency and practicality, limited to 10 iterations. This is inspired by indicators such as the DEMA.
Finally, we allow producing bands, with a configurable multiplier, around the final EMA. Useful for dynamic S/R levels, e.g. to use as trailing stop zones.
Pita dan Kanal
Volume Weighted Hull Moving Average Bollinger Bands (VWHBB)Title: "Volume Weighted Hull Moving Average Bollinger Bands Indicator for TradingView"
Abstract: This script presents a TradingView indicator that displays Bollinger Bands based on the volume weighted Hull Moving Average (VEHMA) of a financial asset. The VEHMA is a technical analysis tool that combines the reduced lag of the Hull Moving Average (HMA) with volume weighting to provide a more sensitive indicator of market trends and dynamics. The Bollinger Bands are a volatility indicator that plot upper and lower bands around a moving average, which can help traders identify potential trend changes and overbought or oversold conditions. The script allows the user to customize the VEHMA length and Bollinger Band deviation parameters.
Introduction: Bollinger Bands are a popular technical analysis tool used to identify potential trend changes and overbought or oversold conditions in the market. They are constructed by plotting upper and lower bands around a moving average, with the width of the bands determined by the volatility of the asset. The VEHMA is a variant of the Hull Moving Average (HMA) that combines the reduced lag of the HMA with volume weighting to provide a more sensitive indicator of market trends and dynamics.
Methodology: The VEHMA is calculated using a weighted average of two exponential moving averages (EMAs), with the weighting based on the volume of the asset and the length of the moving average. The Bollinger Bands are calculated by plotting the VEHMA plus and minus a standard deviation of the asset's price over a specified period. The standard deviation is a measure of the volatility of the asset and helps to adjust the width of the bands based on market conditions.
Implementation: The script is implemented in TradingView's PineScript language and can be easily added to any chart on the platform. The user can customize the VEHMA length and Bollinger Band deviation parameters to suit their trading strategy. The VEHMA, Bollinger Bands, and fill colors are plotted on the chart to provide a visual representation of the indicator.
Conclusion: The VEHMA Bollinger Bands indicator is a useful tool for traders looking to identify potential trend changes and overbought or oversold conditions in the market. This script provides a convenient and customizable implementation of the indicator for use in TradingView.
Volume Weighted Exponential Moving Average Suite (VWEMA)This is a volume weighted exponential moving average (EMA) script that allows users to customize various parameters to fit their specific needs.
The script includes four different EMA styles: EMA, DEMA, TEMA, and EHMA. Users can choose which style they would like to use by selecting it in the input field. The script also allows users to customize the length of the EMA, with options for both a maximum and minimum length. Users can also choose to use a manual length or to use the dominant cycle within a range as the length.
In addition to these options, the script also includes the ability to turn on or off volume weighting and a daily reset feature that resets the EMA every day. There is also an option to turn on deviation bands, which show the standard deviation of the selected EMA.
Overall, this script offers a wide range of customization options to help users find the best EMA settings for their needs. It is an advanced tool that can be very helpful for traders looking to optimize their EMA strategy.
Cumulative length instead of cycle length
Double EMA Volume Weighted
Triple EMA Volume Weighted
EHMA Volume Weighted
Higher time frame
Deviation Bands
supertrend with multiple filter strategythis indicator filters buy and sell signal from the supertrend base on various condition that the user can manually select.
as of now the following filter are included
buy and sell filter;
-Macd
-CCI
-EMA200
-LUX TRAMA
-Stochastic rsi
-MFI
EXIT SIGNAL CAN BE CHOSE BETWEEN ATR BAND OR BOLLINGER BAND
i am planning on keeping to add filters so if you have suggestion fell free to message me.
BankNifty_Bullish_Intraday
The script uses following mechanism to give a signal of BUY if multiple parameters evaluated are all passed.
ENTRY-
1. 5 min MACD should be more than its previous tick
2. 15 min MACD should be more than its previous tick
3. 60 min MACD should be more than its previous tick
4. ADX should be more than 12
5. RSI should be more than 60
6. Stochastic %k should have cross over with %d
7. Bollinger band upper band value should be more than previous tick
EXIT
If the 5 min bar price closes below 5 min EMA , it gives an exit signal.
BankNifty_Bearish_Intraday
The script uses following mechanism to give a signal of SELL if multiple parameters evaluated are all passed.
ENTRY-
1. 5 min MACD should be less than its previous tick
2. 15 min MACD should be less than its previous tick
3. 60 min MACD should be less than its previous tick
4. ADX should be more than 12
5. RSI should be less than 40
6. Stochastic %k should have negative cross over with %d
7. Bollinger band lower band value should be less than previous tick
EXIT
If the 5 min bar price closes above 5 min EMA , it gives an exit signal.
Elder Impulse VisualisedThis script is based off the original "Elder Impulse" system. It is based off a series of indicators including EMAs and MACD crossovers to change the colors of candlestick bars which can act as buy/sell signals to traders. Additionally this script plots 2 lines on the chart - one red and one green. These lines show the price levels needed for the current bar's close price in order for the current candlestick to close a certain colour.
ie, If the the current bar is green, it must close below the red line in order for the bar to become red, and vice versa.
RSI on Chart Window- The RSI indicator is displayed right on the chart, along with overbought and oversold notification symbols.
- Easily enable/disable the display of RSI Upper Band, Lower Band.
Range Bound - Rev NR - 12-25-22RangeBound - Code tracks price action within a user specified range (lookback), and tracks/charts overall high/lows, open high/lows, and close high/lows. Code resets certain parameters based on break of range to assist with determine price action - Can be useful to determine resistances to movement regardless of S&R levels. Code also uses the previous 5X Close High/Lows ranges as will chart as support and resistance to assist with determine resistance to price action
Note if using "redraw" shorter lookback periods will take additional time to compile due to multiple "redraws/deletes of previous lines" Uncheck redraw to reduce compile time
//The first code I have decided to publish :)
Price Heat MapWhat does this chart show? Take the highest high and lowest low of 200 bars. Divide that into 20 chunks. The more time the price spends in one of those 1/20th pockets, the brighter it is lit up on the chart. Number of bars back can be modified to around 500. It starts to chug beyond that. Brightness level of heat map can be adjusted. 0.5 is default. 1 = brighter, 0 = dimmer. Use on any time frame. When price moves out of a hot zone, it can move very quickly. There's no trading strategy here, just something to help you visualize recent price action. The blue band shows the price at the center of the current "hottest" band. The yellow band is the ema (exponential moving average) of the price using the "bars back" input. --enjoy!
Percentile Nearest Rank Rainbow Overlay (PNRV)The Percentile Nearest Rank Rainbow Overlay (PNRV) is an indicator for the TradingView platform that aims to visualize the ranking of a given source data within its own percentile range.
The PNRV indicator takes a single input, "src", which is the source data that the indicator will operate on. This input can be any series of data, such as stock prices, volume, or any other numerical data.
The indicator then maps the values of the src data onto a gradient of 60 colors, ranging from blue to green to yellow, with each color representing a percentile range. For example, values in the 0th percentile will be represented by a deep blue color, while values in the 50th percentile will be represented by a yellow color.
The PNRV indicator is designed to be overlaid on top of a chart, with the color of each data point representing its percentile ranking within the src data. This allows traders to easily identify trends and patterns within the data, as well as to compare the relative strength or weakness of different securities.
One potential use case for the PNRV indicator is in identifying potential overbought or oversold conditions in a stock or other security. For example, if the PNRV indicator shows that a stock's price is consistently ranking in the upper percentiles, this could be a sign that the stock is overbought and may be due for a correction. Conversely, if the PNRV indicator shows that a stock's price is consistently ranking in the lower percentiles, this could be a sign that the stock is undervalued and may be a good buying opportunity.
Overall, the PNRV indicator is a useful tool for traders looking to quickly and easily visualize the ranking of a given data series within its own percentile range.
Range Filter Buy and Sell 5min - guikroth versionRange Filter Buy and Sell 5min - the @guikroth version, republished.
Since this popular version of the Range Filter is no longer available via the original author, I republish it here under the same name.
This version remains true to the guikroth version from the calculations to the default settings and comments in the code, with the exception of an update to the latest version of PineScript, minor styling adjustments and the addition of an all-in-one 'buy or sell' alert option.
The guikroth version was a simplified modification of the original Range Filter by @DonovanWall .
Including having just 3 bar colours based on the filtered price trend, different source input options to the original, and the addition of buy and sell signals and alerts based upon the Range Filter colour change. It consisted of just three inputs; source, sampling period, and range multipler. With the update to version 5, external indicators can also be used as inputs, for example using a VWAP or EMA loaded on your chart as the input on the Range Filter is now also possible.
What is the Range Filter?
As the author of the original Range Filter describes it:
"This is an experimental study designed to filter out minor price action for a clearer view of trends. Inspired by the QQE's volatility filter, this filter applies the process directly to price rather than to a smoothed RSI .
First, a smooth average price range is calculated for the basis of the filter and multiplied by a specified amount.
Next, the filter is calculated by gating price movements that do not exceed the specified range.
Lastly the target ranges are plotted to display the prices that will trigger filter movement.
Custom bar colors are included. The color scheme is based on the filtered price trend."
Popularity of the Range Filter
The Range Filter is a very popular and effective indicator in its own right, with adjustments to the few simple settings it is possible to use the Range Filter for helping filter price movement, whether helping to determine trend direction or ranges, to timing breakout or even reversal entries. Its practical versatility makes it ideal for integrating it's signals into a variety of trading strategies or even other indicators.
With many thanks to the authors of the previous and original versions; @guikroth and @DonovanWall .
McGinley Dynamic x Donchian ChannelsThis indicator combines the McGinley Dynamic and Donchian Channels by taking the lowest and highest values over a set length (defaulted to 14) then applying the McGinley Dynamic math to these values. The upper range is denoted by a green line while the lower range is denoted by a red line. Additionally, standard deviations of 1, 2, and 3 have been put in place using the upper and lower values as the basis for the deviations as opposed to the baseline average of the upper and lower bands. These deviations are plotted as lime and orange colors. These channels can be used to determine when the price is gaining or losing momentum based on the distance between the channels. Otherwise, the channels can be used to determine potential overbought and oversold levels.
Impulse Alerts - Riccardo Di GiacomoThis is the Impulse indicator that allows you to receive alerts in the case one of the following situation occurs:
1) Buy Setup
- Price above Exponential Moving Average 260
- Moving Average 21 above Exponential Moving Average 260
- Moving Average 9 above Moving Average 21
- RSI(14) above 50
- Stochastic equal or below 20
2) Sell Setup
- Price below Exponential Moving Average 260
- Moving Average 21 below Exponential Moving Average 260
- Moving Average 9 below Moving Average 21
- RSI(14) below 50
- Stochastic equal or above 80
The Bollinger Bands represents another useful information:
- If the price is near the upper band when the first situation occurs, it is another green light, otherwise be careful
- If the price is near the lower band when the second situation occurs, it is another green light, otherwise be careful
Binomial MA BandsThe Binomial MA Bands is a simple and straightforward trading tool that uses a binomial distribution to calculate the moving average and standard deviation of a given price series. It allows users to adjust the length of the moving average and the multiplier for the standard deviation, providing some flexibility in its usage. However, it should be noted that the binomial distribution may not always provide the most accurate representation of market movements and trends, and may not always be the best choice for all traders. Additionally, the tool only has a limited range of adjustable parameters, so it may not be suitable for traders with more advanced or complex strategies. Overall, the Binomial MA Bands may be a useful tool for some traders, but its limitations should be kept in mind when considering its use in trading.
Oscillator ExtremesThe Oscillator Extremes indicator plots the normalized positioning of the selected oscillator versus the Bollinger Bands' upper and lower boundaries. Currently, this indicator has four different oscillators to choose from; RSI, CMO, CCI, and ROC.
When the oscillator pushes towards one extreme, it will bring the value of the prevailing line closer to zero. If the bullish or bearish line crosses the zero line, the oscillator is past the extreme of the Bollinger Band.
Example: If the RSI crosses over the upper boundary of the Bollinger, the bullish(green) line will cross under the zero line.
Crossovers of the bullish and bearish lines can indicate a shift in momentum and are a signal. Where the line crossing under, towards zero, is the prevailing trend. The plotted lines will highlight green(bullish) or red(bearish) to show the prevailing trend. This is similar to a DI+- crossover that is commonly associated with the ADX.
We have included an optional normalized ADX to help validate signals. The ADX will change color based on the slope of the ADX. Purple indicates a positive slope and white for a negative slope.
M0PB (Momentum Pullback)Long/short strategy that identifies extreme readings on the rsi as a *momentum signal*, unlike most RSI strategies the script will look to buy or sell the first pullback in the direction of the extreme RSI reading.
Enters positions on the first pullback to the 5ema(low)/ 5ema(high) and exits at rolling 12 bar high/ low. The rolling high/ low feature means that if the price enters into a prolonged consolidation the profit target will begin to reduce with each new bar. The best trades tend to work within 2-6 bars.
Built for use on 5 min intervals on FX, Indexes, and Crypto. Lower than 5 minute time frames tend to be noisier and mean more commissions and a higher risk of slippage so the suggested timeframe is 5 mins.
Hard stop is X ATR (users can experiment with this) from the position entry price. This can be adjusted in user inputs.
There is a lot of slack left in entries and exits but the overall strategy is fairly robust across timeframes and markets and has between 60%-70% win rate with larger winners.
Signals that occur from economic news volatility are best avoided.
Correlated ATR Bands | AdulariHow do I use it?
Never use this indicator as standalone trading signal, it should be used as confluence.
It is highly recommended to use this indicator on the 15m timeframe and above, try experimenting with the inverse feature and multipliers as well.
When the price is above the moving average this shows the bullish trend is strong.
When the price is below the moving average this shows the bearish trend is strong.
When the moving average is purple, the trend is bullish , when it is gray, the trend is bearish.
When price is above the upper band this may indicate a bearish reversal.
When price is below the lower band this may indicate a bullish reversal.
Features:
Purple line for bullish trend and gray line for bearish trend.
Custom formula combining an ATR and Hull MA to clearly indicate trend strength and direction.
Unique approach to moving averages and bands by taking the average of 2 types of MA's combined with custom ATR's, then multiplying these by correlation factors.
Bands to indicate possible trend reversals when price crosses them.
How does it work?
1 — ATR value is calculated, then the correlation between the source and ATR is calculated.
2 — Final value is calculated using the following formula:
correlation * atr + (1 - correlation) * nz(atr , atr)
3 — Moving average is calculated with the following formula:
ta.hma((1-(correlation/100*(1+weight/10)))*(ta.sma(source+value, smoothing)+ta.sma(source-value,smoothing))/2,flength)
4 — Bands calculation using multipliers.
Bands Bands (BanB)This indicator uses bands to show the trend of other bands.
The middle bands are used to show the price trend and the other bands are for the middle bands.
The Spike and Plunge bands can also act as a sort of "Bollinger Bands" for middle bands, though not exactly.
----- HOW TO USE IT -----
Zoom out in the 30 minute chart. Use 15 minute chart to pinpoint your entries.
Use with price-action trading and with indicators showing overbought & oversold levels.
The numbers below correlate with the numbers in the chart.
1) Price hits the Middle Spike line. The "ARL" bands hit the Bottom Spike line. This is a good indication that price will proceed under the Bottom Spike line.
2) Price hits the Bottom Plunge line. The "ARL" bands hit the Middle Plunge line. This is a good indication that price will proceed above the Middle Plunge line.
3) Notice how price spikes up near the Spike lines but doesn't touch. Notice how the Plunge lines have a strong pull downwards. This shows a continued down trend.
4) The same pattern as numbers 2 & 3 reoccur. This time, however, the proceeding price spike is substantially lower.
5) The price and middle bands finally bounce off the Top Plunge line and starts to get closer to the Spike bands.
6) Price and middle bands finally touch the Bottom Spike line and the Spike Bands and the Plunge Bands come closer together.
7) Narrowing Spike and Plunge Bands show a sideways market. Notice number 1, the bands are far apart -- more volatility is present.
Middle Bands:
The bottom, blue lines are fairly accurate dip-rebounds on the 30 minute chart. Use level indicators to find reversing trends (e.g., RSI, Stoch, etc.).
Price action hovering in between the blue lines and around the center indicate a low volatility market or a consolidating market.
----- HOW THIS INDICATOR IS ORIGINAL; WHAT IT DOES AND HOW IT DOES IT -----
This indicator has an original, unique ability to view the trend of bands in a substantially larger overview when zoomed out.
Normally, one would have to switch to higher time frames to get a sense of a larger market trend.
However, doing so will change any bands indicator to accommodate the new price action in relation to the new time frame.
To avoid this, the middle bands are placed in between two bands to see the trend of the bands that show the trend of price action.
----- VERSION -----
The "ARL Bands" in this indicator are NOT the same as the "ARL Bands" indicator.
They are "ARLs" set in an entirely different context, format, and amount and so does not constitute as a different version of "ARL Bands".
The "ARL Bands" indicator only has 4 lines and can be adjusted to any level. They are mainly focused on rebounds at desired levels.
The 13 "ARLs" here cannot be adjusted and are mainly focused on anticipating/calculating probabilities of peak and dip rebounds.
If any discrepancy should arise, let it be stated here that the "ARLs" in this indicator are considered to be a forked codebase to conserve the functionality of "ARL Bands".
This is proven by the differences described underneath "VERSION", which is located 7 lines above.
Darvas boxReference:
tlc.thinkorswim.com
Logic changed to transition to an active box after one higher low only.
Buy and Sell Indicator This indicaor is draw time(ex 09:15 nifty 50) high and low of candle ..
for buy condition -
1) when price is crossing time candle high open a long trade
2) check for condition is this trade open less thn previous trade
if both condition are true thn open a buy trade
for sell condition -
1) when price is crossing time candle low open a short trade
2) check for condition is this trade open grater thn previous trade
if both condition are true thn open a sell trade
to build logic of 2nd condition @fikira help me thnx mate ...
[blackcat] L2 Auto MTF Pivot Forecast Level 2
Background
A algo for pivot points forecast for each bar of automatic multiple timeframe (MTF) data.
Function
In financial markets, a pivot point is a price level that is used by traders as an indicator of market movement. Pivot points are averaged from important prices (highest, lowest, closing) based on the market performance of the previous time period. There are many ways to calculate the pivot point. The pivot point is calculated using the highest price (H), the lowest price (L) and the closing price (C) of the previous time period, and sometimes the opening price of the current time period Valence (O) was added to it.
S1 yellow
S2 white
R1 Orange
R2 fuchsia
The smoothing parameter default to 55
The pivot point indicator can be used in two ways. First, the pivot point can be used as a price trend confirmation. It is generally believed that if the price is above the pivot point in the latter period of time, the market is considered to be in a bull market sentiment, otherwise it is considered to be in a bear market sentiment. Second, support and resistance levels are mainly used as exit positions. For example, R1 and R2 can be used as trade targets if the market price breaks above a pivot point. If the market effectively breaks R1 and R2, traders may consider adding to their long positions.
Remarks
Feedbacks are appreciated.