Affichage seulement session jour de l' Open Range BreakOut

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #97378 quote
    PLermite
    Participant
    Senior

    Bonjour,

    Indicateur très intéressant de Zilliq, l’Open Range BreakOut avec différents objectifs sur le file suivant:

    https://www.prorealcode.com/prorealtime-indicators/open-range-breakout-indicator-orb/

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    once maxii=undefined
    once minii=undefined
    once maxi1=undefined
    once mini1=undefined
    once maxi2=undefined
    once mini2=undefined
    once maxi3=undefined
    once mini3=undefined
    if time<090000 then
    maxi=high
    mini=low
    elsif time<100001 and time>=090000 then
    maxi=max(high,maxi)
    mini=min(low,mini)
    lerange=(maximini)/2
    else
    maxii=maxi
    minii=mini
    maxi1=maxi+lerange
    mini1=minilerange
    maxi2=maxi+2*lerange
    mini2=mini2*lerange
    maxi3=maxi+3*lerange
    mini3=mini3*lerange
    endif
    return maxii as “Maxi première heure de cotation”, minii as “Mini première heure de cotation”, maxi1 as “Maxi1” ,mini1 as “Mini1”,maxi2 as “Maxi2” ,mini2 as “Mini2”,maxi3 as “Maxi3” ,mini3 as “Mini3”
    Quels sont les changements  à effectuer pour obtenir l’affichage de l’indicateur sur la session jour seulement et non pas aussi celui des journées passées ?
    Par exemple affichage de l’indicateur 08h00-22h00 de ce jour seulement.
    Meri pour votre aide.
    #98045 quote
    Nicolas
    Keymaster
    Master

    J’ai ajouté un test pour vérifier si la date actuelle est bien celle d’aujourd’hui (today):

    once maxii=undefined
    once minii=undefined
    once maxi1=undefined
    once mini1=undefined
    once maxi2=undefined
    once mini2=undefined
    once maxi3=undefined
    once mini3=undefined
    
    if date=today then  
    if time<090000 then
    maxi=high
    mini=low
    elsif time<100001 and time>=090000 then
    maxi=max(high,maxi)
    mini=min(low,mini)
    lerange=(maxi-mini)/2
    else
    maxii=maxi
    minii=mini
    maxi1=maxi+lerange
    mini1=mini-lerange
    maxi2=maxi+2*lerange
    mini2=mini-2*lerange
    maxi3=maxi+3*lerange
    mini3=mini-3*lerange
    endif
    endif 
    
    return maxii as "Maxi première heure de cotation", minii as "Mini première heure de cotation", maxi1 as "Maxi1" ,mini1 as "Mini1",maxi2 as "Maxi2" ,mini2 as "Mini2",maxi3 as "Maxi3" ,mini3 as "Mini3"
    #98247 quote
    PLermite
    Participant
    Senior

    Grand merci Nicolas.

    Impeccable.

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

Affichage seulement session jour de l' Open Range BreakOut


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
PLermite @plermite Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by PLermite
6 years, 10 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 04/30/2019
Status: Active
Attachments: No files
Logo Logo
Loading...