Skip to content
A pure Go port of TA-Lib (http://ta-lib.org)
Branch: master
Clone or download
Mark Chenoweth Mark Chenoweth
Mark Chenoweth and Mark Chenoweth update
Latest commit cd53a92 Mar 7, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore ignore pyenv version Apr 1, 2018
LICENSE Initial commit Feb 29, 2016
README.md update Mar 7, 2019
talib.go adding GroupCandles function Oct 4, 2018
talib_test.go Commenting out tests Oct 8, 2018

README.md

go-talib

GoDoc

A pure Go port of TA-Lib

Install

Install the package with:

go get github.com/markcheno/go-talib

Import it with:

import "github.com/markcheno/go-talib"

and use talib as the package name inside the code.

Example

package main

import (
	"fmt"
	"github.com/markcheno/go-quote"
	"github.com/markcheno/go-talib"
)

func main() {
	spy, _ := quote.NewQuoteFromYahoo("spy", "2016-01-01", "2016-04-01", quote.Daily, true)
	fmt.Print(spy.CSV())
	rsi2 := talib.Rsi(spy.Close, 2)
	fmt.Println(rsi2)
}

License

MIT License - see LICENSE for more details

Contributors

You can’t perform that action at this time.