UnknownUnicorn36161431

Daily Defining Range

Shows the highest probability daily high and low for the New York session in its first hour.
Then detects the trend in which this session is likely to move during the day.

This script will use the first hour of NY session (9:30 am to 10:30 am) to determine the Defining Range between that range's highest high and lowest low.

It will also determine the Implied Defining Range, which are the actual close values of the highest and lowest candle in the Defining Range.

Once a highest high or lowest low is broken, this script shows you the most likely direction of the trend for the day with 88% probability.

Credits: this idea originates from TheMas7er
版本注释:
added a more graphical representation of the defining range
版本注释:
added a mid line in the half of the defining range, so you can check which of your FVGs is more likely to be hit after the defining range was broken
版本注释:
added the option to set your own session timezone and session start time
版本注释:
fix: DR and IDR are actually broken by a close price, not high/low
版本注释:
added alerts for when DR or IDR high/low lines are broken
版本注释:
fix: IDR range was calculated incorrectly
版本注释:
fix: IDR bottom range and both, top and bottom lines were drawn incorrectly
版本注释:
fix #1: DR and IDR ranges end on the correct candle
fix#2: resetting now works correctly with markets that don't start at midnight
版本注释:
fix: DR and IDR lines positioned incorrectly in some cases (the range was highlighted correctly though)
版本注释:
added the possibility to show 0.5% fibo levels for the IDR + fixed IDR lines not being positioned where they should be (IDR range box was still correct)
版本注释:
fix for instances where one candle closes almost at the DR/IDR level but fails to break it and then next candle actually opens above/below the DR/IDR level, essentially breaking it at the open - this was previously ignored and only candle close value was taken into consideration for breaking the range
版本注释:
fix #1: starting bar on Indian markets now correctly shows 9:15, fix #2: DR/IDR lines showing correct on Indian markets
版本注释:
fix: IDR lines positioned at the wrong places
版本注释:
fix: IDR line once again not positioned correctly as per candle's body (this is the last IDR line fix, I promise! :-)
版本注释:
1) fixed IDR range reliability statistics that is showing when Debug Mode is on, 2) added the ability to color 0.5 Fibo levels differently and also to adjust Fibo labels offset, so it doesn't get in the way
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?