Voici
//
//=/===============/=//=/===============/=//=/ Paramettre de Base
//
defparam drawonlastbaronly = true
//
//=/===============/=//=/===============/=//=/ Interface Visuel
//
//=// Couleur
RxH1 = 0
GxH1 = 150
BxH1 = 255
//=/ Visuel
drawsegment(barindex[30],PP,Barindex+30,PP) coloured(RxH1,GxH1,BxH1) style(dottedline,1)
//=//
drawsegment(barindex[30],Rx1,Barindex+30,Rx1) coloured(RxH1,GxH1,BxH1) style(dottedline,1)
drawsegment(barindex[30],Rx2,Barindex+30,Rx2) coloured(RxH1,GxH1,BxH1) style(dottedline,1)
drawsegment(barindex[30],Rx3,Barindex+30,Rx3) coloured(RxH1,GxH1,BxH1) style(dottedline,1)
drawsegment(barindex[30],Rx4,Barindex+30,Rx4) coloured(RxH1,GxH1,BxH1) style(dottedline,1)
//=//
drawsegment(barindex[30],Sx1,Barindex+30,Sx1) coloured(RxH1,GxH1,BxH1) style(dottedline,1)
drawsegment(barindex[30],Sx2,Barindex+30,Sx2) coloured(RxH1,GxH1,BxH1) style(dottedline,1)
drawsegment(barindex[30],Sx3,Barindex+30,Sx3) coloured(RxH1,GxH1,BxH1) style(dottedline,1)
drawsegment(barindex[30],Sx4,Barindex+30,Sx4) coloured(RxH1,GxH1,BxH1) style(dottedline,1)
if Text then
//=//
Drawtext("Piv 1h",barindex+35,PP,dialog,bold,11) coloured(RxH1,GxH1,BxH1)
//=//
Drawtext("R1 1h",barindex+35,Rx1,dialog,bold,11) coloured(RxH1,GxH1,BxH1)
Drawtext("R2 1h",barindex+35,Rx2,dialog,bold,11) coloured(RxH1,GxH1,BxH1)
Drawtext("R3 1h",barindex+35,Rx3,dialog,bold,11) coloured(RxH1,GxH1,BxH1)
Drawtext("R4 1h",barindex+35,Rx4,dialog,bold,11) coloured(RxH1,GxH1,BxH1)
//=//
Drawtext("S1 1h",barindex+35,Sx1,dialog,bold,11) coloured(RxH1,GxH1,BxH1)
Drawtext("S2 1h",barindex+35,Sx2,dialog,bold,11) coloured(RxH1,GxH1,BxH1)
Drawtext("S3 1h",barindex+35,Sx3,dialog,bold,11) coloured(RxH1,GxH1,BxH1)
Drawtext("S4 1h",barindex+35,Sx4,dialog,bold,11) coloured(RxH1,GxH1,BxH1)
endif
if Middle then
//=//
drawsegment(barindex[30],MxR1,Barindex+30,MxR1) coloured(RxH1,GxH1,BxH1) style(dottedline,1)
drawsegment(barindex[30],MxR2,Barindex+30,MxR2) coloured(RxH1,GxH1,BxH1) style(dottedline,1)
drawsegment(barindex[30],MxR3,Barindex+30,MxR3) coloured(RxH1,GxH1,BxH1) style(dottedline,1)
drawsegment(barindex[30],MxR4,Barindex+30,MxR4) coloured(RxH1,GxH1,BxH1) style(dottedline,1)
//=//
drawsegment(barindex[30],MxS1,Barindex+30,MxS1) coloured(RxH1,GxH1,BxH1) style(dottedline,1)
drawsegment(barindex[30],MxS2,Barindex+30,MxS2) coloured(RxH1,GxH1,BxH1) style(dottedline,1)
drawsegment(barindex[30],MxS3,Barindex+30,MxS3) coloured(RxH1,GxH1,BxH1) style(dottedline,1)
drawsegment(barindex[30],MxS4,Barindex+30,MxS4) coloured(RxH1,GxH1,BxH1) style(dottedline,1)
endif
if MiddleText then
//=//
Drawtext("mR1 1h",barindex+35,MxR1,dialog,bold,11) coloured(RxH1,GxH1,BxH1)
Drawtext("mR2 1h",barindex+35,MxR2,dialog,bold,11) coloured(RxH1,GxH1,BxH1)
Drawtext("mR3 1h",barindex+35,MxR3,dialog,bold,11) coloured(RxH1,GxH1,BxH1)
Drawtext("mR4 1h",barindex+35,MxR4,dialog,bold,11) coloured(RxH1,GxH1,BxH1)
//=//
Drawtext("mS1 1h",barindex+35,MxS1,dialog,bold,11) coloured(RxH1,GxH1,BxH1)
Drawtext("mS2 1h",barindex+35,MxS2,dialog,bold,11) coloured(RxH1,GxH1,BxH1)
Drawtext("mS3 1h",barindex+35,MxS3,dialog,bold,11) coloured(RxH1,GxH1,BxH1)
Drawtext("mS4 1h",barindex+35,MxS4,dialog,bold,11) coloured(RxH1,GxH1,BxH1)
endif
//
//=/===============/=//=/===============/=//=/ Pivot
//
timeframe(1hours)
//=/ H & L & C
LL = low[1]
HH = high[1]
CC = close[1]
//=/ S & R & P
PP = (LL+HH+CC)/3
//=//
Rx1 = 2 * PP - LL
MxR1 = (PP+Rx1)/2
Rx2 = PP + (HH-LL)
MxR2 = (Rx2+Rx1)/2
Rx3 = Rx2 + (Rx1-PP)
MxR3 = (Rx3+Rx2)/2
Rx4 = Rx3 + (Rx2-PP)
MxR4 = (Rx4+Rx3)/2
//=//
Sx1 = 2 * PP - HH
MxS1 = (PP+Sx1)/2
Sx2 = PP - (HH-LL)
MxS2 = (Sx1+Sx2)/2
Sx3 = Sx2 - (PP-Sx1)
MxS3 = (Sx2+Sx3)/2
Sx4 = Sx3 - (PP-Sx2)
MxS4 = (Sx3+Sx4)/2
timeframe(default)
//
//=/===============/=//=/===============/=//=/ Fin
//
return