# Move Annotations

> Move Annotations is an indicator drawn over the price chart.

Source: https://algobarsx.com/docs/ex-54-annotations/

```algobarsx
indicator "Move Annotations"
    pane: price

big_move = abs(close - open) > 2 * atr(14)
gap_up = open > high[1]
gap_down = open < low[1]

if big_move:
    icon "bolt", at: (bar.index, high), color: yellow
    tooltip "Range {bar.range:0.00} vs ATR {atr(14):0.00}", at: (bar.index, high)
if gap_up:
    label "Gap up", at: (bar.index, low), color: green
if gap_down:
    label "Gap down", at: (bar.index, high), color: red
image "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.
