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.

סקריפט מוגן
סקריפט זה פורסם במקור סגור ותוכל להשתמש בו באופן חופשי. אתה יכול להגדירו כמועדף כדי להשתמש בו בגרף. אינך יכול להציג או לשנות את קוד המקור שלו.
כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.

רוצה להשתמש בסקריפ זה בגרף?