OPEN-SOURCE SCRIPT
Daily close statistics

This indicator provides users with a summary of daily close statistics based on either the daily open to close or the NY open to daily close. Users also have the ability to add conditional filters to see how the market has closed historically when certain conditions are true.
Massive thanks to tradeforopp for his invaluable help and for the YouTube videos showing how to calculate these kinds of statistics!
Key Features:
Previous Day and Week Levels:
Displays previous day and week high, low, and 50% Fibonacci levels for easy reference.
Optional visibility for these levels via input toggles.
Trading Session Data:
Visualizes key trading session levels such as New York, London, and Asia, including max/min price ranges and Fibonacci midpoints.
Customizable session time periods and colours.
Time-Based Open Levels:
Highlights price levels at specific times, such as the midnight open and 8am open, with customizable line styles and colours.
Statistical Filter Functionality:
Allows for comparison of price levels using filters. The indicator tracks and displays daily close statistics if the first filter level is above the second filter level. For example, if filter level 1 is the previous day low and filter level 2 is the Asian high, the indicator will return daily close statistics for all instances where that condition is met
Customizable User Inputs:
Users can select which levels and session ranges to display and customize their appearance.
Time zone and label options are available for user flexibility.
Massive thanks to tradeforopp for his invaluable help and for the YouTube videos showing how to calculate these kinds of statistics!
Key Features:
Previous Day and Week Levels:
Displays previous day and week high, low, and 50% Fibonacci levels for easy reference.
Optional visibility for these levels via input toggles.
Trading Session Data:
Visualizes key trading session levels such as New York, London, and Asia, including max/min price ranges and Fibonacci midpoints.
Customizable session time periods and colours.
Time-Based Open Levels:
Highlights price levels at specific times, such as the midnight open and 8am open, with customizable line styles and colours.
Statistical Filter Functionality:
Allows for comparison of price levels using filters. The indicator tracks and displays daily close statistics if the first filter level is above the second filter level. For example, if filter level 1 is the previous day low and filter level 2 is the Asian high, the indicator will return daily close statistics for all instances where that condition is met
Customizable User Inputs:
Users can select which levels and session ranges to display and customize their appearance.
Time zone and label options are available for user flexibility.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.