OPEN-SOURCE SCRIPT

Daily close statistics

1 324
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.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.