new chart data
This commit is contained in:
parent
55ec9602c8
commit
c6a4fcfe66
@ -17,19 +17,23 @@ function get_vars_from_csv {
|
|||||||
|
|
||||||
readarray -d "," -t f_last_line_array < <(echo "0,${f_last_line}")
|
readarray -d "," -t f_last_line_array < <(echo "0,${f_last_line}")
|
||||||
|
|
||||||
|
# basics
|
||||||
get_var_from_line date 1
|
get_var_from_line date 1
|
||||||
get_var_from_line price 2
|
get_var_from_line price 2
|
||||||
get_var_from_line price_change 3
|
get_var_from_line price_change 3
|
||||||
|
|
||||||
|
# MACD EMA
|
||||||
get_var_from_line ema12 4
|
get_var_from_line ema12 4
|
||||||
get_var_from_line ema26 5
|
get_var_from_line ema26 5
|
||||||
|
|
||||||
|
# MACD
|
||||||
get_var_from_line macd_histogram 8
|
get_var_from_line macd_histogram 8
|
||||||
get_var_from_line macd_signal_relation 9
|
get_var_from_line macd_signal_relation 9
|
||||||
f_macd_histogram_relation=$(echo "${f_macd_signal_relation}" | cut -d\| -f1)
|
f_macd_histogram_relation=$(echo "${f_macd_signal_relation}" | cut -d\| -f1)
|
||||||
[ -z "$f_macd_histogram_relation" ] && return 1
|
[ -z "$f_macd_histogram_relation" ] && return 1
|
||||||
f_macd_histogram_signal=$(echo "${f_macd_signal_relation}" | cut -d\| -f2)
|
f_macd_histogram_signal=$(echo "${f_macd_signal_relation}" | cut -d\| -f2)
|
||||||
|
|
||||||
|
# rsi
|
||||||
get_var_from_line rsi5 10
|
get_var_from_line rsi5 10
|
||||||
get_var_from_line rsi14 11
|
get_var_from_line rsi14 11
|
||||||
get_var_from_line rsi21 12
|
get_var_from_line rsi21 12
|
||||||
@ -39,18 +43,36 @@ function get_vars_from_csv {
|
|||||||
get_var_from_line rsi240 16
|
get_var_from_line rsi240 16
|
||||||
get_var_from_line rsi420 17
|
get_var_from_line rsi420 17
|
||||||
|
|
||||||
|
# price changes
|
||||||
get_var_from_line price_change_1_day 18
|
get_var_from_line price_change_1_day 18
|
||||||
get_var_from_line price_change_7_day 19
|
get_var_from_line price_change_7_day 19
|
||||||
get_var_from_line price_change_14_day 20
|
get_var_from_line price_change_14_day 20
|
||||||
get_var_from_line price_change_30_day 21
|
get_var_from_line price_change_30_day 21
|
||||||
get_var_from_line price_change_1_year 22
|
get_var_from_line price_change_1_year 22
|
||||||
|
|
||||||
|
# marketcap
|
||||||
get_var_from_line marketcap_change_1_day 23
|
get_var_from_line marketcap_change_1_day 23
|
||||||
|
|
||||||
get_var_from_line fibo60 24
|
# range and fibonacci
|
||||||
get_var_from_line fibo168 25
|
get_var_from_line range_periods 24
|
||||||
get_var_from_line fibo672 26
|
get_var_from_line lowest_in_range 25
|
||||||
get_var_from_line fibo8064 27
|
get_var_from_line highest_in_range 26
|
||||||
|
get_var_from_line pivot_point 27
|
||||||
|
get_var_from_line support1 28
|
||||||
|
get_var_from_line resist1 29
|
||||||
|
get_var_from_line golden_pocket_support 30
|
||||||
|
get_var_from_line golden_pocket_resist 31
|
||||||
|
get_var_from_line golden_pocket65_support 32
|
||||||
|
get_var_from_line golden_pocket65_resist 33
|
||||||
|
get_var_from_line support3 34
|
||||||
|
get_var_from_line resist3 35
|
||||||
|
|
||||||
|
# EMAs
|
||||||
|
get_var_from_line ema50 36
|
||||||
|
get_var_from_line ema100 37
|
||||||
|
get_var_from_line ema200 38
|
||||||
|
get_var_from_line ema800 39
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_var_from_line {
|
function get_var_from_line {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user