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.
Climax setup looking for a reversal the next day after a gap, this works best if the signal is triggered after a prolonged move in one direction. Enter the position at the close of the day when you get a signal and exit for a loss the next day if not profitable, otherwise, trail a stop to lock profits.
This is the bare bones of what I'm trying to achieve through pine script. The purpose of the script is to:
1. On a 15m chart, calculate and plot upper & lower Bollinger bands and simple moving average of 20 periods. (DONE)
2. On a new day, when the first 15m candle of a session forms, I want to check if a) the low of the new candle is outside the upper Bollinger...
If you are interested in trading gaps in DAX, then DOW plotted in DAX's trading hours, will help you know whether the smoothed candle was a gap or not. Use a different script to plot yesterday's closing price. This will help you see the target for the gap close. Let me know if you find it helpful or not!