Documentation Center

  • Trial Software
  • Product Updates

renko

Syntax

renko(X)
renko(X, threshold)

Arguments

X

M-by-2 matrix where the first column contains date numbers and the second column is the asset price.

threshold

(Optional) Specifies a threshold value for asset price. By default, threshold is set to 1.

Description

renko(X) plots asset price with respect to dates.

renko(X, threshold) plots the asset data, X, adding a new box only when the price has changed but at least the value specified by threshold.

Examples

expand all

Plot Asset Price With Respect to Dates

This example shows how to plot asset price with respect to dates, given asset X as an M-by-2 matrix of date numbers and asset prices, generate a Renko chart.

X = [...

733299.00         41.99;...
733300.00         42.14;...
733303.00         41.93;...
733304.00         41.98;...
733305.00         41.75;...
733306.00         41.61;...
733307.00         42.29;...
733310.00         42.19;...
733311.00         41.82;...
733312.00         41.93;...
733313.00         41.81;...
733314.00         41.37;...
733317.00         41.17;...
733318.00         42.02];

renko(X,.1)

See Also

| | | | | | | |

Was this topic helpful?