| |
- Value(...)
- Value(x)
- candlestick(ax, quotes, width=0.20000000000000001, colorup='k', colordown='r', converter=<matplotlib.dates.EpochConverter instance>, alpha=1.0)
- quotes is a list of (time, open, close, high, low, ...) tuples.
As long as the first 5 elements of the tuples are these values,
the tuple can be as long as you want (eg it may store volume).
Plot the time, open, close, high, low as a vertical line ranging
from low to high. Use a rectangular bar to represent the
open-close span. If close >= open, use colorup to color the bar,
otherwise use colordown
ax : an Axes instance to plot to
width : fraction of a day for the rectangle width
colorup : the color of the rectangle where close >= open
colordown : the color of the rectangle where close < open
converter : dates.DateConverter instance used to convert your times.
If your data is already epoch, you can use converter=None
alpha : the rectangle alpha level
return value is lines, patches where lines is a list of lines
added and patches is a list of the rectangle patches added
- candlestick2(ax, opens, closes, highs, lows, width=4, colorup='k', colordown='r', alpha=0.75)
- Represent the open, close as a bar line and high low range as a
vertical line.
ax : an Axes instance to plot to
width : the bar width in points
colorup : the color of the lines where close >= open
colordown : the color of the lines where close < open
alpha : bar transparency
return value is a list of lines added
- plot_day_summary(ax, quotes, ticksize=3, colorup='k', colordown='r', converter=<matplotlib.dates.EpochConverter instance>)
- quotes is a list of (time, open, close, high, low, ...) tuples
Represent the time, open, close, high, low as a vertical line
ranging from low to high. The left tick is the open and the right
tick is the close.
ax : an Axes instance to plot to
ticksize : open/close tick marker in points
colorup : the color of the lines where close >= open
colordown : the color of the lines where close < open
converter : dates.DateConverter instance used to convert your times.
If your data is already epoch, you can use converter=None
return value is a list of lines added
- plot_day_summary2(ax, opens, closes, highs, lows, ticksize=4, colorup='k', colordown='r')
- Represent the time, open, close, high, low as a vertical line
ranging from low to high. The left tick is the open and the right
tick is the close.
ax : an Axes instance to plot to
ticksize : size of open and close ticks in points
colorup : the color of the lines where close >= open
colordown : the color of the lines where close < open
return value is a list of lines added
- quotes_historical_yahoo(ticker, date1, date2, converter=<matplotlib.dates.EpochConverter instance>)
- Get historical data for ticker between date1 and date2. converter
is a DateConverter class appropriate for converting your dates
results are a list of
d, open, close, high, low, volume
where d is an instnace of your datetime supplied by the converter
|