OPEN-SOURCE SCRIPT

Key Levels (Daily Percentages)

已更新
OVERVIEW
This indicator automatically identifies and progressively draws daily percentage levels, normalized to the first market bar.

Percentages are one of the most common ways to measure price movement (outside price itself). Being able to visually reference these levels helps contextualize price action, in addition to giving us a glimpse into how algos might "see" the market.

This script is most useful on charts with smaller time frames (1 to 5 minutes). This is not ideal for medium or larger time frames (greater than 5 minutes).


INPUTS
You can configure:
• Line size, style, colors and maximum length
• Label colors and visibility
• Fractional and intra level visibility
• Bidirectional zone parameters (custom range and extended anomalies)
• Normalization source
• Price Proximity features
• Market Hours and Time Zone


INSPIRATION
Broad Assumptions:
• +/- 70% of days move 1%, 20% of days move 1-2%, and 10% of days have moves exceeding 2%.
• +/- 10-20% of days trend, with moves ≥ 1%.
• All trading strategies are effectively scalping, mean reversion, or trend.
• Humans program algos to capitalize on these assumptions, using percentages to mange / execute trades.
版本注释
• Added script URL to top comment.
版本注释
• Removed unnecessary var declarations to reduce performance penalties.
版本注释
• Added ability to set the normalized source to be either Todays Open or Yesterdays Close.
• Added Eighths as an incremental level option.
• Added ability to set the labels to be either Percentage, Basis Points, or Value Delta.
版本注释
• Added ability to set the normalized source to be Each New Session.
• Added tooltips to display the value of each level when you hover over a given label.
• Added ability to set the normalized source interval to always 1 Minute regardless of the current charts interval, or always the Same Interval as Chart. Selecting 1 Minute will show the same zero / scale values regardless of timeframe, and selecting Same Interval as Chart will adjust the zero / scale values based on the charts timeframe.
版本注释
Bug Fix: Yesterdays Close was referencing the close from 2 days ago. It now references the close from 1 day ago (aka. yesterday).
版本注释
• Changed the default Time Zone from America/New_York to syminfo.timezone to make switching between securities that do not share time zones easier.
版本注释
• Updated to support sub 1 minute timeframes.
Pivot points and levels

开源脚本

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

想在图表上使用此脚本?

免责声明