OPEN-SOURCE SCRIPT
تم تحديثه Williams Fractals with Breaks

This is a Bill Williams fractal indicator with breaks.
I was turned onto fractals and the importance of their breaks by ChaosTrader63.
I know several version of this indicator have been done.
I chose this as a first project because of it's simplicity , but also because of the poor code quality of some other versions I looked at.
This is the first draft that successfully met my three criteria:
* Must identify all fractals, including simultaneous up/down fractals.
* Must identify fractal breaks with a clear indicator.
* Must provide information on how many fractals
For the first bullet, I wanted to provide a more concise modern version than the boolean logic composition I was seeing in other examples.
The later two required tracking the past which was not present in the other versions I looked at.
Code here can be improved for more uses and better integration, but it is functional and elegant enough to use.
Thanks for checking it out.
Jolly Wizard
I was turned onto fractals and the importance of their breaks by ChaosTrader63.
I know several version of this indicator have been done.
I chose this as a first project because of it's simplicity , but also because of the poor code quality of some other versions I looked at.
This is the first draft that successfully met my three criteria:
* Must identify all fractals, including simultaneous up/down fractals.
* Must identify fractal breaks with a clear indicator.
* Must provide information on how many fractals
For the first bullet, I wanted to provide a more concise modern version than the boolean logic composition I was seeing in other examples.
The later two required tracking the past which was not present in the other versions I looked at.
Code here can be improved for more uses and better integration, but it is functional and elegant enough to use.
Thanks for checking it out.
Jolly Wizard
ملاحظات الأخبار
- Improved Code Cleanliness and Documentation.
- Changed break render size to `size.small` for more consistent readability.
- Break render size can be changed from input tab.
- Colors are configured as inputs with clear labels.
- Tested configurations and verified shapes, colors, and label toggle are available in either input or styles tab.
ملاحظات الأخبار
* Added price levels to break labels, and configured with templates to toggle visibility and order.* Replaced magic number offset 2 with 3 and made it a configuration. 2 renders breaks in progress. 3 only confirmed breaks.
* Replaced copy and paste swaps with functions that consider break direction.
* Style consistency cleanup.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
للوصول السريع إلى الرسم البياني، أضف هذا النص البرمجي إلى مفضلاتك - تعرف على المزيد هنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
للوصول السريع إلى الرسم البياني، أضف هذا النص البرمجي إلى مفضلاتك - تعرف على المزيد هنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.