Function File: renko (X)
Function File: renko (X, threshold)

Plots price changes using a Renko chart.

  • Variable: X An M-by-2 matrix in which the first column contains datenum bers and the second contains prices.
  • Variable: threshold (Optional, default = 1.) A new box is added only when subsequent prices change by more than the threshold.
X = [...
  730299.00  23.45; ...
  730300.00  23.30; ...
  730305.00  24.00; ...
  730310.00  23.50; ...
  730315.00  23.55; ...
  730320.00  24.11; ...
  730325.00  26.00; ...
  730330.00  26.59; ...
  730335.00  26.50; ...
  730340.00  26.40; ...
  730345.00  25.00];
renko(X, .1);

See also: bolling, candle, highlow, kagi, linebreak, movavg, pointfig, priceandvol, volarea.

Package: financial