<commit_before>bollingerband
=============

How to use:
-----------
> Please be sure to have installed **git** and **mercurial** since some dependencies should be cloned from different repositories.  
> Then in a command line execute:  
`go get github.com/Aguardientico/bollingerband`

**Note**
> One of the dependencies (**draw2d**) have an issue. I've set a patch (https://code.google.com/p/draw2d/issues/detail?id=29) to fix it but still today (09/02/2014) the issue is not fixed
If you got the following message: `go/src/code.google.com/p/draw2d/draw2d/image.go:166: cannot use nil as type truetype.Hinting in function argument`
then you should apply manually the patch and run:  
`go install github.com/Aguardientico/bollingerband`

then you can just run
`bollingerband`
It should generate one pgn file for each symbol and should advice the best investment based on the following rules:
1. Do not invest if price is under down band and prices tend to down, since it can mean that prices will keep the trend.
2. If price is close to up band but tend to down then do not invest since the reboot effect.
3. Invest if price is over top band and price tend to up, since it can mean that prices will keep the trend.
4. If price is close to down band but tend to up then invest since the reboot effect.

if you want to change symbols, periods or factor for bollinger band then you can change it in *config.json* file<commit_msg>Fix format<commit_after>bollingerband
=============

How to use:
-----------
> Please be sure to have installed **git** and **mercurial** since some dependencies should be cloned from different repositories.  
> Then in a command line execute:  
`go get github.com/Aguardientico/bollingerband`

**Note**
> One of the dependencies (**draw2d**) have an issue. I've set a patch (https://code.google.com/p/draw2d/issues/detail?id=29) to fix it but still today (09/02/2014) the issue is not fixed
If you got the following message: `go/src/code.google.com/p/draw2d/draw2d/image.go:166: cannot use nil as type truetype.Hinting in function argument`
then you should apply manually the patch and run:  
`go install github.com/Aguardientico/bollingerband`

then you can just run
`bollingerband`
It should generate one pgn file for each symbol and should advice the best investment based on the following rules:  
1.  Do not invest if price is under down band and prices tend to down, since it can mean that prices will keep the trend.
2.  If price is close to up band but tend to down then do not invest since the reboot effect.
3.  Invest if price is over top band and price tend to up, since it can mean that prices will keep the trend.
4.  If price is close to down band but tend to up then invest since the reboot effect.

if you want to change symbols, periods or factor for bollinger band then you can change it in *config.json* file
{'fraction_non_alphanumeric': 0.07915936952714536, 'fraction_numerical': 0.014711033274956218, 'mean_word_length': 4.045936395759718, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6969610', 'n_tokens_mistral': 823, 'n_tokens_neox': 776, 'n_words': 436}