modiication taille rectangle dans indicateur fvg

Forums ProRealTime forum Français Support ProBuilder modiication taille rectangle dans indicateur fvg

  • This topic has 2 replies, 3 voices, and was last updated 1 day ago by avatarIván.
Viewing 3 posts - 1 through 3 (of 3 total)
  • #244876

    bonjour,

    je souhaiterais avoir les rectangles fvg (bleu et rose) qui se mettent à l’infini sur la droite.

    pouvez vous me dire ce que je dois modifier ?

    d’avance un grand merci.

    ci dessous le programme que j’ai utilisé :

    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
    // Author: toniyecla
    // FVG (Fair Value Gap / Imbalances)
    rango = 5
    alcista = close[2] > open[2]
    if (alcista) then
    maximo = low[1]
    minimo = high[3]
    if (maximominimo > rango) then
    drawrectangle(barindex[2], maximo, barindex + 1, minimo) coloured (0,157,157,32) bordercolor (0,153,153,0)
    drawsegment(barindex[2], maximo (maximo minimo) / 2, barindex + 1, maximo (maximo minimo) / 2) coloured (255,255,255,64)
    drawsegment(barindex[2], maximo (maximo minimo) / 4, barindex + 1, maximo (maximo minimo) / 4) coloured (255,255,255,64)
    drawsegment(barindex[2], minimo + (maximo minimo) / 4, barindex + 1, minimo + (maximo minimo) / 4) coloured (255,255,255,64)
    endif
    else
    maximo = low[3]
    minimo = high[1]
    if (maximominimo > rango) then
    drawrectangle(barindex[2], maximo, barindex + 1, minimo) coloured (255,0,0,32) bordercolor (255,102,102,0)
    drawsegment(barindex[2], maximo (maximo minimo) / 2, barindex + 1, maximo (maximo minimo) / 2) coloured (255,255,255,64)
    drawsegment(barindex[2], maximo (maximo minimo) / 4, barindex + 1, maximo (maximo minimo) / 4) coloured (255,255,255,64)
    drawsegment(barindex[2], minimo + (maximo minimo) / 4, barindex + 1, minimo + (maximo minimo) / 4) coloured (255,255,255,64)
    endif
    endif
    return
    #244891
    #244900

    Bonjour. Si vous souhaitez étendre les rectangles du premier code vers le futur, il vous suffit de modifier les instructions de dessin. Je vais vous donner un exemple (voir capture d'écran). L'instruction barindex+ barindex + 1 est ce qui fait que le rectangle s'étend vers la droite d'une barre ou de barindex + 2000 .

Viewing 3 posts - 1 through 3 (of 3 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login