Optuma Forums › Optuma Feature Requests › Gap Identifier tool › Reply To: Gap Identifier tool
May 16, 2020 at 12:03 am
#58083

- Topics: 63
- Replies: 555
- Posts: 618
Hi Jeff,
I suspect those horizontal lines may have been drawn manually, although we can use the following to identify gaps:
Gap up: OPEN() > HIGH()[1] and LOW()>HIGH()[1]
Gap down: OPEN() < LOW()[1] and HIGH()<LOW()[1]
These will identify individual bars, as the per the Show Bar tools here:
However, we could then draw the price levels using a Show Plot to see if they were crossed. Here’s the levels for gap ups:
1 2 3 4 5 6 |
//Gap Up; V1=OPEN() > HIGH()[1] and LOW()>HIGH()[1]; //Get value of high candle before the gap: VALUEWHEN(HIGH()[1],V1) |