Moving Average Multitool CrossoverAs per request, this is a moving average crossover version of my original moving average multitool script .
It allows you to easily access and switch between different types of moving averages, without having to continuously add and remove different moving averages from your chart. This should make backtesting moving average crossovers much, much more easier. It also has the option to show buy and sell signals for the crossovers of the chosen moving averages.
It contains the following moving averages:
Exponential Moving Average (EMA)
Simple Moving Average (SMA)
Weighted Moving Average (WMA)
Double Exponential Moving Average (DEMA)
Triple Exponential Moving Average (TEMA)
Triangular Moving Average (TMA)
Volume-Weighted Moving Average (VWMA)
Smoothed Moving Average (SMMA)
Hull Moving Average (HMA)
Least Squares Moving Average (LSMA)
Kijun-Sen line from the Ichimoku Kinko-Hyo system (Kijun)
McGinley Dynamic (MD)
Rolling Moving Average (RMA)
Jurik Moving Average (JMA)
Arnaud Legoux Moving Average (ALMA)
Vector Autoregression Moving Average (VAR)
Welles Wilder Moving Average (WWMA)
Sine Weighted Moving Average (SWMA)
Leo Moving Average (LMA)
Variable Index Dynamic Average (VIDYA)
Fractal Adaptive Moving Average (FRAMA)
Variable Moving Average (VAR)
Geometric Mean Moving Average (GMMA)
Corrective Moving Average (CMA)
Moving Median (MM)
Quick Moving Average (QMA)
Kaufman's Adaptive Moving Average (KAMA)
Volatility-Adjusted Moving Average (VAMA)
Modular Filter (MF)
Movingaveragecrossover
DC Breakout Strategy | This is simplicity at its finest.As the title already describes: this is a Donchian breakout strategy. This strategy, as of now, only goes long. It goes long when the price close makes a new high and the 8 day moving average is above the 32 day moving average. The strategy exits the trade if the price breaks the atr trailing stop of * 3 or the 8 day moving average crosses below the 32 day moving average.
This is simplicity at its finest.
+ ALMA Trend DetectorHi, again. Here I have a nice moving average script designed to get you into trends and keep you in trends until the opportune moment comes to exit. And, as with any indicator, or suite of indicators, designed to get one into trends and keep him/her in a trend, they do not do so well in chop/ranging/mean reversion conditions, though I would say this one is better than most, otherwise I wouldn’t be fitting it into my trading system.
This is a huge improvement, in my opinion, over an indicator I found recently, and like quite a bit by samsmilesam, which you can find here: www.tradingview.com
In this adaptation of his script I changed a bunch of things, but kept the spirit of the indicator true.
This indicator utilizes three different length Arnaud Legoux moving averages, known for being extremely low lag, and incredibly adjustable (though I find the original authors settings excellent).
While he has buy and sell signals triggering regardless of the fast and slow ma’s position to the trending ma, I actually take the trending ma into account. Furthermore, I wouldn’t say I coded in signals indicating buying and selling, but that I coded in signs that answer the question “what kind of trend are we in?” as well as possible ideal trade exits (which couuuuuld also be taken as entries, but aren’t necessarily meant to).
So, the deets on this:
1) 5 period, 20 period, and 70 period ALMAs. Fast, slow and trend. All customizable independent of each other (unlike the sam’s). All three also change color based on their own individual trends.
2) Uptrends are identified when price is closing above the Trend ma, and both Fast and Slow ma’s are above the Trend ma, and vice versa for downtrends. There are in-between points when a trend is not identified, and this is when price closes above or below the Trend ma, but the other two ma’s have not crossed it. Background color is used to identify the trend.
3) Trade exits are based on closing price and Fast and Slow ma’s relative to the Trend ma, once again. To signal exiting an uptrend price must close below both Fast and Slow ma’s and both Fast and Slow ma’s must be above the Trend ma; and vice versa for exiting a down trend. Obviously there may be false signals, but there are fewer signals, and I think it’s a better strategy than most. I prefer to filter out as much noise as possible. There’s little worse in my opinion than an indicator that gives too many false signals, but obviously it’s impossible to remove them all. Some discretion is necessary on the part of the trader.
4) So what does this mean for trade entries? Well, you can certainly enter a trade on a signal for an exit (go long on a short exit signal) if the chart looks good for that. Or you can wait for trend confirmation with the background color, entering on a pullback to the ma’s perhaps. Or you can enter in the “no man’s land” in between trends. If you’ve exited and price continues on trending your best bet would be to wait for a pullback into the ma’s or a s/r level, or look for the next candle that closes beyond the Fast and Slow ma’s. These are just thoughts of mine.
5) Lastly, there are alert conditions set for uptrends, downtrends and both long and short exits!
Enjoy the indicator! I think with some sort of bands or channels for those times when the market is rangebound or in chop, you could really crush it with this.
+ TRSIHello again.
Here I have an improved version of the RSI that is similar to my "+ %B" indicator (that, an improved version of the %B).
This version of the RSI includes candle coloring for bullish or bearish bias (is the RSI above or below its median line?), as well as candle coloring for overbought and oversold areas. Additionally, there is an option for coloring candles based on the RSI crossing up or down its moving average.
So, that takes us on to the moving average. You have a selection of these, namely: SMA, EMA, DEMA, TEMA, HMA, JMA, LSMA, MF, SMA (the default), TMA, VAMA, and WMA. These are all very different, so play around and choose one that fits your trading style, or whatever it is you're looking for (or even turn it off if you like!).
I've added alerts, so you can be alerted based on wherever the RSI goes. Is it oversold? Did it just cross the median? Did it cross up or down its MA?
I hope you enjoy it!
Relative strength DivergenceThe following indicator uses relative comparison of two assets by the formula n/s3, where n is the t asset on the screen while s3 the underlying assets it is being compared to. The usefulness of the indicator is to primarily compare the assets being traded like BTC (most prominent crypto with largest market cap), with some other crypto like TRX(this has a relatively smaller market cap). Since we get a broader market view through relative comparison of the two assets, the most important function is to find the edge through divergences. Just like RSI the divergences rules would be the same and most important trades would be trades in the direction of the trend along accompanies by divergences that are in line with the trend. Simple divergences work for the best trades with default settings. Although BTCUSD is the default asset to compare with it can be switched with any other asset as well, but it is very much preferred that one uses some type of index as the base asset for comparison. Other than that for simple trading the trend MA crossover can also be used as a signal for simple trend following.
Multiple Time Frames Moving Averages (x3)This indicator is a set of 3 moving averages for which you can configure the type of the moving averages , their length , and of course the time frame . The moving averages you can choose from are:
- Simple Moving Average ( SMA )
- Exponential Moving Average ( EMA )
- Weighted Moving Average ( WMA )
- Running Moving Average (RMA)
- Hull Moving Average ( HMA )
- Volume Weighted Moving Average ( VWMA )
- Arnaud Legoux Moving Average ( ALMA )
The time-frames you can choose from - minutes (1, 3, 5, 15, 45), hours (1, 2, 3, 4, 12), days (1, 3), weekly or monthly .
Overall, it is a minimalistic indicator. No major improvements or trading logic like some of my other indicators, but I did make it slightly easier to use and visually appealing. The MAs' colors change from light to dark green/blue/red depending on the trend - bullish or bearish respectively. Initially, those were changing from green to red (based on direction) but it became a bit confusing when they started crossing each other. Anyway, feel free to change those colors to whatever you like.
If you have suggestions on how to improve this indicator or ideas about new ones, please drop me a line. Thanks.
Multi MA MTF SandBox StrategyA moving averages SandBox strategy where you can experiment using two different moving averages (like KAMA, ALMA, HMA, JMA, VAMA and more) on different time frames to generate BUY and SELL signals, when they cross.
Great sandbox for experimenting with different moving averages and different time frames.
== How to use ==
We select two types of moving averages on two different time frames (or the same time frame):
First is the FAST moving average that should be at the same time frame or higher.
Second is the SLOW moving average that should be on the same time frame or higher.
== Buy and Sell Signals ==
When FAST moving average cross over the SLOW moving average we have a BUY signal (for LONG)
When FAST moving average cross under the SLOW moving average we have a SELL signal (for SHORT)
WARNING: Using a lower time frame than your chart time frame will result in unrealistic results in your backtesting and bar replay.
== NOTES ==
You can select BOTH, LONG, SHORT or NONE in the strategy settings.
You can also enable Stop Loss and Take Profit.
More sandboxes to come, Follow to get notified.
Like if you like and Enjoy!
Can also act as indicator by setting 'What trades should be taken' to 'NONE':
Anticipated Simple Moving Average Crossover IndicatorIntroducing the Anticipated Simple Moving Average Crossover Indicator
This is my Pinescript implementation of the Anticipated Simple Moving Average Crossover Indicator
Much respect to the original creator of this idea Dimitris Tsokakis
This indicator removes one bar of lag from simple moving average crossover signals with a high degree of accuracy to give a slight but very real edge.
Moving Averages
A moving average simplifies price data by smoothing it out by averaging closing prices and creating one flowing line which makes seeing the trend easier.
Moving averages can work well in strong trending conditions, but poorly in choppy or ranging conditions.
Adjusting the time frame can remedy this problem temporarily, although at some point, these issues are likely to occur regardless of the time frame chosen for the moving average(s).
While Exponential moving averages react quicker to price changes than simple moving averages. In some cases, this may be good, and in others, it may cause false signals.
Moving averages with a shorter look back period (20 days, for example) will also respond quicker to price changes than an average with a longer look back period (200 days).
Trading Strategies — Moving Average Crossovers
Moving average crossovers are a popular strategy for both entries and exits. MAs can also highlight areas of potential support or resistance.
The first type is a price crossover, which is when the price crosses above or below a moving average to signal a potential change in trend.
Another strategy is to apply two moving averages to a chart: one longer and one shorter.
When the shorter-term MA crosses above the longer-term MA, it's a buy signal, as it indicates that the trend is shifting up. This is known as a "golden cross."
Meanwhile, when the shorter-term MA crosses below the longer-term MA, it's a sell signal, as it indicates that the trend is shifting down. This is known as a "dead/death cross."
MA and MA Cross Strategy Disadvantages
Moving averages are calculated based on historical data, and while this may appear predictive nothing about the calculation is predictive in nature.
Moving averages are always based on historical data and simply show the average price over a certain time period.
Therefore, results using moving averages can be quite random.
At times, the market seems to respect MA support/resistance and trade signals, and at other times, it shows these indicators no respect.
One major problem is that, if the price action becomes choppy, the price may swing back and forth, generating multiple trend reversal or trade signals.
When this occurs, it's best to step aside or utilize another indicator to help clarify the trend.
The same thing can occur with MA crossovers when the MAs get "tangled up" for a period of time during periods of consolidation, triggering multiple losing trades.
Ensure you use a robust risk management system to avoid getting "Chopped Up" or "Whip Sawed" during these periods.
Variable Length Moving AverageThe Variable Length Moving Average was created by George R. Arrington Ph.D. (Stocks & Commodities V. 9:6 (219-223)) and I'm really loving this indicator. It is a great moving average that hugs the price very closely and it is fully adjustable to your needs. It detects signals extremely well and I have color coded the moving average line to make it very easy to interpret.
This is not to be confused with the Variable Moving Average created by Tushar S. Chande and as of now I haven't seen any other script for this moving average out there yet.
Please let me know if you would like me to write any other scripts for indicators you would like to see!
7EMA_5MA (G/D + Bias + 12/26 Signal)This script alow you to survey multiple crossing signals as Golden/Death cross (MA50/200), Institutional Bias (EMA9/18), or EMA 12/26 crossing. You can show/hide all EMAs/MAs and show/hide all signals. Default config displays EMA 50/100/200 and MA 20. Full script includes display of EMA 9/18/12/26/50/100/200 and MA 20/21/50/100/200.