gabo912

Trend Critical Price for MACD

It is known that direction of trend detected with the MACD indicator is estimated according to the ascending or descending direction of the histogram.

The histogram in turn depends on the value of the difference between the MACD line and the signal line.
So, to consider that the histogram maintains a trend, it is necessary that the current value of the histogram have a value at least equal to its immediately previous value. In other words, for example if the previous value of the histogram was 100, for the trend to continue it is expected that the new value of the histogram should be 100 again.

Knowing this, it is possible to obtain the closing value of the current price candle in such a maner that the current value of Histogram is equal to the previous value. This is achieved by applying an algebraic operation resulting in the Critical Trend Price (TCP) for MACD.

Knowing this critical trend price can be useful for estimating the development of the trend according to real-time price action, visualizing for a target to hit, or estimating stop-loss.

Set this indicator just like the MACD and this calculates and returns the critical price that must be reached to maintain the current trend.

This plot a critical price line.

Also allows to show-hide a price band (High-Low)

Every time the asset price closes below the critical price, the trend is turning down. On the other hand, every time the price closes above the critical price, the trend is turning bullish. In both cases the price band shows a light tone.

An uptrend is considered confirmed when the low price at the end of the period is above the critical trend price. The price band will look green.

A downtrend is considered confirmed when the maximum price at the end of the period is below the critical trend price. The price band will look purple.

How is the Trend Critical Price (TCP) calculated?


By default it works with the closing price of each observed candle. If you need to see a MACD you will have to mount it separately. The configuration parameters of TCP must match the MACD.

Script protégé
Ce script est publié en code source fermé et vous pouvez l'utiliser librement. Vous pouvez le préférer pour l'utiliser sur un graphique. Vous ne pouvez pas visualiser ou modifier son code source.
Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.

Vous voulez utiliser ce script sur un graphique ?