pine/series_dmi.go
Function DMI
has 56 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func DMI(ohlcv OHLCVSeries, len, smoo int) (adx, plus, minus ValueSeries) {
adxkey := fmt.Sprintf("adx:%s:%d:%d", ohlcv.ID(), len, smoo)
adx = getCache(adxkey)
if adx == nil {
adx = NewValueSeries()
Function DMI
has 8 return statements (exceeds 4 allowed). Open
Open
func DMI(ohlcv OHLCVSeries, len, smoo int) (adx, plus, minus ValueSeries) {
adxkey := fmt.Sprintf("adx:%s:%d:%d", ohlcv.ID(), len, smoo)
adx = getCache(adxkey)
if adx == nil {
adx = NewValueSeries()