Move Annotations
Move Annotations is an indicator drawn over the price chart.
core language
1
indicator "Move Annotations"2
pane: price3
4
big_move = abs(close - open) > 2 * atr(14)5
gap_up = open > high[1]6
gap_down = open < low[1]7
8
if big_move:9
icon "bolt", at: (bar.index, high), color: yellow10
tooltip "Range {bar.range:0.00} vs ATR {atr(14):0.00}", at: (bar.index, high)11
if gap_up:12
label "Gap up", at: (bar.index, low), color: green13
if gap_down:14
label "Gap down", at: (bar.index, high), color: red15
image "logo.svg", at: (bar.index, close), width: 16What 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.