diff --git a/src/indicators/SOBV.jl b/src/indicators/SOBV.jl index 9ebc861..0a74231 100644 --- a/src/indicators/SOBV.jl +++ b/src/indicators/SOBV.jl @@ -15,7 +15,7 @@ mutable struct SOBV{Tohlcv,IN,S} <: TechnicalIndicatorSingleOutput{Tohlcv} sub_indicators::Series obv::OBV - obv_ma::SMA + obv_ma::MovingAverageIndicator input_modifier::Function input_filter::Function diff --git a/src/other/iterators.jl b/src/other/iterators.jl index fce5b95..76b4851 100644 --- a/src/other/iterators.jl +++ b/src/other/iterators.jl @@ -89,4 +89,4 @@ function Iterators.reset!(itr::TechnicalIndicatorIterator) itr.indicator_type{eltype(itr.iterable_input)}(itr.args...; itr.kwargs...) end -Base.length(itr::TechnicalIndicatorIterator) = length(itr.input_iterator) +Base.length(itr::TechnicalIndicatorIterator{T,I}) where {T, I} = length(itr.iterable_input) diff --git a/test/runtests.jl b/test/runtests.jl index f6791c4..0a33153 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -69,15 +69,15 @@ end @testset "OnlineTechnicalIndicators.jl" begin - #include("test_ohlcv.jl") - - #@testset "indicators" begin - # include("test_indicators_interface.jl") - # include("test_ind_single_input_single_output.jl") # SISO - # include("test_ind_single_input_several_outputs.jl") # SIMO - # include("test_ind_OHLCV_input_single_output.jl") # MISO - # include("test_ind_OHLCV_input_several_outputs.jl") # MIMO - #end + include("test_ohlcv.jl") + + @testset "indicators" begin + include("test_indicators_interface.jl") + include("test_ind_single_input_single_output.jl") # SISO + include("test_ind_single_input_several_outputs.jl") # SIMO + include("test_ind_OHLCV_input_single_output.jl") # MISO + include("test_ind_OHLCV_input_several_outputs.jl") # MIMO + end include("test_resample.jl")