Skip to content

Commit

Permalink
macd: add typing for wilder parameter in func signature
Browse files Browse the repository at this point in the history
  • Loading branch information
iblislin committed May 8, 2017
1 parent 70c3ac5 commit 451a334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/momentum.jl
Expand Up @@ -83,7 +83,7 @@ If the input is a multi-column `TimeArray`, the new column names will be
"""
function macd{T,N}(ta::TimeArray{T,N},
fast::Int=12, slow::Int=26, signal::Int=9;
wilder=false)
wilder::Bool=false)
dif = ema(ta, fast, wilder=wilder) .- ema(ta, slow, wilder=wilder)
sig = ema(dif, signal, wilder=wilder)
osc = dif .- sig
Expand Down

0 comments on commit 451a334

Please sign in to comment.