ProRealTime
Un Forum pour discuter des méthodes de trading que nous utilisons, de nos recherches...

Indicateur OPR (Open Price Range)

par Ozmizrak » 16 juil. 2021 09:52

Voici le code prt pour afficher l'indicateur OzmizrakOPR.

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"
Ca donne ça :
Capture20210716.1.JPG
Capture20210716.1.JPG (121.19 Kio) Vu 3332 fois
Choisir coloriage :
Capture20210716.2.JPG
Capture20210716.2.JPG (24.29 Kio) Vu 3332 fois
Et surtout ne pas oublier de définir les deux paramètres et d'en choisir qu'un seul en fonction des marchés US/EU
Capture20210716.3.JPG
Capture20210716.3.JPG (17.02 Kio) Vu 3332 fois


On peut aussi mettre des alarmes sur les deux variables OPR High et OPR Low
Bonne utilisation. ;)

Re: Indicateur OPR (Open Price Range)

par Ozmizrak » 16 juil. 2021 11:09

Exemple d'alerte sur cassure OPR Low ;)
Capture20210716.4.JPG
Capture20210716.4.JPG (66.86 Kio) Vu 3303 fois

On peut aussi faire la même chose sur OPR High
Capture20210716.5.JPG
Capture20210716.5.JPG (64.55 Kio) Vu 3299 fois
Fichiers joints
Capture20210716.5.JPG
Capture20210716.5.JPG (69.44 Kio) Vu 3299 fois

Re: Indicateur OPR (Open Price Range)

par charlytoh » 16 juil. 2021 13:19

Excellent merci OZ je vais tester plus tard :mercichinois:

Re: Indicateur OPR (Open Price Range)

par max38250 » 16 juil. 2021 13:27

Hello,
Merci je vais l'ajouter et le tester de suite.

Re: Indicateur OPR (Open Price Range)

par sokin76 » 16 juil. 2021 13:30

Merci Oz ... super je vais le tester aussi ..

Re: Indicateur OPR (Open Price Range)

par naol » 16 juil. 2021 14:13

Bonjour et merci oz pour ton indicateur passe une excellente journée

Re: Indicateur OPR (Open Price Range)

par Francis1 » 16 juil. 2021 15:20

:merci:

Re: Indicateur OPR (Open Price Range)

par Akox » 16 juil. 2021 16:07

Intéressant :top: J'aimerai avoir celui pour les répétitions :D :lol:

Re: Indicateur OPR (Open Price Range)

par Ozmizrak » 19 juil. 2021 09:49

Patch Correction de Code <= au lieu de <
Pas de problème en ut 5 10 15 30 secondes mais correction nécessaire pour que ca marche aussi en ut 1m 5m 1m 15m ;)


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"

Re: Indicateur OPR (Open Price Range)

par Ozmizrak » 20 juil. 2021 09:37

Nouvelle Correction : à 09h00 ou à 15h30 strictement > au lieu de >=


Ne pas mettre cet indicateur au dela des unités de temps supérieur à 15 minutes.


Voici à nouveau le code complet ;)

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"

Re: Indicateur OPR (Open Price Range)

par Greg2424 » 20 juil. 2021 10:59

Whouaa Oz merci beaucoup pour le boulot ! je savais pas que l'on pouvait ce créer des indicateurs! merci pour ton partage!
Je sais pas comment tu as fait pour faire tous ca mais chapeau ! :mercichinois:

Re: Indicateur OPR (Open Price Range)

par Ozmizrak » 20 juil. 2021 11:01

Au plaisir Greg2424 :mercichinois:

Re: Indicateur OPR (Open Price Range)

par chouxe » 28 oct. 2021 16:26

Bonjour,
Je débute sur prt et je souhaiterais utiliser ce code mais lorsque je le lance j'ai cette erreur :
"Veuillez définir la variable Amerique, Europe".
Pourriez-vous m'aiguiller svp ?
Merci beaucoup
Bonne journée

Re: Indicateur OPR (Open Price Range)

par Ozmizrak » 28 oct. 2021 17:13

merci de ton intérêt chouxe
Tout est expliqué sur le premier post de la première pase de ce fil.

Re: Indicateur OPR (Open Price Range)

par Amarantine » 28 oct. 2021 17:21

@chouxe:
Bonjour , avant de participer au forum, il faut se présenter dans présentation des membres comme l'exige la nétiquette. Cela permet aux membres de mieux répondre à tes questions en connaissant ton niveau, ton expérience et ton compte sera débloqué.

Re: Indicateur OPR (Open Price Range)

par Amarantine » 28 oct. 2021 19:59

Présentation de chouxe faite. :mercichinois:

Re: Indicateur OPR (Open Price Range)

par chouxe » 28 oct. 2021 20:21

Je dois pas être très douée car je vois pas du tout comment sont définies les deux variables : Allemagne et Europe :prier:

Re: Indicateur OPR (Open Price Range)

par chouxe » 28 oct. 2021 20:32

Je viens de trouver merci beaucoup
Très bonne soirée

Re: Indicateur OPR (Open Price Range)

par falex » 28 oct. 2021 22:43

Marrant ton code. J’avais déjà publié un truc dans le même genre sur le forum.

Je partais de 9:00 jusqu’à la fin de la journée et cela dessine les niveaux fibo au fur et à mesure de la progression de l’extension du haut et bas du jour.

Il doit encore être sur le forum

Re: Indicateur OPR (Open Price Range)

par falex » 28 oct. 2021 22:56

Ca devait être ça : fibo-du-jour-t9567.html

Sujets similaires
l'Open Price Range expliqué par MaxBombu
Fichier(s) joint(s) par ChristelleP » 07 mai 2021 05:55 (5 Réponses)
Peut on m'expliquer les mecanismes open pre open
par Zupa » 03 août 2019 08:32 (4 Réponses)
Open cash SP500 différent de l'open cfd à risque limité ou ETF
Fichier(s) joint(s) par Loulou56 » 21 mai 2020 12:17 (3 Réponses)
To range or not to range, that is the question
Fichier(s) joint(s) par leroidessables » 01 avr. 2015 21:10 (21 Réponses)
Zone d'OPR
Fichier(s) joint(s) par olivier P » 17 déc. 2020 15:20 (13 Réponses)
Méthode trading d'OPR Maxbombu
Fichier(s) joint(s) par RJ-45 » 07 mai 2021 07:14 (126 Réponses)
OPR sur PRT en automatique
Fichier(s) joint(s) par Wu Wei » 18 janv. 2023 11:03 (8 Réponses)
Pb Trading auto sur l'indicateur Detrended Price Oscillator
Fichier(s) joint(s) par JFLB » 28 août 2020 15:23 (6 Réponses)
Creation indicateur OPVA (On Price Volume Average)
par Amarantine » 02 nov. 2021 19:53 (1 Réponses)