Bonjour,
express CanalOuverture
vars
input $Debut(0,2400,830),$Fin(0,2400,900);
series PH,PB;
calculation
if (timetonumeric(timeopen)<=$Debut) then
begin
PH=(high+low)/2;
PB=(high+low)/2;
end
if (timetonumeric(timeopen)>=$Debut) then
begin
PH=max(PH[1],high);
PB=min(PB[1],low);
end
if (timetonumeric(timeopen)>$fin) then
begin
PH=PH[1];
PB=PB[1];
end
if (timetonumeric(timeopen)>2000) then
begin
PH=(high+low)/2;
PB=(high+low)/2;
end
interpretation
begin
end
plot(PH,"Blue",2);
plot(PB,"Red",2);
à titre d’exemple voici un code simple de canal d’ouverture.
Je voudrais que les lignes n’apparaissent pas en dehors de heures d’ouverture du canal.
Comment peut-on faire ?
Merci d’avance.
Désolé, je me suis trompé de site.
Bonne journée.