technical-analysis 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 579692a772601892cca3f48fa17737db6751b51a
4
- data.tar.gz: f943f70ec1fe5cb26b54dc4e4528ce453505e2f0
3
+ metadata.gz: d638cd93a0c547b5882077a74f23b899632901b1
4
+ data.tar.gz: 222ea519ae143925f661d8917fc44d25abc571cd
5
5
  SHA512:
6
- metadata.gz: 891b9907c6e16583f8757c7018bb022bc9a9cdb2990e1c74343aac962b85498b5d30725189a0c8266e6521f14613c97424e099a42a447800dd77f3b5efcc2b6c
7
- data.tar.gz: fa1b723816d62c08b9e39275d26231caf6c708f964e38d7d490db88aa541f4b85692e87dd39c7d839f4b283f6885d2fa857439e25c8d0b620441199c17c300ba
6
+ metadata.gz: 151f837f5c897ea12cdfe3f4edaf70b10be35a76080d001555ad4c9f0db1f9cee8ecdad78cb2182170f8f7328cd8ffc011b5de3c09d432391f517e55175cba3c
7
+ data.tar.gz: f59019103e1a6aa43c3f9ef4e83601c2af9882591f4458faf5012f48b69571aabb6112b2a1d7f12c35d4d60c824ac6138e46d1732ea1a969367c6bbaec9b7460
@@ -85,7 +85,7 @@ module TechnicalAnalysis
85
85
  if prev_adx.nil?
86
86
  adx = ArrayHelper.average(dx_values)
87
87
  else
88
- adx = ((prev_adx * 13) + dx) / period.to_f
88
+ adx = ((prev_adx * (period - 1)) + dx) / period.to_f
89
89
  end
90
90
 
91
91
  output << AdxValue.new(date_time: v[:date_time], adx: adx, di_pos: di_pos, di_neg: di_neg)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: technical-analysis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Intrinio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-02 00:00:00.000000000 Z
11
+ date: 2020-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler