quant 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +4 -0
- data/lib/quant/version.rb +1 -1
- data/test/test_atr.rb +1 -11
- metadata +1 -1
data/CHANGELOG
CHANGED
data/lib/quant/version.rb
CHANGED
data/test/test_atr.rb
CHANGED
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
require 'common_requires'
|
|
2
2
|
|
|
3
|
-
class
|
|
4
|
-
|
|
5
|
-
def test_eurusd_50_tr
|
|
6
|
-
c = Util.ohlc(Samples::Ohlc.eurusd_50_opens, Samples::Ohlc.eurusd_50_highs, Samples::Ohlc.eurusd_50_lows, Samples::Ohlc.eurusd_50_closes)
|
|
7
|
-
assert Util.compare_2_arrays_of_floats Quant.tr(c), Samples::Ttr.eurusd_50_ttr_tr
|
|
8
|
-
end
|
|
9
|
-
|
|
10
|
-
def test_usdjpy_150_tr
|
|
11
|
-
c = Util.ohlc(Samples::Ohlc.usdjpy_150_opens, Samples::Ohlc.usdjpy_150_highs, Samples::Ohlc.usdjpy_150_lows, Samples::Ohlc.usdjpy_150_closes)
|
|
12
|
-
assert Util.compare_2_arrays_of_floats Quant.tr(c), Samples::Ttr.usdjpy_150_ttr_tr
|
|
13
|
-
end
|
|
3
|
+
class TestAtr < MiniTest::Unit::TestCase
|
|
14
4
|
|
|
15
5
|
def test_eurusd_50_atr20
|
|
16
6
|
c = Util.ohlc(Samples::Ohlc.eurusd_50_opens, Samples::Ohlc.eurusd_50_highs, Samples::Ohlc.eurusd_50_lows, Samples::Ohlc.eurusd_50_closes)
|