Moving Averages System - DurbtradeMoving Averages System - Durbtrade
1 indicator... customizable.
Displays up to 4 independent Moving Averages (MA's) at once.
Each MA can be 1 of 6 "MA Types" : SMA, EMA, WMA, VWMA, HMA, or DEMA.
There are 7 individual fills...
4 "MA/Source Fills" and 3 "MA/MA Fills".
The "Source" is selectable,
and there is a "Source Plot" option
to display a plot of the source.
No max value for MA "Length".
Each MA has what I call a "Length Multiplier",
and each MA has its own "Offset".
The colors of each MA,
as well as the Source Plot,
can be up/down "Color-Changing", or solid.
"Line Thickness" is unlimited.
Each of the 3 "MA/MA Fills" allow you to select which 2 of the 4 MA's to fill between!
All 7 fills are customizable by above/below colors, and opacity.
All 7 fills include a "Color Swap" option,
in the case that you need to switch the display of the above-color to the below-color,
and the below-color to the above-color!
All plots are scripted to be drawn visually in front of all fills!
Lastly, you can turn off the display of the MA plots and the Source Plot...
allowing the display of only fills!
--------------------------------------------
--------------------------------------------
Let's take a more detailed look!
First, let's go through the settings, and how to use the Moving Averages System.
You can divide the Inputs tab of the indicator settings into 3 main sections...
1 - Moving Averages
2 - Source Plot, and MA/Source Fills
3 - MA/MA fills
Let's discuss the first section, which is where we set up our MA's.
Here, we see the parameters for our 4 Moving Averages :
All 4 MA's can be customized here in the following ways...
- Toggle ON/OFF by checking the checkbox
- Length
- Length Multiplier
- Type (SMA, EMA, WMA, VWMA, HMA, or DEMA)
- Up/Down Color Change ON/OFF
- Line Thickness
- Offset
(The Plot Styles, Up/Down/Solid Colors, and Opacities of all 4 MA's
are customizable under the Style tab of the indicator settings)
There are no maximum value limitations for Length, Line Thickness, and Offset.
Of note, the "Length Multiplier" multiplies the "Length" value by a chosen integer.
This can be used to incrementally scan a wide spectrum of lengths very quickly.
Or it can be used to maintain ratios while increasing the MA display lengths...
just multiply all lengths by the same number.
It can also be used to easily create a moving average ribbon
by using multiple Moving Average Systems all at once.
Or, it can be another method to set up higher-timeframe MA's on a lower-timeframe chart...
for example, if both the chart and indicator are on the 1Hour timeframe,
you can multiply all of your set lengths by 24
to see the 1Day MA's of those same lengths on the 1Hour chart.
Next, lets look at the second section of the Inputs tab of the indicator settings,
where we edit the "Source Plot" and "MA/Source Fills".
We can turn ON/OFF the "Source Plot" -
which plots a line of the "Source" that you have selected -
and edit the parameters :
Checking the "Source Plot" box turns the "Source Plot" ON/OFF.
You can turn Up/Down Color Change ON/OFF,
and adjust Line Thickness and Offset.
(The Plot Style, Up/Down/Solid Colors, and all Opacities of the Source Plot
are customizable under the Style tab of the indicator settings.)
Next is where you can turn ON/OFF and edit each "MA/Source Fill".
Checking the "MA#1/Source Fill" box turns on the fill between MA#1 and the source.
You can choose the color and opacity for the above-color and the below-color.
Need to switch the display of the two colors?... turn on "Color Swap" to easily do just that.
The remaining 3 MA/Source Fills work in the same exact way...
turning on a fill between the associated MA#, and the source.
In total, there are 4 MA/Source Fills... 1 for each MA.
Note that neither the Source Plot, nor any of the MA's, need to be turned on
in order to use the MA/Source Fills.
Finally, lets look at the third section of the Inputs tab of the indicator settings.
This is where we can edit the 3 "MA/MA Fills".
An MA/MA Fill allows you to select any 2 of the 4 MA's that you have set,
and fill the space between them with color :
Checking the MA/MA Fill box turns ON/OFF the associated MA/MA Fill.
Below each ON/OFF switch are 2 boxes where you can select the 2 MA's that you want to fill between.
Select the 2 MA's that you want to use according to their MA#'s.
Next, you have the Above/Below Color/Opacity for the associated MA/MA Fill,
and lastly, the Color Swap option.
The numerical order of the MA#'s that you select here is of no concern,
because each MA/MA Fill has that "Color Swap" option...
and, as before, this swaps the display of the above-color and the below-color.
Note that the MA's do not need to be turned on
in order to use the MA/MA Fills.
--------------------------------------------
Additional Notes :
All colors and opacities of this indicator can be customized.
All fills can have above/below colors, and all plots can have up/down colors.
All fills and plots can be one static color, too.
All plots can be 1 of 10 plot styles:
Line, Line with Breaks, Step Line, Step Line with Diamonds, Histogram,
Cross, Area, Area with Breaks, Columns, or Circles.
All plots use the same single "Source", which is selectable.
And don't forget... you can try applying this indicator to other indicators!
--------------------------------------------
Now, let's take a look at some examples of the Durbtrade Moving Averages System in action!
All 4 MA's plots on, MA Type is SMA, color-changing on, lengths 50, 100, 150, and 200 :
Add the Source Plot, and all 4 MA/Source Fills :
Add the 3 MA/MA fills :
Turn off candles visibility, and turn off MA color-change :
Turn off the MA plots :
Turn off the Source Plot :
...
Here are some other images using the Multi Moving Average Tool :
Here it is on the 1Second :
Here it is on the 3Day :
Here is your 1Day SMA DeathCross :
Use 3 Moving Average Systems at once to build your own EMA Ribbon :
Compare 4 different MA types, all with the same length :
--------------------------------------------
Script Stats :
Pinescript Version : 5
Code Length : 149 Lines
Total Plots : 16
- Visible Plots : 5 (4 MA Plots, 1 Source Plot)
- Invisible Plots : 11 (4 MA Plots, 1 Source Plot, 6 MA/MA Fill Plots)
Total Fills : 7 (4 MA/Source Fills, 3 MA/MA Fills)
Total Colors/Opacities : 29
Total Unique Variables : 92
- Input Variables : 69
- Unique Output Variables : 23
--------------------------------------------
Final Thoughts :
I'm excited to share the Durbtrade Moving Averages System!
I think that this indicator has a wide range of MA-related applications,
an easy-to-use interface with maximum customization, and unique fill features...
all in one indicator.
I feel that it is a quick and useful tool
whether you are just plotting a few moving averages...
or you are creating intense kaleidoscopic tidal waves of colored data!
Either way, I think it is pretty awesome,
and so, I wanted to share it with you...
I hope that you enjoy it and find it useful!
- Please feel free to comment your thoughts, critiques, or suggestions. They are all very helpful!
- Also, please feel free to comment any positive feedback, or awesome screencaps/ideas of the indicator in action!
- Check out my other Pinescript indicators if you like this one... they work well together.
- I hope that you find this script useful.
- Enjoy!
--------------------------------------------
// Durbtrade
Averages
Buff Averages [CC]The Buff Averages were created by Buff Dormeier (Stocks and Commodities Feb 2001) and this is another hidden gem that is a combo of a volume weighted indicator and a moving average crossover system. It uses a special method to calculate the weighting based on volume. The colored line (fast buff) will follow the price closely and you use the other line to act as a trend confirmation. I have included strong buy and sell signals in addition to normal ones so strong signals are darker in color and normal signals are lighter in color. Buy when the line turns green and sell when it turns red.
Let me know if there are any other indicators or scripts you would like to see me publish!
Trader Set - Volume MetricThe last tool in my methodology set, another one of those tools that has unique unpublished formulas, this one purely for following volume and reading smart money's hand, YES it's possible. This indicator has few Alerts built in that you can use, will update the rest of the scripts for additional alerts. You can easily set the alert to play a sound that is not disturbing in long run and check mark open ending and have easy time being alerted when some crossings are happening.
Please, don't ask for access, only my students from my classes will have access to this indicator. The English version of the website and learning material is under development and the moment they get ready I will announce it under each related script.
MACD + AveragesA classic MACD with average peak and dip lines. The lighter green and red horizontal lines are the average peak and dip of the entire span, respectively. The second, bolder of the two lines are the averages of the peaks and dips above and below the overall peak and dip averages. The filled in color is to help visualize these averages and possible trade setups.
AveragesLibrary "Averages"
Contains utilities for generating averages from arrays. Useful for manipulated or cleaned data.
triangular(src, startingWeight) Calculates the triangular weighted average of a set of values where the last value has the highest weight.
Parameters:
src : The array to derive the average from.
startingWeight : The weight to begin with when calculating the average. Higher numbers will decrease the bias.
weighted(src, weights, weightDefault) Calculates the weighted average of a set of values.
Parameters:
src : The array to derive the average from.
weights : The array containing the weights for the source.
weightDefault : The default value to use when a weight is NA.
triangularWeighted(src, weights, startingWeight) Calculates the weighted average of a set of values where the last value has the highest triangular multiple.
Parameters:
src : The array to derive the average from.
weights : The array containing the weights for the source.
startingWeight : The multiple to begin with when calculating the average. Higher numbers will decrease the bias.
exponential(src) Calculates the exponential average of a set of values where the last value has the highest weight.
Parameters:
src : The array to derive the average from.
arrayFrom(src, len, omitNA) Creates an array from the provided series (oldest to newest).
Parameters:
src : The array to derive from.
len : The target length of the array.
omitNA : If true, NA values will not be added to the array and the resultant array may be shorter than the target length.
Average Change % (14-day)Simple script which calculates and shows the average change in a percentage format over a 14-day period.
Created due to the fact I couldn't find a percentage measure of average change when searching for it.
I have very little coding experience in Pine or otherwise so feel free to take and edit the script to make it a bit more user friendly.
Moving Average Ribbon [TheBearFighter]
This code was written using:
•Pine Script Coding Conventions.
This script provides a very useful tool for new community users and professionals. It puts at your disposal a Moving Average Ribbon by hand to graph and easily find the ones with the highest performance. The creation of this script was motivated because in free TradingView accounts there is a limit of 3 indicators by chart, and with this tool you can draw up to 32 MA's at the same time!
Choose one of 10 types of MA´s:
•KAMA Kaufman's moving average.
•HULL Hull moving average.
•TEMA Triple exponencial moving average.
•LSMA Least square moving average.
•DEMA Double exponencial moving average.
•ALMA Arnaud Legoux moving average.
•WMA Weighted moving average
•EMA Exponencial moving average.
•VWMA Volume Weighted moving average.
•SMA Simple moving average.
Use the tooltips to know the lengths of MA´s.
A main characteristic of the script is that the lengths are in days but when changing the lowest timeframes, the same daily resolution is maintained. This gives us extreme precision in intraday timeframes, e.g 30 minutes.
Once this is understood, we can turning the MA´s on/off, and changing the timeframe to our liking.
Available timeframes: M, W, D, 4H, 1H, 30m, 15m, 5m.
Also the MA´s are colored for easy visualization and know if they grow or decrease.
Thank´s to @midtownsk8rguy to let me know more about HEX colors.
Thank´s to @HPotter for his KAMA.
Average EnvelopeA script to calculate a support / resistance level which acts as either a bounce level or a flip level. This is rather a macro play guide than a day trade tool.
The average is calculated by taking into account monthly/weekly/daily highs and average them out.
The script also paints fib levels based on the values of the upper and the lower band.
While this was designed with a cryptocurrency market in mind (no 'close' values per-se) it holds with traditional markets as well.
Jackrabbit.modulus.AnalyzerThis is the module Analyzer for the Jackrabbit suite and modulus framework.
As the modulus framework has grown both in size and complexity, it has become ever increasingly difficult to evaluate the profitability a very complex multi-layered modules combined.
The Jackrabbit Analyzer module allows you to do just that. Connect this module to the end of your IoI chain and it will tell you the profitability of your current combination, using TradingView's strategy backtesting capabilities.
With this module connected to your IoI chain, you can literally watch in real time as the analyzer evaluates your current settings and updates each time you make a change in those settings, giving you a better and more realistic approach to what is possible with your current strategy.
While this module is not a substitute for paper trading, it significantly increases the construction and analysis of a multi-layered trading paradigm that can then be taken to a paper trader with a high level of confidence of success.
Only the signal line is displayed.
The Jackrabbit modulus framework is a plug in play paradigm built to operate through TradingView's indicator on indicatior (IoI) functionality. As such, this script receives a signal line from the previous script in the IoI chain, and evaluates the buy/sell signals appropriate to the current analysis.
This script is by invitation only. To learn more about accessing this script, please see my signature or send me a PM. Thank you.
TS - Trend Moving AveragesOverview
Simple trend indentification indicator based on a mix of SMA & WMA components.
Default settings built for the 1D chart with an optional 3rd fast MA that can be toggled.
Can be used alongside more advanced Tradespot indicators
Access
PM me, our indicators come as a wider package.
TS - Long Term Trading Algorithm - StrategyStrategy to the bespoke TS - Trading Algorithm. Highly profitable cryptocurrency trading model.
This script is long only profitable strategy- there is a script coming in the next few days for shorter timeframe long & short trading.
- Backtesting is from 2017.
- 0.05% commission
- 100% capital allocation per trade.
Access to both the backtesting strategy & indicator is paid - PM me for details.
TS - Trading Algorithm - StrategyStrategy to the bespoke TS - Trading Algorithm . Highly profitable cryptocurrency trading model.
Access to both the backtesting strategy & indicator is paid - PM me for details.
Indicator does not repaint and has no discretionary approach - you can follow blindly and take advantage of the performance.
Multiple Timeframe Five Moving AveragesThis allows you to plot up to 5 moving averages on your chart at once. You can either use the chart's current timeframe or select a custom timeframe for your 5 moving averages (for example, you can see the 200DMA on your 4h chart without having to adjust the moving average length). You can also choose amongst SMA , EMA , and HULLMA for each MA.
Multi Moving Averages @Hendo 4C (14 Types)A script containing 14 different types of Moving Averages, a total of 4 can be added per chart (allowing multiple Moving Averages under a smaller TradingView plan).
It also comes with: Adaptive coloring, settings for the source of calculations, customizable colors and lengths. Most importantly, as mentioned: 14 different types found below.
Simple Moving Average (SMA)
Exponential Moving Average (EMA)
Double Exponential Moving Average (DEMA)
Triple Exponential Moving Average (TEMA)
Running Moving Average (RMA)
Kaufman's Adaptive Moving Average (KAMA)
Hull's Moving Average (HMA)
Least Square Moving Average (LSMA)
Weighted Moving Average (WMA)
A. Legoux Moving Average (ALMA)
Volume Weighted Moving Average (VWMA)
Symetrically Weighted Moving Average (SWMA)
Smoothed Moving Average (SMMA)
Elastic Volume Weighted Moving Average (eVWMA)
The goal of creating this script was to allow people with a small TradingView subscription to have access to multiple Moving Averages. Of course it’s not unique in that use case, the thing that makes this script is unique is the fact that it comes with 14 different Moving Averages that can be selected independently. You want a RMA paired with 2 EMA’s and one HMA? Go ahead!
I’m open to add any requests that you guys might have. Feel free to ask so in the comments.
Check out my “Volatility Stop Loss Helper” too! And happy trading.
Last: I think it’s pretty clear to say that this was not “my idea” to build. But I found most of the similar scripts available pretty lacking in terms of settings and additions.
{{Settings overview}}
“Adaptive Colouring”: If enabled the Moving Average colours will be determined by their relation to price. If price is above the Moving Average it’s green, and red if price is below.
“Plot First MA”: Disable or enable the first moving average
“Moving Average Type 1”: The type of Moving Average that the first MA should be. 14 choices.
“Moving Average Length 1”: The length of the first Moving Average.
“Source of Calculation MA1”: The source that is used to calculate the Moving Average. Default is “Close”.
“Plot Second MA”: Enable if you want to use 2 Moving Averages
Settings are the same as described above. But then for the second MA.
“Plot Third MA”: Enable if you want to use 3 Moving Averages
Settings are the same as described above. But then for the third MA.
“Plot Fourth MA”: Enable if you want to use 4 Moving Averages
Settings are the same as described above. But then for the fourth MA.
It is recommended to click the little left arrow to hide your indicators in the top corner while using this indicator. Due to the length of the settings menu.
Settings can be added due to requests. Please check the update notes below:
Multiple Moving AveragesThis is an indicator with 4 moving average slots and 6 exponential moving average slots
It also has bollinger bands and a volume weighted moving average slot
Feel free to edit this and add/remove some and publish your own
Krowns 10 PACK Combo (5 EMAs, 5 SMAs) - v2Version 2 - Krowns Crypto 10 pack moving average set - written by "Kick Back Time" also known as Mr.Scrogers Neighborhood
...after receiving a lot of likes from the first version I thought I would go ahead and put out the updated version that I've been using
There's a few things I've changed to make it easier to adapt to.
This set is very similar to what Krown uses - I rarely look at the 100 SMA, but I do like the 128 SMA, so I made it default over the 100...
It's all adjustable in values, colors, line thicknesses, etc... it's all good
Tweeks/Improvements:
1) now has a shorter overlay title so it takes up less space on the chart and is less distractive
2) the 30, 50 and 128 SMA's are now default pink which stand out well and are easier to associate as SMA's
10/20 MA Cross-Over with Heikin-Ashi Signals by SchobbejakThe 10/20 MA Heikin-Ashi Strategy is the best I know. It's easy, it's elegant, it's effective.
It's particularly effective in markets that trend on the daily. You may lose some money when markets are choppy, but your loss will be more than compensated when you're aboard during the big moves at the beginning of a trend or after retraces. There's that, and you nearly eliminate the risk of losing your profit in the long run.
The results are good throughout most assets, and at their best when an asset is making new all-time highs.
It uses two simple moving averages: the 10 MA (blue), and the 20 MA (red), together with heikin-ashi candles. Now here's the great thing. This script does not change your regular candles into heikin-ashi ones, which would have been annoying; instead, it subtly prints either a blue dot or a red square around your normal candles, indicating a heikin-ashi change from red to green, or from green to red, respectively. This way, you get both regular and heikin ashi "candles" on your chart.
Here's how to use it.
Go LONG in case of ALL of the below:
1) A blue dot appeared under the last daily candle (meaning the heikin-ashi is now "green").
2) The blue MA-line is above the red MA-line.
3) Price has recently breached the blue MA-line upwards, and is now above.
COVER when one or more of the above is no longer the case. This is very important. You want to keep your profit.
Go SHORT in case of ALL of the below:
1) A red square appeared above the last daily candle (meaning the heikin-ashi is now "red").
2) The red MA-line is above the blue MA-line.
3) Price has recently breached the blue MA-line downwards, and is now below.
Again, COVER when one or more of the above is no longer the case. This is what gives you your edge.
It's that easy.
Now, why did I make the signal blue, and not green? Because blue looks much better with red than green does. It's my firm believe one does not become rich using ugly charts.
Good luck trading.
--You may tip me using bitcoin: bc1q9pc95v4kxh6rdxl737jg0j02dcxu23n5z78hq9 . Much appreciated!--
FOREX EMAsPretty simple here - this is the base EMAs I suggest most traders use in the FOREX market for swings and scalp trading. Works well on 5m, 15m, 1H, 4H, and daily trading if you design an edge to interpret the relationship these averages of price are telling you.
The 9EMA is not as valuable on the 1HR timeframe.
BTC Multi-Premiums — SharkCIAShows the price of BTC on multiple exchanges, helps to see which is leading in price and if the current price is above or below average.
For use on COINBASE:BTCUSD unless you customize it
To use on other platforms (Bitfinex, BitMEX, etc) go to options and enable "Show Coinbase" then hide whatever exchange you're currently on.
To disable exchanges, uncheck them under the Styles tab.
Mash Moving AveragesThis tweaked Moving averages script allows you to edit your Moving Averages to whatever you like, plus you have the option of choosing EMA and SMA
MIA - Most Important AveragesUn unico indicatore vi mostrerà le due medie più importanti, SMA 50 e SMA 200.
Evidenzia inoltre gli incroci fra le medie
-------
A single indicator will show you the two most important averages, SMA 50 and SMA 200
It also highlights the crossings between the averages