EMA/RMA clouds by AlpachinoRE-UPLOAD
The indicator is designed for faster trend determination and also provides hints about whether the trend is strong, weaker, or if a range is expected.
It consists of an exponential moving average (EMA) and a slower smoothed moving average (RMA). I chose these because EMA is the fastest and is respected by the market, while I discovered through practice that the market often respects RMA, and in some cases, even more than EMA. Their combination is necessary because I want to take advantage of the best qualities of both averages. Displaying averages based solely on the close values creates a simple line that the market might respect. However, this is often not the case. Market makers know that many traders still believe in the theory that closing above/below an EMA signals a valid new trend. They commonly apply this belief to EMA200. Traders think that if the market closes below EMA, it signals a downtrend. That’s not necessarily true. This misconception often traps inexperienced traders.
For this reason, my indicator does not include a separate line.
I use what are called envelopes. In other words, for both EMA and RMA, the calculation uses the high and low of the selected period, which can be chosen as an input in the indicator.
Why did I choose high and low?
To stabilize price fluctuations as much as possible, especially to allow enough space for the price to react to the moving average. This reaction occurs precisely between the high and low.
Modes:
EMA Cloud – This is the most common envelope in terms of averages. It shows the best reactions with a period of 50.
What should you observe: the alignment of the envelope or its slope.
Usage:
Breakouts through the entire envelope tend to be strong, which signals that the trend may change. However, what interests you most is that the first test of the envelope after a breakout is the most successful entry point for trades in the breakout direction.
In an uptrend, the first support will be the high of the envelope, and the second (let’s call it the "ultimate support") will be the low of the envelope.
If, during an uptrend, the market closes below the low, be cautious, as the trend may reverse.
If the envelope is broken, trade the retest of the envelope.
In general, if the price is above the envelope, focus on long trades; if it’s below the envelope, focus on short trades.
Double Cloud – Since we already know that highs and lows are more relevant for price respect, I utilized this in the double cloud. Here, I use calculations for EMA and RMA highs and EMA and RMA lows.
The core idea is that since the price often reacts more to RMA than EMA, I wanted to eliminate attempts by market makers to lure you into incorrect directions. By creating more space for the price to react to the highs or lows, I made the cloud fill the area between EMA and RMA highs. This serves as the last zone where the price can hold. If the price breaks above this high cloud during a return, this doesn’t happen randomly—you should pay attention, as it’s likely signaling a range or a trend change.
The same applies to the low cloud for EMA and RMA.
The advantage of the double cloud is that you can see two clouds that may move sideways. This can resemble two walls—and they really act as such.
Usage:
Let’s say we have a downtrend. The market seems to be experiencing a downtrend exhaustion. Here's the behavior you might observe:
The price returns to the EMA/RMA low; the first reaction may still have some strength, but each subsequent return will move higher and higher into the cloud with increasingly smaller rejections downward. This indicates the absorption of selling pressure by bullish pressure. Eventually, the price may close above the cloud, significantly disrupting the downtrend and potentially signaling a reversal.
A confirmation of the reversal is usually seen with a retest of the cloud and a bounce upward into an uptrend.
The second scenario, which you’ll often see, involves sharp and significant moves through both envelopes. This kind of move is the strongest signal of a trend change. However, do not jump into trades immediately—wait for the first retest, which is usually successful. Additional tests may not work, as the breakout might not signify a trend change but rather a range.
When the clouds are far apart, it signals a weak trend or that the market is in a range. You will see that this is generally true. When the clouds cross or overlap, their initial point of contact signals the start of a stronger trend. The steeper the slope, the stronger the trend.
Smoothedmovingaverage
Gaussian Kernel Smoothing EMAGaussian Kernel Smoothing EMA
The Gaussian Kernel Smoothing EMA integrates the exponential moving average with kernel smoothing techniques to refine the trend tool. Kernel smoothing is a non-parametric technique used to estimate a smooth curve from a set of data points. It is particularly useful in reducing noise and capturing the underlying structure of data. The smoothed value at each point is calculated as a weighted average of neighboring points, with the weights determined by a kernel function.
The Gaussian kernel is a popular choice in kernel smoothing due to its properties of being smooth, symmetric, and having infinite support. This function gives higher weights to data points closer to the target point and lower weights to those further away, resulting in a smooth and continuous estimate. Since price isn't normally distributed a logarithmic transformation is performed to remove most of its skewness to be able to fit the Gaussian kernel.
This indicator also has a bandwidth, which in kernel smoothing controls the width of the window over which the smoothing is performed. It determines how much influence nearby data points have on the smoothed value. In this indicator, the bandwidth is dynamically adjusted based on the standard deviation of the log-transformed prices so that the smoothing adapts to the underlying variability and potential volatility.
Bandwidth Factor: The bandwidth factor in this indicator is used to adjust the degree of the smoothing applied to the MA. In kernel smoothing, Bandwidth controls the width of the window over which the smoothing is applied. It determines how many data points around a central point are considered when calculating a smooth value. A smaller bandwidth results in less smoothing, while a larger bandwidth smooths out more noise, leading to a broader, more general trend.
SMA Cross Dashboard | Flux Charts💎 GENERAL OVERVIEW
Introducing our new Simple Moving Average (SMA) Cross Dashboard! This dashboard let's you select a source for the calculation of the SMA of it, then let's you enter 2 lengths for up to 5 timeframes, plotting their crosses in the chart.
Features of the new SMA Cross Dashboard :
Shows SMA Crosses Across Up To 5 Different Timeframes.
Select Any Source, Including Other Indicators.
Customizable Dashboard.
📌 HOW DOES IT WORK ?
SMA is a widely used indicator within trading community, it simply works by taking the mathematical average of a source by desired length. Crosses of SMA lines can be helpful to determine strong bullish & bearish movements of an asset. This indicator shows finds crosses across 5 different timeframes in a dashboard and plots them in your chart for ease of use.
🚩UNIQUENESS
This dashboard cuts through the hassle of manual SMA cross calculations and plotting. It offers flexibility by allowing various data sources (even custom indicators) and customization through enabling / disabling individual timeframes. The clear visualization lets you see SMA crosses efficiently.
⚙️SETTINGS
1. Timeframes
You can set up to 5 timeframes & 2 lenghts to detect crosses for each timeframe here. You can also enable / disable them.
2. General Configuration
SMA Source -> You can select the source for the calculation of the SMA here. You can select sources from other indicators as well as more general sources like close, high and low price.
AIR Vortex ADXThis project started as an effort to improve the user interface of the hybrid indicator ADX of Vortex, which is, as per the name, a blend of ADX and Vortex Indicator. Plotting both indicators on the same polarity and normalising the vortex, a better interpretation of the interaction between the two is possible, and trend becomes apparent.
Basically, the Vortex provides the bright punch and ADX the continuation of the trend and momentum.
A range mixer has been added to the vortex, comprising both true and interpercentile ranges (see my previous script for a desrciption of interpercentile range). Users can activate and add amounts of each as they see fit.
Finally, there is an RSI filter, the idea of which is to filter out ranging (flat) markets, where no distinct direction is yet emerging.
Higher TimeFrame Smooth Moving AveragesScript is designed for those who dislike how plotting a moving average from a higher timeframe on a lower timeframe chart results in a choppy zigzag line when using the standard request.security(syminfo.ticker,"x",ta.sma(src,len)) method.
My more elegant solution was to translate the chart's current timeframe, and the selected higher timeframe into seconds, then check if selected timeframe is Larger than chart timeframe, but not so large that too many bars would be necessary. Then the quotient is calculated by dividing the chosen timeframe (value in seconds) by the chart's timeframe (value in seconds).
Then take that quotient and multiply it by the chosen length. This gives us how many bars of the chart's timeframe would be used in calculating the higher timeframe Moving Average
Use the value to calculate a moving average of choice (SMA,EMA,WMA,LRC,DEMA,TEMA,TRIMA,FRAMA) thanks to @TradingView 's ta library () and @alexgrover 's () for their functions supporting series as length, making this possible.
Basically, get how many of the current chart's bars are in the higher timeframe moving average and use that as the length for calculation using chart's timeframe.
If the higher timeframe relative is too large relative to chart's timeframe, due to bar referencing limits some combinations may not be possible under current limitations, but most will work by either moving chart's timeframe higher or higher timeframe lower assuming you aren't trying to do something too extreme like plotting a weekly moving average onto a 30 second chart etc.
VHF Adaptive Linear Regression KAMAIntroduction
Heyo, in this indicator I decided to add VHF adaptivness, linear regression and smoothing to a KAMA in order to squeeze all out of it.
KAMA:
Developed by Perry Kaufman, Kaufman's Adaptive Moving Average (KAMA) is a moving average designed to account for market noise or volatility. KAMA will closely follow prices when the price swings are relatively small and the noise is low. KAMA will adjust when the price swings widen and follow prices from a greater distance. This trend-following indicator can be used to identify the overall trend, time turning points and filter price movements.
VHF:
Vertical Horizontal Filter (VHF) was created by Adam White to identify trending and ranging markets. VHF measures the level of trend activity, similar to ADX DI. Vertical Horizontal Filter does not, itself, generate trading signals, but determines whether signals are taken from trend or momentum indicators. Using this trend information, one is then able to derive an average cycle length.
Linear Regression Curve:
A line that best fits the prices specified over a user-defined time period.
This is very good to eliminate bad crosses of KAMA and the pric.
Usage
You can use this indicator on every timeframe I think. I mostly tested it on 1 min, 5 min and 15 min.
Signals
Enter Long -> crossover(close, kama) and crossover(kama, kama )
Enter Short -> crossunder(close, kama) and crossunder(kama, kama )
Thanks for checking this out!
--
Credits to
▪️@cheatcountry – Hann Window Smoohing
▪️@loxx – VHF and T3
▪️@LucF – Gradient
EMA crossover (daily TF)This strategy is only applicable for daily timeframe only. EMAs have been smoothened out to make sure to include volatility glitches that may occur. I have used following conditions:
>EMA crossover of two frames already occurred
> Significant volume in the candle
> Candles are properly bullish or bearish not doji
> price is near EMA crossover
> trading stoploss to reduce risk as price follows the trend
Positive feedbacks are welcome for incorporation.
NSE:SRF
Multiple Moving AveragesThis script plots up to five Moving Averages , either Simple or Exponential (9, 20, 50, 100 and 200 days period by default).