dysonance / Indicators.jl

Financial market technical analysis & indicators in Julia
Other
216 stars 62 forks source link

No matching signature #17

Closed oJshua closed 5 years ago

oJshua commented 5 years ago

Hi there, I'm attempting something simple with Julia 0.7 and a Temporal import (I'm very new to all of this):

filename = "../homedepot.csv"
candles = tsread(filename)
sma(candles[:High], 10)

This gives me an error:

ERROR: LoadError: MethodError: no method matching sma(::Temporal.TS{Float64,Dates.Date}, ::Int64) Closest candidates are: sma(::Temporal.TS{V,T}; args...) where {V, T} at ....

What might I be doing wrong? Thanks!

oJshua commented 5 years ago

Nevermind, figured it out!!!

sma(candles[:High], n=10)