Skip to content

Commit 2f1827d

Browse files
committed
fixing conflicting identifier warning
1 parent fee0f54 commit 2f1827d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ma.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ function alma{Float64}(x::Vector{Float64}; n::Int64=9, offset::Float64=0.85, sig
258258
return out
259259
end
260260

261-
function lag(x::Vector{Float64}, n::Int=1)::Vector{Float64}
261+
function lagged(x::Vector{Float64}, n::Int=1)::Vector{Float64}
262262
if n > 0
263263
return [fill(NaN,n); x[1:end-n]]
264264
elseif n < 0
@@ -274,5 +274,5 @@ Zero-lag exponential moving average (ZLEMA)
274274
`zlema(x::Vector{Float64}; n::Int=10, ema_args...)::Vector{Float64}`
275275
""" ->
276276
function zlema(x::Vector{Float64}; n::Int=10, ema_args...)::Vector{Float64}
277-
return ema(x+(x-lag(x,round(Int, (n-1)/2.0))), n=n; ema_args...)
277+
return ema(x+(x-lagged(x,round(Int, (n-1)/2.0))), n=n; ema_args...)
278278
end

0 commit comments

Comments
 (0)