I am unable to plot candlestick in Julia properly.
Here is a sample code:
using Plots
using Dates
using MarketData
using TimeSeries
gr()
ta = yahoo(:GOOG, YahooOpt(period1 = now() - Month(1)))
display(plot(ta, seriestype= :candlestick))
The output I get is below
How to ensure that I get red & green candles?
yashi
2
It seems it does here in my local environment.
(jl_BjqhiB) pkg> st
Status `/tmp/jl_BjqhiB/Project.toml`
[945b72a4] MarketData v0.13.11
[91a5bcdd] Plots v1.29.0
[9e3dc215] TimeSeries v0.23.0
(jl_BjqhiB) pkg>
julia> versioninfo()
Julia Version 1.7.2
Commit bf53498635 (2022-02-06 15:21 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: AMD Ryzen 9 5900X 12-Core Processor
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-12.0.1 (ORCJIT, znver3)
1 Like
I updated Julia, it worked.
Thanks a lot, for your help!
1 Like