This is a histogram that can display a moving average's angle and also show how volatile the change in angle is.
To use:
Add any moving average indicator to the chart
Click that indicator's More > Add Indicator on (MA)
Select the Cosmic Angle indicator
Adjust the Cosmic Angle's Price To Bar Ratio value to reflect that of your chart's
Adjust the Cosmic Angle's Threshold as per your liking (*1)
(*1) This setting affects the bar colors. It represents the minimum difference in degrees between the n and n-1 bars' angle to force a change of color.
릴리즈 노트
UPDATES
Implemented Guides Position setting
Updated example to use an extra "smoothing" moving average
NOTES
If your base moving average uses a short timeframe, the Cosmic Angle will likely look jagged and hard to read. An easy way to fix this problem is to add an extra moving average in between to smooth out the final output. In this example, a WMA with a short length of 9 is added onto the original SMMA and is then set as the source for the Cosmic Angle, producing a more relevant chart.
릴리즈 노트
renamed get_degrees to get_slope
updated slope calculation
added bend plot
The bend shows when the slope itself is getting bigger or smaller. See the code for how to apply bend coloring to any moving average plot.
릴리즈 노트
Refactored the bend feature into a separate indicator called Cosmic Vector.
진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.
🚩 Disclaimer: the information created and published here is not prohibited, doesn't constitute investment advice, and isn't created solely for qualified investors
또한 다음에서도:
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.