prashanthraju

Body Gap Detector

prashanthraju Uppdaterad   

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.
Versionsinformation:
Name change.
Versionsinformation:
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.
Versionsinformation:
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.
Versionsinformation:
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.
Versionsinformation:
Bug fixes to accurately detect gaps. Added few more comments for clarity.
Versionsinformation:
Fixing chart display.
Skript med en öppen källkod

I sann TradingView-anda har författaren publicerat detta skript med öppen källkod så att andra handlare kan förstå och verifiera det. Hatten av för författaren! Du kan använda det gratis men återanvändning av den här koden i en publikation regleras av våra ordningsregler. Du kan ange den som favorit för att använda den i ett diagram.

Frånsägelse av ansvar

Informationen och publikationerna är inte avsedda att vara, och utgör inte heller finansiella, investerings-, handels- eller andra typer av råd eller rekommendationer som tillhandahålls eller stöds av TradingView. Läs mer i Användarvillkoren.

Vill du använda det här skriptet i ett diagram?