Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 1.38 KB

README.md

File metadata and controls

24 lines (20 loc) · 1.38 KB

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