prashanthraju

Body Gap Detector

prashanthraju 已更新   

This script was inherited from "GAP DETECTOR" by Asch- and the modified version is being published with consent of the author.

This script identifies gap up or gap down between candle bodies (for the selected time frame). The original script has been reworked to consider Open/Close instead of the High/Low. It identifies "Gap" up/down and indicates them with markers drawn from "Open/Close" of one candle to the "Close/Open" of another.

The default setting is to consider the last 1500 candles. "Gap Up" is indicated by Green bars and "Gap Down" is indicated with Red bars.
版本注释:
Name change.
版本注释:
Performance update. Can traverse up to 5000 candles in history (depending on system capabilities). Resolves the "Script took more than 200ms" error for most of the charts.
版本注释:
Performance fix to save time in loops. Can traverse up to 5000 candles in history (depending on system capabilities). Resolves the "Script took more than 200ms" error for most of the charts.
版本注释:
Performance enhancements. Moved default candle count to 3000 (max: 5000).

Note: Observed on a couple of occasions (w.r.t stock indexes), the script missed a couple of recent gaps. Please (re)validate your charts visually.
版本注释:
Bug fixes to accurately detect gaps. Added few more comments for clarity.
版本注释:
Fixing chart display.
开源脚本

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

免责声明

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

想在图表上使用此脚本?