cryptum 0.0.306 → 0.0.307
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cryptum/option.rb +22 -2
- data/lib/cryptum/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: faa4809c3c4cd47f2ecad06fde334a0e22956187b01589b22c7856e98763bdf2
|
4
|
+
data.tar.gz: e35b9fb12ea5fbb7376b02404488d6ac49b4efee53d7d615dd43eeb40e93bdf7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3cd86f23ba8a783c95ad38a21b78d48091f9f8431dcc932be3e182aa7f41745046f3a47e20a83d44da5ebd714666e69b4a7c946e9969ea274c95ba0a0bd8f56b
|
7
|
+
data.tar.gz: d5c343f0738921b46c0befd116ff466922d2c5d135ee1248ab239fce632c204124626eee82e0a7ddb24f477a33b1d4dd51c194512eed137eeb5c64fdde57ded1
|
data/lib/cryptum/option.rb
CHANGED
@@ -91,16 +91,36 @@ module Cryptum
|
|
91
91
|
|
92
92
|
option_choice.market_trend_reset = 60 if option_choice.market_trend_reset.to_i.zero?
|
93
93
|
unless option_choice.market_trend_reset.to_i >= 60 &&
|
94
|
-
option_choice.market_trend_reset <=
|
94
|
+
option_choice.market_trend_reset <= 604_800
|
95
95
|
usage = true
|
96
96
|
reason = :market_trend_reset
|
97
97
|
end
|
98
98
|
|
99
99
|
case option_choice.market_trend_reset
|
100
|
+
when 604_800
|
101
|
+
option_choice.market_trend_reset_label = '1W'
|
100
102
|
when 86_400
|
101
|
-
option_choice.market_trend_reset_label = '
|
103
|
+
option_choice.market_trend_reset_label = '1D'
|
104
|
+
when 14_400
|
105
|
+
option_choice.market_trend_reset_label = '4h'
|
106
|
+
when 10_800
|
107
|
+
option_choice.market_trend_reset_label = '3h'
|
108
|
+
when 7_200
|
109
|
+
option_choice.market_trend_reset_label = '2h'
|
102
110
|
when 3_600
|
103
111
|
option_choice.market_trend_reset_label = '1h'
|
112
|
+
when 2_700
|
113
|
+
option_choice.market_trend_reset_label = '45m'
|
114
|
+
when 2_700
|
115
|
+
option_choice.market_trend_reset_label = '45m'
|
116
|
+
when 1_800
|
117
|
+
option_choice.market_trend_reset_label = '30m'
|
118
|
+
when 900
|
119
|
+
option_choice.market_trend_reset_label = '15m'
|
120
|
+
when 300
|
121
|
+
option_choice.market_trend_reset_label = '5m'
|
122
|
+
when 180
|
123
|
+
option_choice.market_trend_reset_label = '3m'
|
104
124
|
when 60
|
105
125
|
option_choice.market_trend_reset_label = '1m'
|
106
126
|
else
|
data/lib/cryptum/version.rb
CHANGED