TradingView
Lemrin
16 Haz 2018 23:00

Data Gap Detection 

Açıklama

This simple script checks for data gaps in an intra-day TradingView chart. I have found that BitMEX 1-minute data is coming in rather holey lately, so I wrote this just to see how prevalent the problem is. It should work on any intra-day timeframe, not just 1-minute.

V1: initial release.
Yorumlar
Lemrin
Just closing the loop, this is not due to a data problem with TV's feed; rather, TV only display bars for which there was a trade, so on 1-minute charts, if there is no trade, the bar for that minute will not be plotted. Using this code, then, is a key part of making any time-critical script robust, since you cannot simply rely on minute==0 or something similar.
CompoundTraders
Great idea
ZEROxCryptoMag
The amount of missing data is RIDICULOUS. Even for NASDAQ stocks I can't understand why they go entire 5 minutes without data.
Culture
This is really nice, and simple. I wonder if there a way to force the empty minutes to be plotted empty...
Daha Fazla