Code : #
//Méthode OPR Open Price Range
//High et Low des 15 premières minutes à l'ouverture du marché
//OZMIZRAK
defparam drawonlastbaronly = true
Once OPRHigh = 0
Once OPRLow = 999999
//Reinit A Chaque Fin de Jour de Cotation
If (Amerique And Time = 220000) or (Europe And Time = 173000) Then
OPRHigh = 0
OPRLow = 999999
EndIf
If (Amerique And (Time >= 153000 and Time < 154500)) Then
If High[0] > OPRHigh Then
OPRHigh = High[0]
EndIf
If Low[0] < OPRLow Then
OPRLow = Low[0]
EndIf
EndIf
If (Europe And (Time >= 090000 and Time < 091500)) Then
If High[0] > OPRHigh Then
OPRHigh = High[0]
EndIf
If Low[0] < OPRLow Then
OPRLow = Low[0]
EndIf
EndIf
DRAWTEXT(" ▲ #OPRHigh# OPR High",barindex,OPRHigh,SansSerif,Bold,10) Coloured( 0, 153, 153)
DRAWTEXT(" ▼ #OPRLow# OPR Low", barindex,OPRLow, SansSerif,Bold,10) Coloured(153, 0, 0)
Return OPRHigh COLOURED(0, 153, 153) STYLE(DOTTEDLINE,2) AS "OPR High", OPRLow COLOURED(153, 0, 0) STYLE(DOTTEDLINE,2) AS "OPR Low"
On peut aussi mettre des alarmes sur les deux variables OPR High et OPR Low
Bonne utilisation.