Fichier OPR : recherche et import dans ProRealTime

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #260172 quote
    philippe noury
    Participant
    New

    bonjour

    je recherche le fichier OPR pour importer dans la plateforme

    quelqu’un peut il m aider?

    dans l ‘attente merci

    #260174 quote
    Nicolas
    Keymaster
    Master

    Bonjour,

    J’aimerai bien vous aider, mais je ne vois pas de quel fichier il peut s’agir, OPR signifiant Open Range Breakout, il y a multitudes de sujets et de codes qui se rapportent à ce type de stratégies, sous la forme d’indicateur ou de code de trading automatique.

    Pour commencer, vous pouvez utiliser l’outil de recherche et taper “OPR” pour voir ce qui pourrait vous convenir ?

    Search

    #260184 quote
    Nicolas
    Keymaster
    Master

    Voici un code d’indicateur pour tracer l’OPR du jour:

    // OPR - Opening Price Range 15min - Jour en cours uniquement
    DEFPARAM drawonlastbaronly = true
    
    sessionStart  = 090000   // Heure de début OPR (modifier selon votre marché)
    sessionOPRend = 091500   // Heure de fin OPR (début + 15 minutes)
    
    // On ne traite que les bougies appartenant à la journée en cours
    todayOPR = date = date[0] and time >= sessionStart and time < sessionOPRend
    
    if todayOPR and not todayOPR[1] then
       startBar = barindex
       oprHigh  = high
       oprLow   = low
    endif
    
    if todayOPR then
       endBar  = barindex
       oprHigh = max(oprHigh, high)
       oprLow  = min(oprLow, low)
    endif
    
    if islastbarupdate and startBar > 0 then
       // Rectangle bleu semi-transparent sur la zone OPR
       drawrectangle(startBar, oprHigh, endBar, oprLow) coloured(0, 120, 255, 50) bordercolor("cyan")
       // Ligne haute en vert prolongée jusqu'à la barre actuelle
       drawsegment(startBar, oprHigh, barindex, oprHigh) coloured(0, 200, 80, 220)
       // Ligne basse en rouge prolongée jusqu'à la barre actuelle
       drawsegment(startBar, oprLow, barindex, oprLow) coloured(220, 50, 50, 220)
    endif
    
    return
    

    Pensez à adapter sessionStart et sessionOPRend si vous tradez un marché avec une ouverture différente (ex: 080000 / 081500 pour le forex, 153000 / 153000+15 pour les indices US).

    indicateur-OPR-prorealtime.png indicateur-OPR-prorealtime.png
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Fichier OPR : recherche et import dans ProRealTime


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Nicolas
2 days, 4 hours ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 04/13/2026
Status: Active
Attachments: 1 files
Logo Logo
Loading...