OPEN-SOURCE SCRIPT
已更新 Extension %

This is a tracking tool to measure two different kinds of distances:
- Gaps, from the open/close or the high/low value to the nearest open/close or high/low value.
- Price extensions of one or two candles from a preferred starting point (open, high, low or close) to a final point (open, high, low or close). The two-candles mode includes an optional rectangle to help you visualize the first and the last point of the measurement.
The script will plot a label with a percentage when the extension reaches the value you set. Unless you choose to track the one-candle price extension, the label will always be displayed on the high/low value of the second candle.
- Gaps, from the open/close or the high/low value to the nearest open/close or high/low value.
- Price extensions of one or two candles from a preferred starting point (open, high, low or close) to a final point (open, high, low or close). The two-candles mode includes an optional rectangle to help you visualize the first and the last point of the measurement.
The script will plot a label with a percentage when the extension reaches the value you set. Unless you choose to track the one-candle price extension, the label will always be displayed on the high/low value of the second candle.
版本注释
Update:1) On intraday charts, now you can choose to view labels/boxes within a specific time range only.
2) Cleaned, simplified and improved the overall appearance of the code.
版本注释
Update:1) In the "Price" section, you can now set the number of candles to count and the maximum number of candles to be framed by boxes.
2) Cleaned the code.
版本注释
(I'm sorry, there was an error with the publication of the chart)版本注释
UPDATE:Now you can choose to measure the extension in percentage, price, or ticks. On any financial instrument, the script will reproduce the same value as the one calculated by TradingView's Price Range.
版本注释
UPDATE:1) You now have the flexibility to display extensions in a single direction of your choice.
2) To visually represent the direction of the extension, two distinct colors are at your disposal.
版本注释
UPDATEAdded the option to view the extension on daily charts on earnings days only, in order to study the historical performance of stock titles.
版本注释
MINOR UPDATECleaned up the code and converted it to v6.
版本注释
MINOR UPDATE- Improved menu structure.
- Added tooltips for better clarity.
- Cleaned up the code.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。