Skip to content

Commit

Permalink
fix bb data
Browse files Browse the repository at this point in the history
  • Loading branch information
shads2 committed May 28, 2018
1 parent 2d50ee2 commit ba3e031
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ The commands listed below are intended to be run in a terminal.


1. Create a config.yml file in your current directory. See the Configuring config.yml section below for customizing settings. 1. Create a config.yml file in your current directory. See the Configuring config.yml section below for customizing settings.


1. In a terminal run the application. `docker run --rm -v $(pwd)/config.yml:/app/config.yml shadowreaver/crypto-signal:master`. 1. In a terminal run the application. `docker run --rm -v $PWD/config.yml:/app/config.yml shadowreaver/crypto-signal:master`.


1. When you want to update the application run `docker pull shadowreaver/crypto-signal:master` 1. When you want to update the application run `docker pull shadowreaver/crypto-signal:master`


Expand Down
4 changes: 2 additions & 2 deletions app/analyzers/informants/bollinger_bands.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ def analyze(self, historical_data, period_count=21):


for index in range(period_count, bb_df_size): for index in range(period_count, bb_df_size):
data_index = index - period_count data_index = index - period_count
bb_values['upperband'][index] = bb_data[0][data_index] bb_values['lowerband'][index] = bb_data[0][data_index]
bb_values['middleband'][index] = bb_data[1][data_index] bb_values['middleband'][index] = bb_data[1][data_index]
bb_values['lowerband'][index] = bb_data[2][data_index] bb_values['upperband'][index] = bb_data[2][data_index]


bb_values.dropna(how='all', inplace=True) bb_values.dropna(how='all', inplace=True)


Expand Down

0 comments on commit ba3e031

Please sign in to comment.