Line Colorizer - DurbtradeThe Line Colorizer is a simple indicator that can plot up/down-colorized lines for up to 10 unique individual sources!
Plot up/down colors are based on whether the current value is above or below the previous value.
Also included is a separate color for when the current value is equal to the previous value.
All colors can be modified, along with the plot styles.
--------------------------------------------
--------------------------------------------
Here is the Inputs tab of the Settings menu :
As you can see, you can plot a colorized line of up to 10 individual sources!
Checking the checkbox turns on that particular colorized plot,
and clicking on the drop down menu allows you select the source for that plot.
The plot styles, up/equal/down colors, and opacities
are customizable under the Style tab within the Settings menu :
Overall, it is pretty easy to use.
--------------------------------------------
Let's look at some examples of the Line Colorizer being used...
Colorize a basic Bollinger Bands indicator :
Want to colorize 3 EMA's? Go for it :
Spice up the standard MACD salad :
Customize the colors of your RSI's :
Try using the Line Colorizer on all of your favorite indicators.
--------------------------------------------
Script Stats :
Pinescript Version : 5
Code Length : 44 Lines
Max Unique Input Sources : 10
Max Visible Plots : 10
Total Colors/Opacities : 30
--------------------------------------------
Tips :
Typically you will want this indicator to be on a layer above (in front of) the source plot layer.
Stay mindful of line thicknesses,
and whether the original source plot is still visible or not.
The final output of the colorized plots are drawn in numerical order,
so, Colorized Source #1 is drawn first, and will appear below Colorized Source #2 on the chart...
and so on, with Colorized Source #10 being drawn last, at the very top.
Final Thoughts :
I like having this indicator.
The idea and script is simple, and the indicator is practical.
It's one method of easily separating some of the aspects of color from your favorite indicators and scripts,
and then customizing those aspects to your liking.
Especially practical for those who do not want to learn about writing their own scripts.
I think that this indicator can be a useful tool in the shed,
used for customizing the visuals of multiple unique sources
that are all on the same price/value scale.
It can help increase chart clarity and/or detail...
whether using it on top of a main chart that is simple,
or on top of a standalone indicator that is crowded with oscillating information.
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.
- May your trades be successful!
--------------------------------------------
// Durbtrade
Durbtrade
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
Up/Down Indicator - DurbtradeA simple but unique indicator to show ONLY whether there is an increase or a decrease in price compared to the previous value.
Also includes a customizable SMA or EMA based "Smoothing Length" variable,
allowing the indicator to show whether the SMA or the EMA of the price
is up or down compared to the previous value.
An offset option is also included if you need it.
Settings :
Personal thoughts :
I wanted to have an indicator that showed ONLY whether the price is UP or DOWN from the previous value.
My logic was that I could have a more accurate perception of general up or down trend direction
if I removed the AMOUNT of increase or decrease happening from moment to moment over time.
From there, I added the SMA/EMA "Smoothing Length" and "Smoothing Type" variables into the script.
By increasing the value of the smoothing length above 1,
the indicator act as a color-changing moving average, except without showing an actual value.
"Smooth Length" acts just like the length of any other moving average...
When the value of the "Smooth Length" is = 1, the indicator shows whether PRICE is up or down.
When the value of the "Smooth Length" is = 50, the indicator shows whether the MOVING AVERAGE with a length of 50 is up or down.
When the value of the "Smooth Type" is = 1, the indicator is SMA based.
When the value of the "Smooth Type" is = 2, the indicator is EMA based.
As you can see in the main chart above, or in the picture below, I show the indicator in 2 different ways...
The indicator on the top shows price up/down action,
and the indicator on the bottom shows the 50 SMA up/down action :
Other key points :
The indicator height can be smashed down as small as possible and still remain 100% functional...
which is very important when chart real-estate is limited.
Here is an example of my main layout setup, with the Up/Down indicator on the top left :
As you can see, it takes up very little space, but still remains fully functional.
In the example above, I have it overlayed on the left chart price panel,
with the price visibility turned off.
If it is overlayed on the price panel like so, and you want to see both the indicator and price,
simply turn the price visibility on to see both.
Since the indicator displays itself merely by changing the color of the background,
layer order has no effect, and the indicator is always drawn in the background.
The Up/Down indicator can also be used in conjunction with other candle types
that sometimes display candle color differently than standard candles, such as heikin-ashi candles.
Just take note that the colors of the indicator may not match the colors of the heikin-ashi candles.
Finally, I looked very hard to find an indicator like this on TradingView, and found absolutely nothing.
I know that it is a simple concept, but I'm honestly surprised I couldn't find anything like it.
I have been using it for awhile now, and I'm proud of the results...
therefore, I'd like to share it with the community, along with my previously published indicators,
in the hope that you find it useful!
Outro :
A) As with my previous indicators,
this one was written while keeping information, color, clarity, chart real-estate, and customization in mind.
B) It is optimized to be displayed on all display setups...
for use on your own personal television, laptop, or cellular phone screen...
and on all chart zoom levels and layout styles.
C) Please feel free to comment your thoughts, critiques, or suggestions. They are all very helpful!
D) Check out my previous pine script indicators if you like this one. They work really well together.
E) I hope that you find this script useful.
F) Enjoy!
// Durbtrade
Stochastic RSI - DurbtradeDurbtrade Stoch RSI -
1) Stoch RSI
A) The K line can be customized to change color based on vertical direction.
B) The space between K line and D line can be filled with a color depending on whether K line is above or below the D line.
C) There are color-coded, cross-over and cross-under background fills, to signal when the K line crosses the D line.
D) K line is drawn in front of D line (D line is drawn behind K line).
E) Default values : K = 3, D = 4, RSI Length = 14, Stoch Length = 14
2) Horizontal Lines
A) Horizontal lines can be drawn automatically, so you don't have to draw them, and they don't extend past the current bar.
B) There are 11 customizable horizontal lines,
and each line is set to non-customizable increments (zero, 10, 20, 30, 40, fifty, 60, 70, 80, 90, hundred).
C) The 11 lines are divided into 2 groups:
a) 4 PAIRS of lines WITH fill options (10/90, 20/80, 30/70, 40/60... 8 lines total), and
b) 3 INDIVIDUAL lines WITHOUT fill options (zero, fifty, hundred).
D) The 4 fills give you the option to fill the space between each pair with a customizable color and opacity,
regardless of whether the lines themselves are drawn or not.
(all default values are what I feel work best for this indicator...
and initially, only the zero, fifty, and hundred lines are drawn automatically .
You may add the other lines if you choose to, by adjusting the opacity to your liking).
3) Conclusion
A) As with my previous indicators, this one maximizes information, color, discernment, clarity, and customization.
B) It is optimized for your ability to be able to easily customize the indicator according to your preferences...
for use on your own personal television, laptop, or cellular phone screen setup... and on all chart zoom levels and layouts.
C) Please feel free to comment your thoughts, critiques, or suggestions. They are all helpful!
D) Check out my previous pine script indicators if you like this one. They work really well together.
E) I hope that you find this script useful.
F) Enjoy!
//Durbtrade
RSI Relative Strength Index 3X - DurbtradeDurbtrade Triple RSI - 3 individual RSI's on 1 indicator, each distinguishable by length, as well as line color, thickness, opacity, and type.
(note: usable line TYPES are limited... try experimenting)
1) RSI's
A) Each RSI can be customized to change color based on RSI vertical direction (default = only RSI #1 changes color).
B) All 3 RSI's use a single Source (default Close).
C) You may customize the length of each RSI individually (I LOVE my default 14, 7, and 3!).
D) RSI #1 is the primary RSI, and is plotted LAST, so that it is drawn ABOVE RSI #2, which is drawn above RSI #3.
2) Horizontal Lines
A) Horizontal lines are also drawn automatically, so you don't have to, and they don't extend past the current bar.
B) There are 11 customizable lines, and each one is set to non-customizable increments (zero, 10, 20, 30, 40, fifty, 60, 70, 80, 90, hundred).
C) The 11 lines are divided into 2 groups:
a) 4 PAIRS of lines WITH fill options (10/90, 20/80, 30/70, 40/60... 8 lines total), and
b) 3 INDIVIDUAL lines WITHOUT fill options (zero, fifty, hundred).
D) The 4 fills give you the option to fill the space between each pair with a customizable color and opacity (the default is what I personally feel is best for each).
3) Conclusion
A) As with my previous indicators, this one maximizes information, discernment, clarity, and customization.
B) It is optimized for your ability to be able to customize a relatively basic but important indicator with ease
for use on your own personal television, laptop, or cellular phone screen setup... and on all chart zoom levels and layouts.
B) And, this being my 3rd script, please feel free to comment, critique, or leave suggestions. I find them helpful!
C) Check out my previous pine scripts if you like this one. They work well together.
D) I hope that you find this useful.
E) Enjoy!
//Durbtrade
MACD Moving Average Convergence/Divergence - DurbtradeDurbtrade MACD - macd line changes color based on vertical direction. This makes it easier to see and discern movements and also helps the indicator to retain maximum functionality when taking up less chart real estate (also, having the color change really helps me see charts on small screens... such as when it's bright outside and I'm driving in my car and glancing at a chart on my phone... it helps having the info pop visually). A fill option is included to fill the space between the macd and signal lines, though I personally prefer to disable this function. Also, you get a zero line if you want it, and it doesn't extend past the current time, removing unnecessary info and keeping your chart looking a bit cleaner. Finally, there are color-coded, cross-over and cross-under background fills, signaling when the macd line crosses the signal line.
This is my 2nd published script, and 2nd script ever. If you like this style, see my 1st published script: Durbtrade Bollinger Bands Width.
Hope you find this useful.
Feel free to comment.
Durbtrade Bollinger Bands WidthFirst published script. Actually, this is my 1st script ever! I know its not flashy or anything, but I finally decided to try learning some pine... and to try and get rid of the dang 0 on my profile, haha. So here are the results after many hours.
I like using the BB Width indicator, and I wanted it to change color based on whether is was rising or falling. I also have it to automatically plot a horizontal line at 0 so I don't have to draw a line every time I apply the indicator to a new chart. And I changed the default precision to 3.
I noticed that there aren't that many BB Width scripts. and I don't think there is anything like this out there that I know of, so I hope someone else besides me will find it useful.
Please feel free to comment.