RenkoChart
✖
RenkoChart
makes a Renko chart of closing prices for the financial entity "name" over the date range daterange.
Details and Options
- RenkoChart displays as a sequence of bricks and is used to track price movement; neither time nor volume is included.
- A Renko chart is drawn as a series of fixed-height bricks. A brick is drawn in a new column when the price rises above the top of the previous brick or drops below the bottom of the previous brick, by a fixed amount.
- RenkoChart[…] is equivalent to RenkoChart[…,{"Relative",0.1}, 1] for a brick height of 10% of the high minus low price range.
- The following arguments can be used to specify the brick height s:
-
{"Relative",p} fraction of high minus low price (default) {"Absolute",p} absolute price change - The dates datei are considered an ordered sequence of events and are not shown on an absolute time scale.
- The date formats for datei are the same as used in DateListPlot.
- The "name" and daterange are the same as used in FinancialData.
- Data elements for RenkoChart can be given in the following forms:
-
{datei,pi} a pure date-price pair wi[{datei,pi},…] a date-price pair and wrapper wi formi->mi a date-price pair with metadata mi - A brick may represent several date-price pairs, and the corresponding wrappers will apply to the entire brick.
- Data not given in these is taken to be missing and typically is excluded when generating the chart.
- Data for RenkoChart can be given in the following forms:
-
{e1,e2,…} list of elements with or without wrappers w[{e1,e2,…}] wrapper applied to the whole data - The following wrappers can be used for data elements:
-
Annotation[e,label] provide an annotation Button[e,action] define an action to execute when the element is clicked EventHandler[e,…] define a general event handler for the element Hyperlink[e,uri] make the element act as a hyperlink Labeled[e,…] display the element with labeling PopupWindow[e,cont] attach a popup window to the element StatusArea[e,label] display in the status area when the element is moused over Style[e,opts] show the element using the specified styles Tooltip[e,label] attach an arbitrary tooltip to the element - In RenkoChart, Labeled and Placed allow the following positions:
-
Top,Bottom,Left,Right,Center positions within bricks Above, Below, Before, After positions outside bricks {{bx,by},{lx,ly}} scaled position {lx,ly} in the label at scaled position {bx,by} in the brick - RenkoChart has the same options as Graphics, with the following additions and changes: [List of all options]
-
AspectRatio 1/GoldenRatio overall ratio of height to width Axes True whether to draw axes ChartBaseStyle Automatic overall style for bricks ChartElementFunction Automatic how to generate raw graphics for bricks ChartElements Automatic graphics to use in each of the bricks DateFunction Automatic how to convert dates to standard form EventLabels None events to label GridLines Automatic grid lines to draw GridLinesStyle Automatic style for grid lines PerformanceGoal $PerformanceGoal aspects of performance to try to optimize PlotTheme $PlotTheme overall theme for the plot TrendStyle Automatic how to style up and down trends ScalingFunctions None how to scale the axis - The arguments supplied to ChartElementFunction are the brick region {{xmin,xmax},{ymin,ymax}}, the date-price pairs list, and metadata {m1,m2,…}.
- A list of built-in settings for ChartElementFunction can be obtained from ChartElementData["RenkoChart"].
- With the setting ChartElements->{up,down}, up and down will be used for up and down bricks, respectively.
- EventLabels->{…,datei->lbli,…} specifies a label associated with datei. The label will be displayed with the brick that has a date range that includes datei.
- With ScalingFunctions->sy, the function sy is applied to the prices. ScalingFunctions only affects the display and none of the controls.
- Style and other specifications from options and other constructs in RenkoChart are effectively applied in the order TrendStyle, Style and other wrappers, and ChartElementFunction, with later specifications overriding earlier ones.
-
AlignmentPoint Center the default point in the graphic to align with AspectRatio 1/GoldenRatio overall ratio of height to width Axes True whether to draw axes AxesLabel None axes labels AxesOrigin Automatic where axes should cross AxesStyle {} style specifications for the axes Background None background color for the plot BaselinePosition Automatic how to align with a surrounding text baseline BaseStyle {} base style specifications for the graphic ChartBaseStyle Automatic overall style for bricks ChartElementFunction Automatic how to generate raw graphics for bricks ChartElements Automatic graphics to use in each of the bricks ContentSelectable Automatic whether to allow contents to be selected CoordinatesToolOptions Automatic detailed behavior of the coordinates tool DateFunction Automatic how to convert dates to standard form Epilog {} primitives rendered after the main plot EventLabels None events to label FormatType TraditionalForm the default format type for text Frame False whether to put a frame around the plot FrameLabel None frame labels FrameStyle {} style specifications for the frame FrameTicks Automatic frame ticks FrameTicksStyle {} style specifications for frame ticks GridLines Automatic grid lines to draw GridLinesStyle Automatic style for grid lines ImageMargins 0. the margins to leave around the graphic ImagePadding All what extra padding to allow for labels etc. ImageSize Automatic the absolute size at which to render the graphic LabelStyle {} style specifications for labels Method Automatic details of graphics methods to use PerformanceGoal $PerformanceGoal aspects of performance to try to optimize PlotLabel None an overall label for the plot PlotRange All range of values to include PlotRangeClipping False whether to clip at the plot range PlotRangePadding Automatic how much to pad the range of values PlotRegion Automatic the final display region to be filled PlotTheme $PlotTheme overall theme for the plot PreserveImageOptions Automatic whether to preserve image options when displaying new versions of the same graphic Prolog {} primitives rendered before the main plot RotateLabel True whether to rotate y labels on the frame ScalingFunctions None how to scale the axis Ticks Automatic axes ticks TicksStyle {} style specifications for axes ticks TrendStyle Automatic how to style up and down trends
List of all options
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Chart the prices from a list of values:
https://wolfram.com/xid/0g7iodwerp7-es2kpv
https://wolfram.com/xid/0g7iodwerp7-43qclg
Use three months of prices from FinancialData entities:
https://wolfram.com/xid/0g7iodwerp7-v6a446
https://wolfram.com/xid/0g7iodwerp7-ihy19z
Scope (20)Survey of the scope of standard use cases
Data and Wrappers (12)
Automatically get quarterly data for a financial entity:
https://wolfram.com/xid/0g7iodwerp7-nd5ltg
Get data for a specific date range:
https://wolfram.com/xid/0g7iodwerp7-jzb4ju
Get data from FinancialData:
https://wolfram.com/xid/0g7iodwerp7-usf20w
https://wolfram.com/xid/0g7iodwerp7-mjch87
Brick size by default is a fraction of the price range:
https://wolfram.com/xid/0g7iodwerp7-1y0aqn
Specify brick sizes as a fraction of the price range:
https://wolfram.com/xid/0g7iodwerp7-dygjoh
https://wolfram.com/xid/0g7iodwerp7-ff92es
Use wrappers on individual data:
https://wolfram.com/xid/0g7iodwerp7-w56mby
Use wrappers on entire datasets:
https://wolfram.com/xid/0g7iodwerp7-yhfff1
https://wolfram.com/xid/0g7iodwerp7-d78b5k
Override the default tooltips:
https://wolfram.com/xid/0g7iodwerp7-dw7akx
Use PopupWindow to provide additional drilldown information:
https://wolfram.com/xid/0g7iodwerp7-67ht4l
Button can be used to trigger any action:
https://wolfram.com/xid/0g7iodwerp7-hf47e2
Styling and Appearance (5)
Specify styles for up and down trends:
https://wolfram.com/xid/0g7iodwerp7-gduxto
https://wolfram.com/xid/0g7iodwerp7-055sqg
https://wolfram.com/xid/0g7iodwerp7-moey6a
ChartBaseStyle can be used to set a style for all chart elements:
https://wolfram.com/xid/0g7iodwerp7-dkk5kn
Style can be used to override styles:
https://wolfram.com/xid/0g7iodwerp7-10tvwz
Use built-in programmatically generated bars:
https://wolfram.com/xid/0g7iodwerp7-wvz8c
https://wolfram.com/xid/0g7iodwerp7-f2wd4m
Labeling (3)
Use Labeled to add a label to a bar:
https://wolfram.com/xid/0g7iodwerp7-keu5cx
Use symbolic positions for label placement:
https://wolfram.com/xid/0g7iodwerp7-zcv07v
https://wolfram.com/xid/0g7iodwerp7-xqnad
Use Placed to control the positioning of labels, using the same positions as for Labeled:
https://wolfram.com/xid/0g7iodwerp7-ocux9
Options (45)Common values & functionality for each option
AspectRatio (1)
AspectRatio controls the ratio of the height to width:
https://wolfram.com/xid/0g7iodwerp7-oq7gw
https://wolfram.com/xid/0g7iodwerp7-c8i2h
AspectRatio 1 will make width equal to height:
https://wolfram.com/xid/0g7iodwerp7-bogti0
Axes (2)
AxesOrigin (3)
Axes origin is on the left by default:
https://wolfram.com/xid/0g7iodwerp7-uddlhw
Place the axis at the end of February:
https://wolfram.com/xid/0g7iodwerp7-hyp0ki
Use named positions for the axis:
https://wolfram.com/xid/0g7iodwerp7-y1wf0j
ChartBaseStyle (5)
Use ChartBaseStyle to apply overall styles for the bricks:
https://wolfram.com/xid/0g7iodwerp7-fv6avq
https://wolfram.com/xid/0g7iodwerp7-xdb7a
ChartBaseStyle combines with TrendStyle:
https://wolfram.com/xid/0g7iodwerp7-7gr4zz
TrendStyle may override the settings for ChartBaseStyle:
https://wolfram.com/xid/0g7iodwerp7-hw3cg3
Style overrides the settings for ChartBaseStyle:
https://wolfram.com/xid/0g7iodwerp7-ijqtb1
ChartElementFunction (4)
Get a list of built-in settings for ChartElementFunction:
https://wolfram.com/xid/0g7iodwerp7-dtztdn
https://wolfram.com/xid/0g7iodwerp7-rtlsm1
https://wolfram.com/xid/0g7iodwerp7-2497ia
These examples of ChartElementFunction show the global scale:
https://wolfram.com/xid/0g7iodwerp7-d64rc
Write a custom ChartElementFunction:
https://wolfram.com/xid/0g7iodwerp7-dh5in
https://wolfram.com/xid/0g7iodwerp7-hlonq9
ChartElements (6)
Use any Graphics object for the bricks:
https://wolfram.com/xid/0g7iodwerp7-rgiuuz
Use different markers for up and down trends:
https://wolfram.com/xid/0g7iodwerp7-ysugu8
Graphical elements pick up the style from TrendStyle:
https://wolfram.com/xid/0g7iodwerp7-uf6sbz
https://wolfram.com/xid/0g7iodwerp7-sl93wq
https://wolfram.com/xid/0g7iodwerp7-w4gdc8
Chart elements are sized to fill the bricks:
https://wolfram.com/xid/0g7iodwerp7-gzqary
Use explicit sizes for width and height:
https://wolfram.com/xid/0g7iodwerp7-cryqz1
EventLabels (3)
GridLines (4)
Grid lines are used by default:
https://wolfram.com/xid/0g7iodwerp7-t74orb
https://wolfram.com/xid/0g7iodwerp7-hnli7h
https://wolfram.com/xid/0g7iodwerp7-7bxzxe
Place grid lines at month or year boundaries:
https://wolfram.com/xid/0g7iodwerp7-co8vfu
Use dotted grid lines for months and red grid lines for years:
https://wolfram.com/xid/0g7iodwerp7-7tl1sx
GridLinesStyle (3)
By default, GridLinesStyle uses dotted grid lines with emphasized year grid lines:
https://wolfram.com/xid/0g7iodwerp7-faxx3d
https://wolfram.com/xid/0g7iodwerp7-o6oel
GridLines overrides GridLinesStyle:
https://wolfram.com/xid/0g7iodwerp7-8jzlqh
PerformanceGoal (3)
Generate a RenkoChart with interactive highlighting:
https://wolfram.com/xid/0g7iodwerp7-e280bs
Emphasize performance by disabling interactive behaviors:
https://wolfram.com/xid/0g7iodwerp7-bu9b2g
Typically, less memory is required for non-interactive charts:
https://wolfram.com/xid/0g7iodwerp7-b587e0
PlotRange (3)
RenkoChart automatically draws all price dates:
https://wolfram.com/xid/0g7iodwerp7-u9i3bb
Limit to a specific date range:
https://wolfram.com/xid/0g7iodwerp7-4abjsu
PlotRange only includes dates for which there is data:
https://wolfram.com/xid/0g7iodwerp7-qr603t
ScalingFunction (2)
TrendStyle (6)
TrendStyle uses green for up trends and red for down trends by default:
https://wolfram.com/xid/0g7iodwerp7-ltvatj
Use black for up trends and red for down trends:
https://wolfram.com/xid/0g7iodwerp7-cjm17n
https://wolfram.com/xid/0g7iodwerp7-0xg6c4
TrendStyle combines with ChartBaseStyle:
https://wolfram.com/xid/0g7iodwerp7-7mow4s
With TrendStyle set to None, the base style is used for up trends and empty bars for down trends:
https://wolfram.com/xid/0g7iodwerp7-55jmr5
TrendStyle->style uses style for up trends and empty bars for down trends:
https://wolfram.com/xid/0g7iodwerp7-xlxn3l
Properties & Relations (7)Properties of the function, and connections to other functions
Larger brick sizes filter out more noise:
https://wolfram.com/xid/0g7iodwerp7-guc823
RenkoChart only shows time periods with significant changes in price:
https://wolfram.com/xid/0g7iodwerp7-6cc3ym
https://wolfram.com/xid/0g7iodwerp7-ltok0p
Use CandlestickChart to visualize the financial data:
https://wolfram.com/xid/0g7iodwerp7-n5f7kl
Use TradingChart to visualize and analyze financial data:
https://wolfram.com/xid/0g7iodwerp7-i2ru7j
Use InteractiveTradingChart to visualize and interactively analyze financial data:
https://wolfram.com/xid/0g7iodwerp7-mbfoxz
Use PointFigureChart, LineBreakChart, and KagiChart to analyze the relation of financial prices and time:
https://wolfram.com/xid/0g7iodwerp7-ddxqkg
Use DateListPlot to visualize financial data:
https://wolfram.com/xid/0g7iodwerp7-dwx0ap
Wolfram Research (2010), RenkoChart, Wolfram Language function, https://reference.wolfram.com/language/ref/RenkoChart.html (updated 2014).
Text
Wolfram Research (2010), RenkoChart, Wolfram Language function, https://reference.wolfram.com/language/ref/RenkoChart.html (updated 2014).
Wolfram Research (2010), RenkoChart, Wolfram Language function, https://reference.wolfram.com/language/ref/RenkoChart.html (updated 2014).
CMS
Wolfram Language. 2010. "RenkoChart." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/RenkoChart.html.
Wolfram Language. 2010. "RenkoChart." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/RenkoChart.html.
APA
Wolfram Language. (2010). RenkoChart. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RenkoChart.html
Wolfram Language. (2010). RenkoChart. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RenkoChart.html
BibTeX
@misc{reference.wolfram_2024_renkochart, author="Wolfram Research", title="{RenkoChart}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/RenkoChart.html}", note=[Accessed: 07-January-2025
]}
BibLaTeX
@online{reference.wolfram_2024_renkochart, organization={Wolfram Research}, title={RenkoChart}, year={2014}, url={https://reference.wolfram.com/language/ref/RenkoChart.html}, note=[Accessed: 07-January-2025
]}