Skip to content

Commit

Permalink
vola: rename output colume of truerange
Browse files Browse the repository at this point in the history
  • Loading branch information
iblislin committed May 6, 2017
1 parent 876295c commit 509b0d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/volatility.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function truerange{T,N}(ohlc::TimeArray{T,N}; h="High", l="Low", c="Close")
lows = merge(ohlc[l], lag(ohlc[c]))
truehigh = TimeArray(highs.timestamp, maximum(highs.values, 2), ["hi"], highs.meta)
truelow = TimeArray(lows.timestamp, minimum(lows.values, 2), ["lo"], lows.meta)
truehigh .- truelow
rename(truehigh .- truelow, "tr")
end

doc"""
Expand Down

0 comments on commit 509b0d3

Please sign in to comment.