Bonjour Augusseau,
Je pense avoir trouvé une solution à ton pb de pivots mensuels.
Programme :
-------------------------------------------
<pre>
//PIVOTS MENSUELS EN DAILY
//23/12/2004
//
SI RANGHISTO=FINHISTO ALORS //On est placé aujourd'hui
//Inits
N=0
NB=0
H=0
B=1000000
M=MOIS
MP=MOIS-1
//Janvier est le mois précédent décembre
SI MP=0 ALORS MP=12
//Compter jours mois en cours
POUR 30 COURS
SI MOIS=M ALORS NB=NB+1
FINPOUR
//Déterminer +haut, +bas et clôture mois précedent
POUR 50 COURS
SI MOIS=MP
ALORS
N=N+1
SI N=1 ALORS O=OUVERTURE
SI HAUT>H ALORS H=HAUT
SI BAS<B ALORS B=BAS
FINSI
SI MOIS=M ALORS
C=CLOTURE(1)
BREAK
FINSI
FINPOUR
//Calculer points pivots mois précédent
//Les segments correspondants seront tracés
//du 1er jour du mois courant au jour actuel
POUR NB COURS
PT_PIVOT = (H+C+B)/3
R1 = 2*PT_PIVOT-B
S1 = 2*PT_PIVOT-H
R2 = PT_PIVOT+(R1-S1)
S2 = PT_PIVOT-(R1-S1)
FINPOUR
FINSI</pre>
-------------------------------------------
Propriétés :
<center><img src='http://images.pro-at.com/200412/b/propri%e9t%e9s.gif' alt='' /></center>
Pour France Telecom :
<center><img src='http://images.pro-at.com/200412/b/france_t%e9l%e9com.gif' alt='' /></center>
Cordialement et ...
<center><img src='http://images.pro-at.com/200412/b/noel3.gif' alt='' /></center>
Je pense avoir trouvé une solution à ton pb de pivots mensuels.
Programme :
-------------------------------------------
<pre>
//PIVOTS MENSUELS EN DAILY
//23/12/2004
//
SI RANGHISTO=FINHISTO ALORS //On est placé aujourd'hui
//Inits
N=0
NB=0
H=0
B=1000000
M=MOIS
MP=MOIS-1
//Janvier est le mois précédent décembre
SI MP=0 ALORS MP=12
//Compter jours mois en cours
POUR 30 COURS
SI MOIS=M ALORS NB=NB+1
FINPOUR
//Déterminer +haut, +bas et clôture mois précedent
POUR 50 COURS
SI MOIS=MP
ALORS
N=N+1
SI N=1 ALORS O=OUVERTURE
SI HAUT>H ALORS H=HAUT
SI BAS<B ALORS B=BAS
FINSI
SI MOIS=M ALORS
C=CLOTURE(1)
BREAK
FINSI
FINPOUR
//Calculer points pivots mois précédent
//Les segments correspondants seront tracés
//du 1er jour du mois courant au jour actuel
POUR NB COURS
PT_PIVOT = (H+C+B)/3
R1 = 2*PT_PIVOT-B
S1 = 2*PT_PIVOT-H
R2 = PT_PIVOT+(R1-S1)
S2 = PT_PIVOT-(R1-S1)
FINPOUR
FINSI</pre>
-------------------------------------------
Propriétés :
<center><img src='http://images.pro-at.com/200412/b/propri%e9t%e9s.gif' alt='' /></center>
Pour France Telecom :
<center><img src='http://images.pro-at.com/200412/b/france_t%e9l%e9com.gif' alt='' /></center>
Cordialement et ...
<center><img src='http://images.pro-at.com/200412/b/noel3.gif' alt='' /></center>
Commentaire