Exponential Bollinger Bands (EBB)This script is a variation of the popular Bollinger Bands indicator, which uses exponential moving averages (EMA) instead of simple moving averages (SMA) as its core calculation. The indicator is designed to provide a visual representation of volatility, with the distance between the upper and lower bands being determined by the standard deviation of the underlying data.
The script starts by defining a number of helper functions that are used to calculate the moving averages and standard deviations required for the indicator. The first helper function is sma(), which calculates the simple moving average of the input data over a specified length. This function uses linear interpolation to smooth the data when the length is not an integer. The stdev() function calculates the standard deviation of the input data using the simple moving average calculated by the sma() function.
The bes() function calculates the exponential moving average of the input data over a specified length. The estdev() function calculates the standard deviation of the input data using the exponential moving average calculated by the bes() function.
The estdev function calculates the standard deviation using an exponential moving average method, rather than the traditional simple moving average method used by the stdev function. The exponential moving average method gives more weight to recent data, which can make the estdev more responsive to recent changes in volatility. This can make it more useful in certain types of analysis, such as identifying trends in volatility. Additionally, it also uses the same EMA algorithm to calculate the average value of the data set, which can help to keep the output of the estdev and average functions consistent.
The script also defines two more helper functions, average() and standard_deviation(), which allow the user to switch between using simple moving averages (SMA) and exponential moving averages (EMA) as the basis for the indicator. These functions take three arguments, the input data, the length of the moving average, and a string that specifies whether to use SMA or EMA.
The script then defines the input parameters for the indicator. The user can choose whether to use SMA or EMA as the basis for the indicator using the select parameter. The user can also specify the length of the moving average and the multiplier for the standard deviation using the length and multiplier parameters, respectively.
Finally, the script calculates the average and standard deviation of the input data using the selected method (SMA or EMA), and plots the upper and lower bands of the indicator. The upper band is calculated as the average plus the standard deviation multiplied by the specified multiplier, while the lower band is calculated as the average minus the standard deviation multiplied by the specified multiplier.
Экспоненциальное скользящее среднее (EMA)
Power Indicator - EMAs + VWAP + Volume BarThe Power Indicator is intended to return some exponential moving average, vwap, volume bar, and others. With this compilation, you will be able to use them as one indicator in Trading View.
The components are:
- EMA9 - Exponential Moving Average of 9 days
- EMA21 - Exponential Moving Average of 21 days
- EMA50 - Exponential Moving Average of 50 days
- EMA200 - Exponential Moving Average of 200 days
- Volume Bar - This indicator provides the volume of the candle and its strength by showing different colors. It's a way to check expressive volume in one bar.
- Vwap line
- Indicator
If you have any questions, let me know!
Ma PullbackThis indicator is based on ema band....
condition for buy =>
1) price should crossover ema band
2) price pullback on ema band but price should not close below lower band
3)after pullback green candle should close above ema band
4)check candle size when its crossing ema band
5)check previous canlde 7 should not touching cloud so (we can reduce range signal)
condition for sell =>
1) price should crossunder ema band
2) price pullback on ema band but price should not close above upper band
3)after pullback red candle should crossunder ema band
4)check candle size when its crossing ema band
5)check previous canlde 7 should not touching cloud so (we can reduce range signal)
this indicator also for education purpuse how we can make pullback condition....
Multi SMI Ergodic OscillatorThe Multi SMI Ergodic Oscillator (Multi SMIEO) indicator can be used to identify potential buy and sell signals based on the relationship between the TSI and EMA lines.
The script is creating an indicator that plots multiple (3) sets of Time Series Indicator (TSI-Indicator) and Exponential Moving Average (EMA-Signal) lines as a single indicator.
The TSI is a momentum oscillator that helps identify overbought and oversold conditions. It is calculated using the close prices of an asset, a short-term moving average, and a long-term moving average. The script uses three different pairs of input values for the short-term and long-term periods, which can be adjusted by the user.
The EMA is a type of moving average that gives more weight to recent prices. It is calculated by applying a weighting factor to the most recent price, and then adding that weighted value to the previous EMA value. The script uses three different input values for the length of the EMA, which can also be adjusted by the user.
After calculating the TSI and EMA for each set, the script plots them on the same graph, with different colors and widths to differentiate them. The three sets of TSI and EMA lines are plotted to allow the user to compare the results of different periods. The script also plots a horizontal line at zero, which is used as a reference point for the oscillations of the indicator lines.
One way to use this indicator is to look for crossovers between the TSI and the EMA lines. A bullish crossover occurs when the TSI crosses above the EMA. This suggests that the buying pressure is increasing and a potential buy signal is generated. A bearish crossover occurs when the TSI crosses below the EMA. This suggests that the selling pressure is increasing and a potential sell signal is generated.
Some other ways that the indicator can be used include:
1. Identifying trends: The TSI and EMA lines can be used to identify the direction of the trend. An uptrend is present when the TSI and EMA lines are both trending upwards, while a downtrend is present when the TSI and EMA lines are both trending downwards.
2. Overbought and oversold conditions: The TSI can be used to identify overbought and oversold conditions. When the TSI is above the upper limit of the range, the asset is considered overbought and may be due for a price correction. Conversely, when the TSI is below the lower limit of the range, the asset is considered oversold and may be due for a price rebound.
3. Confirming price action: The Multi SMIEO indicator can be used to confirm price action. If a bullish divergence is present, it confirms a potential bullish reversal. If a bearish divergence is present, it confirms a potential bearish reversal.
4. Multiple time frame analysis: By using different periods for the TSI and EMA lines, the indicator can be used to analyze the asset on multiple time frames. It can be useful to compare the results of different periods to get a better understanding of the asset's price movements.
5. Risk management: This indicator can be used as an element of risk management strategy, it can help traders to identify overbought and oversold conditions to set stop loss or take profit levels.
The Multi SMI Ergodic Oscillator (Multi SMIEO) is a versatile indicator that can be used in a number of ways to analyze the price movements of an asset. It can be used to identify potential buy and sell signals, trends, overbought and oversold conditions, and to confirm price action. By using different periods for the TSI and EMA lines, the indicator can also be used to analyze the asset on multiple time frames. However, it is important to remember that indicators are based on historical data, and past performance does not guarantee future results.
It is important to use the indicator as part of a comprehensive trading strategy that includes risk management and other analysis techniques, such as fundamental and technical analysis. It is also important to keep in mind that indicators are not a standalone solution for trading, they should be used in conjunction with other market analysis and research techniques to generate better results.
Lastly, it is important to keep in mind that trading in financial markets comes with a certain level of risk and it is crucial to always have a proper risk management plan in place. Never invest more than you can afford to lose.
Market Structure MA Based BOS [liwei666]
🎲 Overview
🎯 This BOS(Break Of Structure) indicator build based on different MA such as EMA/RMA/HMA, it's usually earlier than pivothigh() method
when trend beginning, customer your BOS with 2 parameters now.
🎲 Indicator design logic
🎯 The logic is simple and code looks complex, I‘ll explain core logic but not code details.
1. use close-in EMA's highest/lowest value mark as SWING High/Low when EMA crossover/under,
not use func ta.pivothigh()/ta.pivotlow()
2. once price reaching EMA’s SWING High/Low, draw a line link High/Low to current bar, labled as BOS
3. find regular pattern benefit your trading.
🎲 Settings
🎯 there are 4 input properties in script, 2 properties are meaningful in 'GRP1' another 2 are display config in 'GRP2'.
GRP1
MA_Type: MA type you can choose(EMA/RMA/SMA/HMA), default is 'HMA'.
short_ma_len: MA length of your current timeframe on chart
GRP2
show_short_zz: Show short_ma Zigzag
show_ma_cross_signal: Show ma_cross_signal
🎲 Usage
🎯 BOS signal usually worked fine in high volatility market, low volatility is meaningless.
🎯 We can see that it performs well in trending market of different symbols, and BOS is an opportunity to add positions
BINANCE:BTCUSDTPERP
BINANCE:ETHUSDTPERP
🎯 MA Based signal is earlier than pivothigh()/pivotlow() method when trend beginning. it means higher profit-loss rate.
🎯 any questions or suggestion please comment below.
Additionally, I plan to publish 20 profitable strategies in 2023; indicatior not one of them,
let‘s witness it together!
Hope this indicator will be useful for you :)
enjoy! 🚀🚀🚀
Adaptative EMAThis script prints different EMA if I am on a intraday timeframe or a daily or higher timeframe by using one indicator only.
It helps me to bring confluences for my price action strategy.
Multi-Timeframe MA Based Zigzag[liwei666]🎲 Overview
🎯 This Zigzag indicator build based on different MA such as EMA/HMA/RMA/SMA, support multi-timeframe setting .
you can get customer zigzag indicator by change short/long ma length and high-timeframe config(5m/15m/30m/1h/2h) in any symbol.
🎲 Indicator design logic
🎯 entired logic is simple and code looks complex, I‘ll explain core logic here, code already equipped with detailed comments.
1. use close-in EMA's highest/lowest value mark as SWING High/Low when EMA crossover/under, not use func ta.pivothigh()/ta.pivotlow()
2. when EMA crossover/under plot a char as signal like ●/❄/▲, crossover get blue char crossunder get red char
3. latest zigzag line is not drawn until EMA is turned (crossover/under), but signal is realtime
4. you can see diff zigzag structure when you open high-timeframe config, then find regular pattern benefit your trading.
🎲 Settings
🎯 there are 3 group properties in script, just focus on 5 properties in 'GRP1' ,
'GRP2' and 'GRP3' are display config.
'GRP1':
MA_Type: MA type you can choose(EMA/RMA/SMA/HMA/WMA), default is EMA
short_ma_len: short MA length of your current timeframe on chart
long_ma_len: long MA length of your current timeframe on chart
htf_ma_len: MA length of high timeframe, MA type same as 'MA_Type' config
htf_ma_tf: high timeframe ma length, 15/30/60/120 minute
'GRP2':
• show_short_zz • show_long_zz • show_htf_zz:
'GRP3':
• show_short_ma_line • show_short_ma_signal
• show_long_ma_line • show_long_ma_signal
• show_htf_ma_line • show_htf_ma_signal
🎲 Usage
🎯 As we know, MA based signal usually worked fine in trend market , low volatility is unprofitable.
🎯 One of pattern as the chart show below.
1. success example : after a blue ▲ signal, entry long when blue ● signal appear, marked with green box.
2. failed example: after a blue ▲ signal, a red ▼ signal appear, marked with white box.
🎯 BoS(Break of Structure) based on ma zigzag is a good idea I'm implementing, it will be published in next script.
Additionally, I plan to publish 20 profitable strategies in 2023; this indicatior not one of them,
let‘s witness it together!
Hope this indicator will be useful for you :)
enjoy! 🚀🚀🚀
Price Cross ━ [whvntr]This oscillator is an attractive way to view hidden price divergence... The formula originated from the Lark, but I have cleanly displayed this information. When the two moving averages (ema) cross with a simple moving average, you find the hidden price divergence. What kind of market should you use this in? It works well when a trend is already established.
Disclaimer: This indicator does not constitute investment advice. Trade at your own
risk with this method of identifying hidden price divergence.
True Range Adjusted Exponential Moving Average [CC]The True Range Adjusted Exponential Moving Average was created by Vitali Apirine (Stocks and Commodities Jan 2023 pgs 22-27) and this is the latest indicator in his EMA variation series. He has been tweaking the traditional EMA formula using various methods and this indicator of course uses the True Range indicator. The way that this indicator works is that it uses a stochastic of the True Range vs its highest and lowest values over a fixed length to create a multiple which increases as the True Range rises to its highest level and decreases as the True Range falls. This in turn will adjust the Ema to rise or fall depending on the underlying True Range. As with all of my indicators, I have color coded it to turn green when it detects a buy signal or turn red when it detects a sell signal. Darker colors mean it is a very strong signal and let me know if you find any settings that work well overall vs the default settings.
Let me know if you would like me to publish any other scripts that you recommend!
BankNifty Dash
This indicator to be used only in BankNifty , shows Values of BankNifty Index & its top constituents.
Dashboard Interpretation :
LTP - Last Traded Price.
D High - Day High.
D Low - Day Low.
I Points - Shows the contribution of top BankNifty constituents according to its weightage.
PH-PL - "PH - PL" means LTP is trading between Previous Days High( PH ) & Previous Days Low( PL ) which indicates Rangebound-ness.
"+ PH" means LTP is trading above Previous Days High( PH ) which indicates Bullish-ness.
"- PL" means LTP is trading below Previous Days Low( PL ) which indicates Bearish-ness.
ATR - Displays the Daily ATR (Average True Range) (14 period).
DTR - Current Day Range.
DTR% - Current Day Range percentage.
( DTR & DTR%, changes colour based on percent value. < 61.8 is green and > 61.8 is red.)
For example if the Daily ATR is 100 and the current range of the day is 200 this would be 200% the original move.
EMA:-
Default value of 5 is used in Fast EMA.
Default value of 21 is used in Slow EMA.
Default value of 200 is used in EMA (Used for trend direction).
User can change values from input section.
If the colour filled between Fast EMA and Slow EMA is green, the market is in a uptrend
If the colour filled between Fast EMA and Slow EMA is red, the market is in a downtrend.
ADR :-
Plots ADR (Average Day Range) zones are used as support and resistance, ADR zones are calculated using a 5 or 10 day period unless you change the settings.
PDH/PDL :-
Plots Previous Day High(PDH) and Previous Day low(PDL).
Quantum CDV HistogramThis script is an addition to Fixed Quantum Cdv.
It shows vector cdv ratio in columns.
You can select the length as an input to how many bars to look back for the whole calculation.
The green bars represent the bullish values and the red bars the bearish values.
The green line represents an ema of the bullish value and the red line the ema of the bearish value.
The momentum ema (in purple) represent the cdv ratio (bullish - bearish).
When the momentum ema is at 100% or more it’s a good sell opportunity and when the momentum ema is at or under 100% it’s a good buy opportunity. It is not financial advise. Make sure to make your own analysis. This script help to make entries, but do not enter positions only based on this signal.
In the inputs you can select the emas that you want to display on your histogram.
The original script is the Cumulative Delta Volume by LonesomeTheBlue.
Smooth EMA/DEMA/TEMA/EHMA (SEMA)This is my attempt at smoothing the exponential moving average any its cousins. I literally just smoothed the source and alpha and this is what we got. I really like this because you get a nice smooth yet fast acting moving average that works better than a traditional simple moving average. This script also included directional alerts.
Smooth EMA
Smooth DEMA
Smooth TEMA
Smooth EHMA
[7H] Trading HUD - MTF EMAs and RSIThis is a MTF HUD built around Chartguy Dan's trading style of 12/26 EMAs and RSI levels from multiple time frames. The HUD is configurable, allowing you to change the time frame of RSI levels and EMAs. The EMAs can be displayed at their current price or a percentage distance away. The HUD values will change color.
Modified Bollinger BandsThis script has been distributed for learning purposes.
A particular kind of price envelope is "Bollinger Bands" indicator. Upper and lower price range levels are determined by price envelopes. By default, Bollinger Bands are plotted in Tradingview as envelopes at a standard deviation level above and below the price's simple moving average (SMA). I attempted to modify the indicator in this version by adding several kinds of moving averages first. The key feature is that standard deviation should be modified. in Tradingview, SMA calculates the standard deviation. The allocated moving average should be used to calculate the std function when the base line is changed.
10 MAs Alpha Indicator by MontyThis indicator is a part of the script I coded earlier this month.
The name is to surprise one of our discord member.
I will publish that indicator in a few days as well, but publishing this as a gesture of giving back to the community.
Indicator has:
10 Moving Averages
Adjustable Color, Opacity and Size etc
Shows Labels for each of the MA.
Can be shifted between EMA or SMA
Can be fixed to show a specific TF MA on current Timeframe.
Munich GuppyWELCOME to the Munich Guppy!
This is a simple moving average indicator that will help you determine the trend of your chart using historical moving averages.
The indicator consists of 3 EMA's and one ALMA moving average. Using these 4 moving averages I have programmed the relationship between the moving averages to color the background of your chart.
If your background is red, this means that the alma moving average has fallen below the EMA's (EMA1 and EMA 2) as well as (EMA 1 and EMA 2) are postured in a down trending/up trending fashion
For example, the 21EMA is greater than the 55EMA, this signals that the chart has been outperforming its intermediate averages. Now if the ALMA is below both the 21ema and 55ema, in this instance, your chart background will become green.
The ALMA has color options '+CoC' and '-Coc', this simply means if the candle closes below the alma, it will turn red, if closure above it will turn green.
EMA 3 which is default set to 200, has no affect on the color of the background.
Now I hope I have thoroughly explained the simplicity of this indicator, if you have any questions leave them below or private message me for any other requests,
Good Trading!
-CheatCode1
CM_SlingShotSystem+_CassicEMA+Willams21EMA13 htc1977 editionThis strategy is a combination of 2 indicators based on EMA(actually x3 EMAs and Williams ind.
We usin this to see where EMA fast is above EMA slow(for long), entry position when price hit fast EMA and exit if trend changes or price overbought, or by stoploss 1%.
The opposite for a short position.
For better result You can change every EMA's, stoploss, Willam's ind and other visualisation in settings.
If You find good combination - please, let me know(if You want).
I will check it with ML, and attach it here.
Original indicators will write in comments
Money Flow Index/MFIma/smooth vol-mfisoory for spaling not an english native speaker
this script is an extended version of MFI
i add it
mfi ema vol
and a verion that calc the MFI with smooth ma ema-vol
also the src for calc can be change now
thc code is open to explore for any use
enjoy.
EMA RSI Strategy
Simple strategy
=============
If the last two closes are in ascending order, the rsi is below 50 and ascending, and the current candle is above 200 ema, then LONG. If the last two closes are in descending order, the rsi is above 50 and descending, and the current candle is below 200 ema, then SHORT.
LONG Exit strategy:
ATR: Last 14 day
Lowest: The lowest value of the last 14 candles
Limit points = (Trade Price - Lowest + ATR) * 100000
trail_points : Limit/2
trail_offset = Limit/2
SHORT Exit strategy:
ATR: Last 14 day
Highest: The higher value of the last 14 candles
Limit points = (Trade Price - Highest + ATR) * 100000
trail_points : Limit/2
trail_offset = Limit/2
Backtest results for the AUDUSD pair gave positive results over the last three months.
I am testing this strategy using a python bot in a real environment this week and will update the results at the end of the week.
Disclaimer
This is not financial advice. You should seek independent advice to check how the strategy information relates to your unique circumstances.
We are not liable for any loss caused, whether due to negligence or otherwise arising from the use of, or reliance on, the information provided directly or indirectly by this strategy.
MACD + EMA System with AlertsSo I created the MACD Cross Strategy but not working alone by itself. I added EMA (Exponential Moving Average) filter to improve its winning rate so the MACD Signal only appears when in the same trend direction as Moving Average.
The Main Rules for Long Signal are:
- MACD Main Line Crossover the MACD Signal Line.
- The crossover happens below the MACD center line (0) so the momentum is strong.
- Price above the EMA 200 so it means the market is in a strong uptrend.
The Main Rules for Short Signal are :
- MACD Main Line Crossunder the MACD Signal Line.
- The crossover happens above the MACD center line (0) so the momentum is strong.
- Price below the EMA 200 so it means the market is in a strong downtrend.
The signal crossover & signal alert only generate as per the following rules above.
Moving Average - fade when crossed [cajole]This indicator simply provides a moving average (SMA, EMA, etc. can be selected) which hides itself when touched by the price.
Two potential uses:
Set the growth rate to be slow, to highlight only very rapid moves on a chart.
Use the default settings and change the averaging period until the MA line remains bright. This MA can then act as a good trailing stop for the specific security.
TradingView does not remember indicator settings for specific charts. Consider adding a text label to your chart after you identify the ideal trailing stop. Similar trailing-stop methods are recommended by Kristjan Qullamagie is identical to Jesse Stine's "magic line" concept .
EMA 8/20Overlay the 8- and 20-period exponential moving averages.
Also known as an exponentially weighted moving average, the EMA gives more significance to recent periods compared to an SMA (simple moving average).
Learn more about the EMA on Investopedia