Comments (7)
@cinar thanks for the quick reply!
yeah indeed tricky sometimes..
I will try your suggestion with a new project and report what i`ve found
from indicator.
Ah, having a v2 turned out to be tricky in Golang. Thank you very much for reporting this. Let me take a quick look.
from indicator.
Just did something quick as a new project:
go mod init github.com/cinar/x
Added a quick file:
main.go:
package main
import (
"fmt"
"github.com/cinar/indicator/v2/trend"
)
func main() {
macd := trend.NewMacd[float64]()
fmt.Printf("%d", macd.IdlePeriod())
}
Go mod tidy seems to be working for me, but I'm on Go 1.22.1, I wonder if that plays a role.
$ go mod tidy
go: finding module for package github.com/cinar/indicator/v2/trend
go: found github.com/cinar/indicator/v2/trend in github.com/cinar/indicator/v2 v2.0.1
Would you mind trying with an empty project to see if it will make a difference?
from indicator.
ok.. thanks, it seems to work with a new project. investigating further from here. I might be missing something in my other project then..
from indicator.
I think I got it now.. I had a few lines in there still using the library like in v1
example -> indicator.Ema(...)
this seems to prevent it from pointing to the actual dep when doing a "go mod tidy"
from indicator.
from indicator.
I will definitely let you know as soon as I migrated completely.
As you mentioned, these are breaking changes, but at first glance, it looks a lot nicer! I waited for this for a while already ;)
Thx for your work :)
from indicator.
Related Issues (20)
- Vwma indicator HOT 2
- projectionOscillator returns values less than 0(minimum), and returns values grater than 100(maximum)
- Restructure Candlestick HOT 1
- StochasticOscillator returns NaN for D HOT 4
- Aroon Indicator HOT 2
- Why is volume an []int64 and not []float64 ? HOT 6
- Getting invalid SMA's HOT 1
- Add Generator support for streams HOT 1
- Go Report Card - momentum/ichimoku_cloud.go - Line 27: warning: "resistence" is a misspelling of "resistance" (misspell)
- Go Report Card - helper/divide.go - Line 17: warning: "divison" is a misspelling of "division" (misspell)
- True Strength Index (TSI) Strategy HOT 1
- Snapshot Volume also float64 instead of int64 !? HOT 2
- Option to set the time format for the reports HOT 2
- Backtest to take LastDate as the reference point
- devcontainer still uses Go version 1.20
- The comment for helper.Shift is slightly wrong.
- Integration of other marketdata vendors / alpaca.markets HOT 1
- The ATR calculation process is wrong
- Introduce workflow for doc HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from indicator.