OPEN-SOURCE SCRIPT
تم تحديثه Perfect Opens Perfect Boxes

This approach combines two methods of chart denoising:
1. The underlying chart uses the previous close as the open price for the next candle, which makes candlestick patterns easier to read.
2. The overlay reduces the visual noise of a line chart by representing the price range over a given interval as a box; the “wicks” on this chart are purely cosmetic, indicating that closing prices lay outside the range of the previous interval.
1. The underlying chart uses the previous close as the open price for the next candle, which makes candlestick patterns easier to read.
2. The overlay reduces the visual noise of a line chart by representing the price range over a given interval as a box; the “wicks” on this chart are purely cosmetic, indicating that closing prices lay outside the range of the previous interval.
ملاحظات الأخبار
Fixed• Sync Runtime & Manual Limits: Introduced a global MAX_COUNT constant to perfectly synchronize the script’s manual array cleanup with the Pine Script runtime’s built-in garbage collector.
• Orphan Line Cleanup: The script now explicitly deletes the oldest line from the rangeGapLines array exactly when the oldest box is removed. Previously, the manual limit was higher than the runtime limit, causing boxes to vanish automatically while their attached lines persisted indefinitely.
Changed
• Refactored Limits: max_boxes_count and max_lines_count now reference the shared MAX_COUNT constant, ensuring that if you adjust the history depth in the future, all behavior scales automatically without introducing new bugs.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.