Page 1 of 1

Renko

Posted: 26 Nov 2019 18:16
by Lurubu
Bonjour,
puisqu'en Renko le renkoHigh est toujours au-dessus du renkoLow quelque soit la couleur de la bougie,
comment peut-on les distinguer en programmation ?
Merci

Re: Renko

Posted: 28 Nov 2019 16:20
by Auri
Salut,

tu veux dire comme ça?

Code: Select all

Express Renko_candles

Vars

Series
xo,
xc,
xh,
xl;

Calculation
xo = void;
xc = void;
xh = void;
xl = void;

if (renkohigh<renkohigh[1]) then
begin
  xo = renkohigh;
  xc = renkolow;
  xl = renkolow;
  xh = renkohigh;
end
else if (renkohigh>renkohigh[1]) then
begin
  xo = renkolow;
  xc = renkohigh;
  xl = renkolow;
  xh = renkohigh;  
end

Interpretation
begin
end

plotcandles(xo, xc, xh, xl);
Salutations

Re: Renko

Posted: 28 Nov 2019 17:21
by Lurubu
Bonjour,
merci de ta réponse.Ce n'est pas tout à fait ce que je voulais,mais ta réponse m'a aidé.
En fait, je voulais un indic qui m'indique la& couleur du renko.
Il suffisait d'écrire:

If (Xc > Xo) then
Couleur = 1;
else
Couleur = -1;

Merci