Simple Moving Average (SMA)
Three Moving AveragesThis is simply three moving averages in the same indicator, with the possibility to change the source, length, offset and type on every moving average (Simple, Exponential, Weighted, Volume-weighted, Triple EMA or a moving average that uses RSI ).
If you want to disable any of the moving averages, then do that under the "Style"-tab by unchecking the box for that moving average.
Fib,Guppy Multiple MA(FGMMA)(A/D & Volume Weight,SMA,EMA)[cI8DH]Features:
- 3 + 12 MAs (12 is chosen because Guppy has 12 MAs)
- MA types can be set to Simple, Exponential, Weighted, and Smoothed
- Volume weight can be applied to all available MAs (the built-in VWMA uses Simple MA)
- It is possible to count in only effective portions of the volume in the equation by using Accum/Dist Volume Weight
- Secondary smoothing (useful when volume weight is enabled)
- Predefined MA sets based on Fibonacci sequence (2,3,5,8,.., 377), Guppy (3,5,8,10,12,15 &30,35,40,45,50,60), and cI8DH (2,3,5,8,12,17 & 30,34,39,45,52,60)
Recommended settings:
- hlc3 as input source captures all the essential information encapsulated in a candle. I'd use hlc3 as the default option. In uptrend, "low" and in downtrend, "high" might give more relevant results when using MAs for structural analysis of a market. For commonly used MAs (EMA20, SMA50,100,200), "close" should be used due to their self-fulfilling prophecy effect.
- When you have volume weight above 0, you may want to use secondary smoothing.
- Try not to use Simple MA for smaller lengths (below 20). Sharp changes in the past (right before the period specified by the length) will affect the current value of MA dramatically leading to confusion.
- I am using the first 3 MAs for SMA 50,100,200. You can disable them from the MA type selector all at once when using Fib or Guppy ribbons.
MA-based analysis:
There are different ways of structuring a market. Geometrical (trend lines, channels, fans, patterns, etc) and Fib retracement-based structuring is very common among traders. MAs give an alternative way of analyzing markets. MA ribbons such as Guppy (6 slow and 6 fast-moving MAs) are popular for analyzing market flow. IMO default Guppy sets are a bit random as the numbers do not have an elegant sequence. So I proposed my sets based on increasing sequene spacing (+1). These two MA ribbons are good for market flow analysis but the spacing of the MAs are not ideal for structuring a market. Ribbons based on the Fib sequence is a better choice for structuring a market. This is the equivalent of Fib channels but in a more dynamic form. Among other things, MA Fib ribbon can be used to assess market momentum and to compare different stages of a market. Here are two "educational-only" examples:
Notes:
- Smoothed MA with length L = Exponential MA with length 2*L-1
- Read the background section in my ADP indicator to understand how A/D Volume is calculated
BAHbO - multi indicators and signals SMA,BB,RSI,Engulfing,Signal4 SMAs - 9,21,55,200
Bollinger Bands - 21
Engulfing patterns
Fractal Support Resistance
Bullish and Bearish Engulfing signals
Engulfing Candles
Bollinger Bands + RSI combined indicator with signals
Multiple moving averages EMA and SMA (up to 4 each)Simple script lets you add multiple moving averages under one indicator. Up o 4 EMAs and 4 simple MAs. Specify the time frames for each one individual, and turn off the ones you don't need under "Style" tab in settings. Have fun.
3 MA - EMA13 SMA30 SMA200The 3 most important moving averages:
EMA13 - gives institutional bias (enter trade at the touch of this line)
SMA 30 - medium term trend (bullish if price stays above, bearish if price stays below)
SMA 200 - long term trend (bullish if price stays above, bearish if price stays below)
By Pequet gist.github.com
3riple Moving AverageBITFINEX:ETHUSD
Description:
Mixing three Simple Moving Averages (7 - 20 - 65) to determine "uptrends" and "downtrends".
Uptrend: When the 7 Line is upper than 20, And 20 Line is upper than 65 that usually means the price is trending up.
Downtrend: When the 7 Line is lower than 20, And 20 Line is lower than 65 that usually means the price is trending down.
Moving Average & PriceBars that change color to red/green when the price closes below/above Simple MA
Daily SMA x2 With InputsIdeal for Intraday charts when you want to know the daily SMAs or for daily charts if you want to save on an indicator
Daily SMA x2 With InputsIdeal for Intraday charts when you want to know the daily SMAs or for daily charts if you want to save on an indicator
Moving Averages 50 & 200Moving Average Indicator for trading 50MA and 200MA crossovers (golden cross and death cross).
A golden cross is considered a bullish sign; it occurs when the 50-day moving average rises above 200-day moving average. A death cross is considered a bearish sign; it occurs when the 50-day moving average drops below 200-day moving average.
Continuous Point [zauoyds]This script was made to find in real time the "Ponto Contínuo" setup, made by trader Stormer.
When the prices touch on SMA2 and it's goin up, the entry long is ploted.
If the SMA21 is going down, the entry short is ploted.
Moving Average Mean Reversion StrategyA basic mean-reversion strategy. Shorts when the close is 10% above the MA, and goes long when it's 10% below the MA.
Script functionality test - work in progress (2RS + BB + MA)This is the first script I've written. Its sole purpose is to make me learn a bit of pine script. Its not intended to trade live.
Feel free to modify it if you wish and let me know if you do it. Also any comments are welcome!
Also i need help in two things:
1. Im unable to print the "in-strategy" rsi on chart
2. I want to ignore the first buy signal after each sell. I was looking to ad a counter to the signals but im unable to do it.
Any help will be greatly appreciated!
SMA Diff stratHello Tradingviewers
I don’t claim that anything I share is original, but I will never intentionally steal someone else’s work other than using plug and play pieces of code that are shared publicly
This strategy's code is the same from the previous "study" post that can be found here:
It's primarily made for back-testing
--------------------------------------------------------------------------
Indicator info:
In addition to the main entry/exit points marked in green/red circles, this indicator as many others can be used in more than one way, see the chart for details
Any kind of feedback is appreciated, coding advice and such…
Feel free to use and share but please no commercial use. Happy trading everyone
--------------------------------------------------------------------------
ETH/TUSD: 0xc66c009140553ef5dec23045399d9dcfddd096a5
LTC: LW4TP527c3HK6FnewXRZt3i6jnrhAynJMA
XVG: DE7uD66rYdmpqe4Fd3MxsXv7F1kNfCrzLk
Moving averages (EMA & SMA) by magariMoving averages (EMA & SMA)
The script contains moving averages:
- Exponential Moving Averages: EMA20, EMA50, EMA100, EMA200
- Simple Moving Averages: SMA50, SMA100 & SMA200.
You can display all of them in one chart and they count as one indicator (perfect for non pro users) switch each of them on or off and change their colors and line widths.
Simple Moving Averages (7, 30, 50, 100, 200)7, 30, 50, 100, 200 simple moving averages, bundled in one indicator (for users who are using the free TradingView service and can only load limited number of indicators at any given time).
You can turn each moving average on or off at will and change the colors.
SMA Diff StdHello Tradingviewers
I don’t claim that anything I share is original, but I will never intentionally steal someone else’s work other than using plug and play pieces of code that are shared publicly because that’s how I’m learning to code in the first place
I started learning to trade and code on this very platform few months ago, AKA noob on both fronts and I still am. Many thanks to those of you who share their ideas, studies and strategies with us for free. I personally owe you most of what I know trading-related
Long story short, I ended up experimenting with all different kinds of code, some of it has no kind of logic behind it at least for me, but the results are somehow interesting, that’s why I thought about sharing them, also it is fun anyway 😊
--------------------------------------------------------------------------
Indicator info:
- Alert conditions implemented “autoview friendly”
- Use Heikin Ashi candles for better smoothing
- WARNING: Avoid use in a bear market
Any kind of feedback is appreciated, coding advice and such…
Feel free to use and share but please no commercial use. Happy trading everyone
--------------------------------------------------------------------------
As crypto is my only source of income, donations are most welcome if any of my work prove useful to you. Just a cup of tea that is
ETH/TUSD: 0xc66c009140553ef5dec23045399d9dcfddd096a5
LTC: LW4TP527c3HK6FnewXRZt3i6jnrhAynJMA
XVG: DE7uD66rYdmpqe4Fd3MxsXv7F1kNfCrzLk
Crypto optimized Ichimoku and 5 variable SMA / EMAThis script has the option for showing up to 5 moving averages with options to toggle between SMA / EMA. Also includes crypto optimized Ichimoku cloud.
********This script was pieced together from various other's contributions from this site, and I cannot remember who the original authors are*******
Im just combining them to help others with free accounts and limited indicator availability like myself.
I hope this can help someone! Thank you and enjoy.
Crypto optimized Ichimoku and 5 variable SMA / EMAThis script has the option for showing up to 5 moving averages with options to toggle between SMA / EMA. Also includes crypto optimized Ichimoku cloud.
********This script was pieced together from various other's contributions from this site, and I cannot remember who the original authors are*******
Im just combining them to help others with free accounts and limited indicator availability like myself.
I hope this can help someone! Thank you and enjoy.