Move Annotations

Move Annotations is an indicator drawn over the price chart.

core language

move-annotations.abx
1indicator "Move Annotations"
2pane: price
3
4big_move = abs(close - open) > 2 * atr(14)
5gap_up = open > high[1]
6gap_down = open < low[1]
7
8if big_move:
9icon "bolt", at: (bar.index, high), color: yellow
10tooltip "Range {bar.range:0.00} vs ATR {atr(14):0.00}", at: (bar.index, high)
11if gap_up:
12label "Gap up", at: (bar.index, low), color: green
13if gap_down:
14label "Gap down", at: (bar.index, high), color: red
15image "logo.svg", at: (bar.index, close), width: 16
What this script says

Move Annotations is an indicator drawn over the price chart.

It calculates big_move as whether the absolute value of the close minus the open is above 2 × the 14-bar ATR, gap_up as whether the open is above the previous bar's high and gap_down as whether the open is below the previous bar's low.

On each bar, it checks whether big_move and, if so, draws an icon and draws a tooltip.

On each bar, it checks whether gap_up and, if so, labels "Gap up".

On each bar, it checks whether gap_down and, if so, labels "Gap down".

On the chart, it draws an image.

Try this in the Terminal. AlgoBars is free: $0 a month, no card needed.

Create my free account