OPEN-SOURCE SCRIPT
تم تحديثه Cosmic Angle

This is a histogram that can display a moving average's angle and also show how volatile the change in angle is.
To use:
(*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.
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.ملاحظات الأخبار
upgraded to version 5نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
📣 Ask on Reddit: shorturl.at/BILRZ
👀 Watch on TikTok: shorturl.at/gzAPW
🚩 Disclaimer: the information created and published here is not prohibited, doesn't constitute investment advice, and isn't created solely for qualified investors
👀 Watch on TikTok: shorturl.at/gzAPW
🚩 Disclaimer: the information created and published here is not prohibited, doesn't constitute investment advice, and isn't created solely for qualified investors
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
📣 Ask on Reddit: shorturl.at/BILRZ
👀 Watch on TikTok: shorturl.at/gzAPW
🚩 Disclaimer: the information created and published here is not prohibited, doesn't constitute investment advice, and isn't created solely for qualified investors
👀 Watch on TikTok: shorturl.at/gzAPW
🚩 Disclaimer: the information created and published here is not prohibited, doesn't constitute investment advice, and isn't created solely for qualified investors
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.