Color Changing MACDJapanese below / 日本語説明は下記
This indicator shows MACD with its colors changing based on trend strength.
The purpose of this indicator is to visually understand phases of trends, which are beginning, advancing and ending, measuring the range between MACD line and signal line.
Since MACD is originated from moving average, the range between MACD line and signal line gradually expands as trends progress while the range gets narrowed as trends come closer to the end. The indicator visualizes this characteristics.
The colors change as follows:
Green: In bullish trend, the range between MACD and signal gets expanded from previous candle, which indicates up trends continue
Purple: The range between MACD and signal gets narrowed from previous candle, which indicates trends gradually come to end.
Red: In bearish trend, the range between MACD and signal gets expanded from previous candle, which indicates down trends continue
See the chart below.
Features
Coloring
MACD line and signal line's colors change according to the logic above.
You can also fill the gap between MACD line and signal line with the same color changing logic as lines.
Signals
Golden cross and death cross signals can be displayed.
Alert
Alerts can be set when golden and death crosses occur.
---------------------
トレンドの強弱で色が変わるMACDのインジケーターです。トレンドが初期、進展期、終了期と移り変わる様子を視覚的に判断できることを目的に開発しています。
トレンドの強弱はMACDラインとシグナルラインの幅で判断します。
MACDは移動平均線を元にしたインジケーターであるため、トレンドが進展するにつれMACDラインとシグナルラインの幅は徐々に広がります。一方で、トレンドが終盤に差し掛かかるにつれ上記の幅は狭まります。インジケーターはこのMACDの特徴を色で可視化します。
色は以下の通り変化します。
緑:上昇トレンドにおいて、MACDラインとシグナルラインの幅が前のローソク足のそれよりも拡大している場合
=>トレンドの勢いが強まっていることを示唆
紫:MACDラインとシグナルラインの幅が前のローソク足のそれよりも縮小している場合
=>トレンドの勢いが弱まっていることを示唆
赤:下降トレンドにおいて、MACDラインとシグナルラインの幅が前のローソク足のそれよりも拡大している場合
=>トレンドの勢いが強まっていることを示唆
サンプルチャート
機能
色変更
上記のロジックでMACDとシグナルラインの色を変更します。また両ラインの間をラインと同じロジックで塗りつぶすことも可能です。
シグナル
ゴールデンクロスとデッドクロスでシグナルを表示
アラート
ゴールデンクロスとデッドクロスでアラートを設定可能
Colorchanging
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