Load the file SimulatedStock.mat, which provides a timetable (TMW) for financial data for TMW stock. This example shows how to plot a Renko chart for the most recent 21 days. Note that the variable name of asset price is renamed to 'Price' (case insensitive).
load SimulatedStock.mat
TMW.Properties.VariableNames{'Close'} = 'Price';
renko(TMW(end-8:end,:),2)
title('Renko Chart for TMW')
Data for a series of prices, specified as a matrix, table, or timetable.
Timetables and tables with M rows must contain a variable
named 'Price' (case insensitive).
Data Types: double | table | timetable
Least price change value when adding a new box, specified as a scalar
positive numeric value.
Data Types: double
(Optional) Valid axis object, specified as an axes object. The renko plot
is created in the axes specified by ax instead of in the
current axes (ax = gca). The option ax
can precede any of the input argument combinations.
A Renko chart is a type of financial chart
used in technical analysis to represent price movements of an asset without
considering time intervals.
Instead of plotting price changes over time, Renko charts focus solely on
significant price movements, filtering out minor fluctuations. This makes them
particularly useful for identifying trends and reversals in the market.
renko accepts Data input as a matrix,
timetable, or table.
The syntax for renko has changed. Previously, when using table
input, the first column of dates could be a datetime array, date character vectors,
or serial date numbers, and you were required to have specific number of
columns.
When using table input, the new syntax for renko supports:
No need for time information. If you want to pass in date information,
use timetable input.
No requirement of specific number of columns. However, you must
provide valid column names. renko must contain a
column named ‘price’ (case insensitive).
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.