-
Notifications
You must be signed in to change notification settings - Fork 1
/
ohlc_runes.go
41 lines (39 loc) · 925 Bytes
/
ohlc_runes.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package tplot
// OHLCRunes contains definitions for each OHLC drawing.
type OHLCRunes struct {
Same rune
HighOpenClose rune
LowOpenClose rune
HighOpen rune
LowClose rune
High rune
Low rune
OpenClose rune
Open rune
Close rune
Thick rune
Thin rune
}
// DefaultOHLCRunes contains the default runes using the box drawing characters.
// Examples:
//
// ╽ ╷ ╷ │
// ┃╻ │ ╵ ┃ ─ ┼ ┼ ┬ ┴
// ╿╹ │
// │
//
// See more at: https://en.wikipedia.org/wiki/Box-drawing_character
var DefaultOHLCRunes = OHLCRunes{
Same: '─',
HighOpenClose: '┬',
LowOpenClose: '┴',
HighOpen: '╻',
LowClose: '╹',
High: '╷',
Low: '╵',
OpenClose: '┼',
Open: '╽',
Close: '╿',
Thick: '┃',
Thin: '│',
}