luyikaibr

Custom EMA Angle

luyikaibr 已更新   
This script shows the angle of 6 EMAs to perform trade analysis. The EMA angle is also known as its Rate Of Change ( ROC ). The 6 EMAs (I, II, III , IV, V and VI ) default lengthes come from one of the Fibonacci Phi^3 and Phi^3/2 sub series (17, 34, 72, 144, 305 and 610), but can be changed to any values, particularly to the traditionally used 20, 40, 50, 100, 200 and 300. Up to my knowledge, Fibonacci Phi^3 and Phi^3/2 sub series lengthes were first proposed by Bo Williams.

Angle calculation is performed by calculating the tangent over a delta interval. Normalization is required to make the angle independent of the price range.

This script is meant to be used together with the corresponding EMAs on the candle pane. Non normalized view shows a more realistic angle condition but, if intended to be used with the CEMAS indicator, normalized view should be used.
版本注释:
This update is just to fix the EMA calculation in the absence of enough candles. Instead of using TV standard zero price, I use the source (close) price. Furthermore, default value for Normalized parameter has been changed to true, because it shows useless results with expensive assets due to the extremely high value for the slope tangent.
版本注释:
This update just adjusts the precision of the indicator value to 2 decimals.
版本注释:
This update adds Phi^3 and Phi^3/2 series optional filter selection to MAs and built in ROC function usage selection toggle.
版本注释:
This update adds a new and more meaningful angle calculation method.
版本注释:
This updates add the option to calculate the ROC of the ROC, that is the 2nd derivative of the price. It is useful to detect the side of the concavity of the underlying MA.
版本注释:
This update adds a output smooth option. It also changes the coloring scheme to show candles green when ROC I > ROC II > ROC III, red when ROC I < ROC II < ROC III and black (dead zone) otherwise.
版本注释:
This update just added more coloring variations: It shows candles green when ROC I > ROC II > ROC III, blue when ROC I > ROC III and ROC II < ROC III, purple when ROC I < ROC III and ROC II > ROC III, red when ROC I < ROC II < ROC III and black (dead zone) otherwise. Color meanings are green: strongly upward, blue: weakly upward, purple: weakly downward, red: strongly downward, black undefinition.
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?