Voici un Indicateur point pivot J (Heures Officielles)
Il faut prendre le haut le bas entre 09h00 et 17h30 (rien avant rien après) pour le DAX avec la clôture à 17h30 et le haut le bas entre 15h30 et 22h00 (rien avant rien après) pour le nasdaq avec la clôture à 22h00.
Puis appliquer l'indicateur suivant (OzmizrakCalculPP) en mettant à jour les 3 variables tous les jours : YesterDayHigh, YesterDayLow, YesterDayClose
On peut aussi définir 3 variables pour ne pas toucher le code tous les jours mais il faut quand même modifier les valeurs des 3 variables tous les jours.
Code : #
// OzmizrakCalculPP
// POINTS PIVOTS JOURNALIERS
defparam drawonlastbaronly = true
YesterDayHigh = ?
YesterDayLow = ?
YesterDayClose = ?
PivotJ = (YesterDayHigh + YesterDayLow + YesterDayClose) / 3
R3J = YesterDayHigh + 2 * (PivotJ - YesterDayLow)
R2J = PivotJ + (YesterDayHigh - YesterDayLow)
R1J = (2 * PivotJ) - YesterDayLow
S1J = (2 * PivotJ) - YesterDayHigh
S2J = PivotJ - (YesterDayHigh - YesterDayLow)
S3J = YesterDayLow - 2 * (YesterDayHigh - PivotJ)
midR3J = (R2J + R3J) / 2
midR2J = (R1J + R2J) / 2
midR1J = (PivotJ + R1J) / 2
midS1J = (PivotJ + S1J) / 2
midS2J = (S1J + S2J) / 2
midS3J = (S2J + S3J) / 2
DRAWTEXT(" ■ Mid S1 J",barindex,MidS1J,SansSerif,Bold,10) Coloured(0, 153, 153)
DRAWTEXT(" ■ Mid S2 J",barindex,MidS2J,SansSerif,Bold,10) Coloured(0, 153, 153)
DRAWTEXT(" ■ Mid S3 J",barindex,MidS3J,SansSerif,Bold,10) Coloured(0, 153, 153)
DRAWTEXT(" ■ S1 J",barindex,S1J,SansSerif,Bold,10) Coloured(0, 153, 153)
DRAWTEXT(" ■ S2 J",barindex,S2J,SansSerif,Bold,10) Coloured(0, 153, 153)
DRAWTEXT(" ■ S3 J",barindex,S3J,SansSerif,Bold,10) Coloured(0, 153, 153)
DRAWTEXT(" ◄►Pivot J",barindex,PivotJ,SansSerif,Bold,10) Coloured(0, 0, 0)
DRAWTEXT(" ■ R1 J",barindex,R1J,SansSerif,Bold,10) Coloured(153, 0, 0)
DRAWTEXT(" ■ R2 J",barindex,R2J,SansSerif,Bold,10) Coloured(153, 0, 0)
DRAWTEXT(" ■ R3 J",barindex,R3J,SansSerif,Bold,10) Coloured(153, 0, 0)
DRAWTEXT(" ■ Mid R1 J",barindex,MidR1J,SansSerif,Bold,10) Coloured(153, 0, 0)
DRAWTEXT(" ■ Mid R2 J",barindex,MidR2J,SansSerif,Bold,10) Coloured(153, 0, 0)
DRAWTEXT(" ■ Mid R3 J",barindex,MidR3J,SansSerif,Bold,10) Coloured(153, 0, 0)
Return PivotJ COLOURED(0, 0, 0) STYLE(LINE,1) AS "Pivot J", S1J COLOURED(0, 153, 153) STYLE(LINE,1) AS "S1 J", S2J COLOURED(0, 153, 153) STYLE(LINE,2) AS "S2 J", S3J COLOURED(0, 153, 153) STYLE(LINE,3) AS "S3 J", R1J COLOURED(153, 0, 0) STYLE(LINE,1) AS "R1 J", R2J COLOURED(153, 0, 0) STYLE(LINE,2) AS "R2 J", R3J COLOURED(153, 0, 0) STYLE(LINE,3) AS "R3 J", MidS1J COLOURED(0, 153, 153) STYLE(DOTTEDLINE,1) AS "Mid S1 J", MidS2J COLOURED(0, 153, 153) STYLE(DOTTEDLINE,2) AS "Mid S2 J", MidS3J COLOURED(0, 153, 153) STYLE(DOTTEDLINE,3) AS "Mid S3 J", MidR1J COLOURED(153, 0, 0) STYLE(DOTTEDLINE,1) AS "Mid R1 J", MidR2J COLOURED(153, 0, 0) STYLE(DOTTEDLINE,2) AS "Mid R2 J", MidR3J COLOURED(153, 0, 0) STYLE(DOTTEDLINE,3) AS "Mid R3 J"
Bonne utilisation.