OPEN-SOURCE SCRIPT
ที่อัปเดต:

Body Gap Detector

10 418

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.
เอกสารเผยแพร่
Revamped design and code for performance

Finds/Detects gaps between candles and candle bodies for any chart/timeframe with O(n+delta) performance.

Candle Gaps (between wicks) act as strong support or resistance. They are drawn as solid boxes.
Body Gaps (ignores wicks) act as mild support or resistance. They are depicted with lines.

Adjust the settings for candle/body gap width, smaller the time frame, smaller the gap.
Adjust max historical bars to fine tune performance on your system/setup. The more historical bars the script scans, more time required to load the chart. At times based on system configuration, TradingView may timeout the script due to too many bars. Reducing the max bars helps in this scenario.

Happy charting !

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน