@@ -512,8 +512,33 @@ def plot_day_summary_ohlc(ax, opens, highs, lows, closes, ticksize=4,
512
512
ax .add_collection (closeCollection )
513
513
return rangeCollection , openCollection , closeCollection
514
514
515
+ def candlestick_ochl (ax , opens , closes , highs , lows , width = 4 ,
516
+ colorup = 'k' , colordown = 'r' ,
517
+ alpha = 0.75 ,
518
+ ):
519
+ """
520
+
521
+ Represent the open, close as a bar line and high low range as a
522
+ vertical line.
523
+
524
+ Preserves the original argument order.
525
+
526
+ ax : an Axes instance to plot to
527
+ width : the bar width in points
528
+ colorup : the color of the lines where close >= open
529
+ colordown : the color of the lines where close < open
530
+ alpha : bar transparency
531
+
532
+ return value is lineCollection, barCollection
533
+ """
534
+
535
+ candlestick_ohlc (ax , opens , closes , highs , lows , width = width ,
536
+ colorup = colorup , colordown = colordown ,
537
+ alpha = alpha )
538
+
539
+ candlestick2 = candlestick_ochl
515
540
516
- def candlestick2 (ax , opens , highs , lows , closes , width = 4 ,
541
+ def candlestick_ohlc (ax , opens , highs , lows , closes , width = 4 ,
517
542
colorup = 'k' , colordown = 'r' ,
518
543
alpha = 0.75 ,
519
544
):
0 commit comments