luyikaibr

MyMA Angle

luyikaibr Uppdaterad   
This script shows the angle of 6 Moving Averages (MAs) to perform trade analysis. The MA angle is also known as its Rate Of Change ( ROC ). The 6 MAs (I, II, III , IV, V and VI ) default lengths 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 lengths were first proposed by Bo Williams.

The used Moving Averages can be chosen between EMA and MyMA. MyMA is a Moving Average that tries to mimic Bo William's MIMA. Due to the close resemblance between MyMA and MIMA, I do not feel comfortable to open this script source code. In order to learn how this script operates with EMAs, please refer to my Custom EMA + FIBO indicator that has its source code open.

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 MAs on the candle pane. Non normalized view shows a more realistic angle condition but, if intended to be used with the MyMAS indicator, normalized view should be used.
Versionsinformation:
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.
Versionsinformation:
This update just adjusts the precision for the indicator value.
Versionsinformation:
This update just adjusts the precision of the indicator value to 2 decimals.
Versionsinformation:
This update adds Phi^3 and Phi^3/2 series optional filter selection to MAs and built in ROC function usage selection toggle.
Versionsinformation:
This update adds a new and more meaningful angle calculation method and adjusts the MA calculation method.
Versionsinformation:
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.
Versionsinformation:
This update adds Giant ( > 610 ) and Dwarf MAs (8 and 17) plot support and selection toggle.
Versionsinformation:
This update just optimizes some implementation aspects.
Versionsinformation:
This update adds options to show Giant and Dwarf lengths. 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.
Versionsinformation:
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.
Skyddat skript
Detta skript publiceras med stängd källkod och du kan använda det fritt. Du kan ange den som favorit för att använda den i ett diagram. Du kan inte visa eller ändra dess källkod.
Frånsägelse av ansvar

Informationen och publikationerna är inte avsedda att vara, och utgör inte heller finansiella, investerings-, handels- eller andra typer av råd eller rekommendationer som tillhandahålls eller stöds av TradingView. Läs mer i Användarvillkoren.

Vill du använda det här skriptet i ett diagram?