The Wayback Machine - https://web.archive.org/web/20201230104015/https://github.com/markcheno/go-talib
Skip to content
master
Go to file
Code

Latest commit

Mark Chenoweth Mark Chenoweth
Mark Chenoweth and Mark Chenoweth update
cd53a92

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Feb 29, 2016
Mar 7, 2019

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.