Skip to content

Commit

Permalink
166 Fix spell
Browse files Browse the repository at this point in the history
  • Loading branch information
id774 committed May 26, 2015
1 parent 377c565 commit dceef5a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/ti.py
Expand Up @@ -121,7 +121,7 @@ def calc_tr(self):
self.stock['tr'] = ta.TRANGE(self.high,
self.low,
self.close)
self.stock['vr'] = self.stock['tr'] / ((self.high +
self.stock['vl'] = self.stock['tr'] / ((self.high +
self.low +
self.close) / 3) * 100
return self.stock
Expand Down
2 changes: 1 addition & 1 deletion test/test_ti.py
Expand Up @@ -195,7 +195,7 @@ def test_calc_tr():
eq_(expected, result)

expected = 0.76
result = tr.ix['2015-03-20', 'vr']
result = tr.ix['2015-03-20', 'vl']
result = round(result, 2)
eq_(expected, result)
return tr
Expand Down
2 changes: 1 addition & 1 deletion test/ti_N225.csv
@@ -1,4 +1,4 @@
Date,Open,High,Low,Close,Volume,Adj Close,sma5,sma25,sma75,ewma5,ewma25,ewma75,upperband,middleband,lowerband,ret_index,vol,rsi9,rsi14,mfi,roc,cci,ultosc,slowk,slowd,fastk,fastd,macd,macdsignal,macdhist,mom10,mom25,tr,vr,atr,natr,v_rate
Date,Open,High,Low,Close,Volume,Adj Close,sma5,sma25,sma75,ewma5,ewma25,ewma75,upperband,middleband,lowerband,ret_index,vol,rsi9,rsi14,mfi,roc,cci,ultosc,slowk,slowd,fastk,fastd,macd,macdsignal,macdhist,mom10,mom25,tr,vl,atr,natr,v_rate
2014-07-07,15433.49,15477.77,15379.44,15379.44,84000.0,15379.44,,,,15379.44,15379.44,15379.44,,,,1.0,,,,,,,,,,,,,,,,,,,,,25.029797377830754
2014-07-08,15304.27,15389.89,15225.11,15314.41,117700.0,15314.41,,,,15340.422,15345.6244,15346.491466666666,,,,0.9957716275755163,,,,,,,,,,,,,,,,,164.77999999999884,1.0763038323374858,,,35.0715137067938
2014-07-09,15194.32,15302.65,15185.32,15302.65,118300.0,15302.65,,,,15322.53,15330.138955223882,15331.486233704669,,,,0.995006970344824,,,,,,,,,,,,,,,,,129.09000000000015,0.845740896279632,,,35.2502979737783
Expand Down

0 comments on commit dceef5a

Please sign in to comment.