Bonjour,
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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.