DefParam DrawOnLastBarOnly = true
Haut=24998
Bas=24660
C=24727
Voffset =15
Pivot = (Haut+Bas+C) / 3
R3=Pivot + ((Haut - Bas)*2)
R22= Pivot + Haut - Bas
R1 = (2 * Pivot) - Bas
S1 = (2 * Pivot) - Haut
S2 = Pivot - (Haut - Bas)
S3 = Pivot - ((Haut - Bas)*2)
mR1=Pivot+(R1-Pivot)/2
mR2=R1+(R22-R1)/2
mR3=R22+(R3-R22)/2
mS1=Pivot-(Pivot-S1)/2
mS2=S1-(S1-S2)/2
mS3=S2-(S2-S3)/2
//draw pivot points text
DRAWTEXT("Piv M",barindex-2,Pivot+Voffset,SansSerif,Standard)
DRAWTEXT("R3 M",barindex-2,R3+Voffset,SansSerif,Standard)
DRAWTEXT("mR3 M",barindex-2,mR3+Voffset,SansSerif,Standard)
DRAWTEXT("R2 M",barindex-2,R22+Voffset,SansSerif,Standard)
DRAWTEXT("mR2 M",barindex-2,mR2+Voffset,SansSerif,Standard)
DRAWTEXT("R1 M",barindex-2,R1+Voffset,SansSerif,Standard)
DRAWTEXT("mR1 M",barindex-2,mR1+Voffset,SansSerif,Standard)
DRAWTEXT("S1 M",barindex-2,S1+Voffset,SansSerif,Standard)
DRAWTEXT("mS1 M",barindex-2,mS1+Voffset,SansSerif,Standard)
DRAWTEXT("S2 M",barindex-2,S2+Voffset,SansSerif,Standard)
DRAWTEXT("mS2 M",barindex-2,mS2+Voffset,SansSerif,Standard)
DRAWTEXT("S3 M",barindex-2,S3+Voffset,SansSerif,Standard)
DRAWTEXT("mS3 M",barindex-2,mS3+Voffset,SansSerif,Standard)
return Pivot as "Pivot",R3 as "R3",mR3 as "mR3",R22 as "R2",mR2 as "mR2",R1 as "R1",mR1 as "mR1",S1 as "S1",mS1 as "mS1",S2 as "S2",mS2 as "mS2",S3 as "S3",mS3 as "mS3"