Comme je ne l'utilise que pour le marché US, j'ai apporté les petites modifications nécessaires pour éviter l'ennui de "Amerique n'est pas défini".
Les lignes que j'ai modifiées sont en caractères gras. J'ai noté également ce qu'il faut écrire pour appliquer l'indicateur à l'Europe.
Merci encore Ozmizrak
//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 Time = 220000 Then //Europe 173000
OPRHigh = 0
OPRLow = 999999
EndIf
If Time > 153000 and Time =< 154500 Then //Europe 090000 and 091500
If High[0] > OPRHigh Then
OPRHigh = High[0]
EndIf
If Low[0] < OPRLow Then
OPRLow = Low[0]
EndIf
EndIf
//OPR Europe
//If 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"