Skip to content

Commit

Permalink
fix bug finding adjusted close column
Browse files Browse the repository at this point in the history
  • Loading branch information
dysonance committed Jan 15, 2019
1 parent d986f75 commit f107609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ohlc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ vo(x::TS)::TS = x[:,findfirst([occursin(r"(vo)"i, String(field)) for field in x.
function cl(x::TS; use_adj::Bool=true, allow_settle::Bool=true, allow_last::Bool=true)::TS
columns = String.(x.fields)
if use_adj
j = findfirst([occursin(r"(adj((usted)|\s|)+)?(cl)"i, column) for column in columns])
j = findfirst([occursin(r"(adj((usted)|\s|)+)(cl)?"i, column) for column in columns])
if !isa(j, Nothing)
return x[:,j]
end
Expand Down

0 comments on commit f107609

Please sign in to comment.