Skip to content

Commit

Permalink
Minor changes for DB fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sudoFerraz committed Nov 10, 2017
1 parent 43f48f0 commit 5a0a8d7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions brl_usd_indicators.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2045,6 +2045,7 @@ date,open,high,low,close,adj close,volume,close_20_sma,close_20_mstd,boll,boll_u
2017-11-02,3.2658,3.267,3.2424,3.2662,3.2662,0.0,3.203115,0.048135458809,3.203115,3.29938591762,3.10684408238,3.2696,-0.0034,1.53059704478,60.4836336128,1.58265387932,61.2801386973,3.23633370748,3.20536722728,0.0309664801946,0.0227169383333,0.0164990837227,3.2664,-0.0006,-0.651009978097
2017-11-03,3.2664,3.3315,3.2505,3.2646,3.2646,0.0,3.208725,0.0484509396467,3.208725,3.30562687929,3.11182312071,3.2662,-0.0016,1.48321329157,59.7295969946,1.55675418116,60.8879098597,3.2406823685,3.20975538681,0.0309269816902,0.0243589470047,0.013136069371,3.248,0.0184,-0.0948157210583
2017-11-06,3.2664,3.3315,3.2505,3.2926,3.2926,0.0,3.21558,0.0501915656577,3.21558,3.31596313132,3.11519686868,3.2646,0.028,2.13332484168,68.0850198901,1.86917169044,65.1467354383,3.24866969741,3.21589273286,0.0327769645585,0.0260425505154,0.0134688280862,3.2699,-0.0035,0.0183722212015
2017-11-07,3.248,3.286,3.246,3.2479,3.2479,0.0,3.218635,0.0502071003053,3.218635,3.31904920061,3.11822079939,3.2926,-0.0447,0.950074933164,48.7199192711,1.21053023753,54.7619850195,3.24855128241,3.21826389482,0.0302873875977,0.0268915179319,0.0067917393316,3.2543,-0.0063,-0.563311290718
2017-11-08,3.2699,3.274,3.2407,3.2701,3.2701,0.0,3.22325,0.0504972589148,3.22325,3.32424451783,3.12225548217,3.2479,0.0222,1.28063180224,56.1525012928,1.40144252348,58.3583621002,3.25186647003,3.22210398612,0.0297624839088,0.0274657111273,0.00459354556301,,,0.107151604213
2017-11-09,3.2543,3.2543,3.2543,3.2543,3.2543,0.0,3.22748,0.0493047088604,3.22748,3.32608941772,3.12887058228,3.2701,-0.0158,0.99868859528,49.9671933706,1.22052768596,54.9656594547,3.25224085928,3.22448909447,0.0277517648185,0.0275229218655,0.000457685905898,,,0.193965517241
2017-11-07,3.248,3.286,3.246,3.2479,3.2479,0.0,3.218635,0.0502071003053,3.218635,3.31904920061,3.11822079939,3.2926,-0.0447,0.950074933164,48.7199192711,1.21053023753,54.7619850195,3.24855128241,3.21826389482,0.0302873875977,0.0268915179319,0.0067917393316,3.2513,-0.0033,-0.563311290718
2017-11-08,3.2699,3.274,3.2407,3.2701,3.2701,0.0,3.22325,0.0504972589148,3.22325,3.32424451783,3.12225548217,3.2479,0.0222,1.28063180224,56.1525012928,1.40144252348,58.3583621002,3.25186647003,3.22210398612,0.0297624839088,0.0274657111273,0.00459354556301,3.2518,0.0181,0.107151604213
2017-11-09,3.2513,3.2651,3.237,3.2513,3.2513,0.0,3.22733,0.0492233160415,3.22733,3.32577663208,3.12888336792,3.2701,-0.0188,0.958616113037,48.9435426706,1.19132693476,54.3655497434,3.25177932079,3.22426685189,0.0275124688974,0.0274750626813,7.48124322669e-05,,,0.101600985222
2017-11-10,3.2518,3.2518,3.2518,3.2518,3.2518,0.0,3.23147,0.0475114180184,3.23147,3.32649283604,3.13644716396,3.2513,0.0005,0.966641133535,49.1518822144,1.19567687909,54.4559579999,3.25178250221,3.2263065173,0.0254759849067,0.0270752471264,-0.00319852443933,,,-0.553533747209
3 changes: 2 additions & 1 deletion brlusd.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2047,4 +2047,5 @@ Date,Open,High,Low,Close,Adj Close,Volume
2017-11-06,3.2664,3.3315,3.2505,3.2926,3.2926,0.0
2017-11-07,3.248,3.286,3.246,3.2479,3.2479,0.0
2017-11-08,3.2699,3.274,3.2407,3.2701,3.2701,0.0
2017-11-09,3.2543,3.2543,3.2543,3.2543,3.2543,0.0
2017-11-09,3.2513,3.2651,3.237,3.2513,3.2513,0.0
2017-11-10,3.2518,3.2518,3.2518,3.2518,3.2518,0.0
2 changes: 1 addition & 1 deletion monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
last_macd = macd[-1]
indicadores_dataframe.append(last_macd)
try:
macd_mean
macd_indicator
indicator_handler.update_indicator(session, macd_indicator.id, last_macd)
indicator_handler.update_indicator(session, macd_mean.id, macd_mean)
indicator_handler.update_indicator(session, macd_std.id)
Expand Down
Binary file modified testingstockdata.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5a0a8d7

Please sign in to comment.