EXTENSIONS AUTO FIBO

Forums ProRealTime forum Français Support ProBuilder EXTENSIONS AUTO FIBO

Viewing 3 posts - 1 through 3 (of 3 total)
  • #249513

    Bonjour à tous,

    Est ce que quelqu’un saurait mettre le texte à droite de l’indicateur?

    if opentime[1]>opentime then
    startboxbar=barindex
    ll=low
    hh=high
    endif
    if opentime<080000 then
    ll=min(ll,low)
    hh=max(hh,high)
    endif
    if opentime[1]<080000 and opentime>=080000 then
    med=(ll+hh)/2
    delta=hh-med
    h16=opendate*1000000+160000
    h24=opendate*1000000+235900
    custombar=(barindex+startboxbar)/2
    textbar=(startboxbar+custombar)/2
    DRAWRECTANGLE(startboxbar, ll, barindex, hh)
    DRAWSEGMENT(startboxbar, med, datetobarindex(h24), med)

    DRAWRECTANGLE(barindex, hh, datetobarindex(h16), hh+2*delta)
    DRAWSEGMENT(custombar, hh+delta, datetobarindex(h24), hh+delta)

    DRAWSEGMENT(custombar, hh+0.236*delta, datetobarindex(h24), hh+0.236*delta) style(dottedline,1)
    DRAWSEGMENT(custombar, hh+0.382*delta, datetobarindex(h24), hh+0.382*delta) style(dottedline,1)
    DRAWSEGMENT(custombar, hh+0.618*delta, datetobarindex(h24), hh+0.618*delta) style(dottedline,1)
    DRAWSEGMENT(custombar, hh+1.236*delta, datetobarindex(h24), hh+1.236*delta) style(dottedline,1)
    DRAWSEGMENT(custombar, hh+1.382*delta, datetobarindex(h24), hh+1.382*delta) style(dottedline,1)
    DRAWSEGMENT(custombar, hh+1.618*delta, datetobarindex(h24), hh+1.618*delta) style(dottedline,1)
    DRAWSEGMENT(custombar, hh+2*delta, datetobarindex(h24), hh+2*delta) style(dottedline,1)
    DRAWSEGMENT(custombar, hh+2.618*delta, datetobarindex(h24), hh+2.618*delta) style(dottedline,1)
    DRAWSEGMENT(custombar, hh+4*delta, datetobarindex(h24), hh+4*delta) style(dottedline,1)
    DRAWSEGMENT(custombar, hh+4.236*delta, datetobarindex(h24), hh+4.236*delta) style(dottedline,1)

    DRAWTEXT(“23.6%”, textbar, hh+0.236*delta)
    DRAWTEXT(“38.2%”, textbar, hh+0.382*delta)
    DRAWTEXT(“61.8%”, textbar, hh+0.618*delta)
    DRAWTEXT(“100%”, textbar, hh+delta)
    DRAWTEXT(“123.6%”, textbar, hh+1.236*delta)
    DRAWTEXT(“138.2%”, textbar, hh+1.382*delta)
    DRAWTEXT(“161.8%”, textbar, hh+1.618*delta)
    DRAWTEXT(“200%”, textbar, hh+2*delta)
    DRAWTEXT(“261.8%”, textbar, hh+2.618*delta)
    DRAWTEXT(“400%”, textbar, hh+4*delta)
    DRAWTEXT(“423.6%”, textbar, hh+4.236*delta)

    DRAWRECTANGLE(barindex, ll, datetobarindex(h16), ll-2*delta)
    DRAWSEGMENT(custombar, ll-delta, datetobarindex(h24), ll-delta)

    DRAWSEGMENT(custombar, ll-0.236*delta, datetobarindex(h24), ll-0.236*delta) style(dottedline,1)
    DRAWSEGMENT(custombar, ll-0.382*delta, datetobarindex(h24), ll-0.382*delta) style(dottedline,1)
    DRAWSEGMENT(custombar, ll-0.618*delta, datetobarindex(h24), ll-0.618*delta) style(dottedline,1)
    DRAWSEGMENT(custombar, ll-1.236*delta, datetobarindex(h24), ll-1.236*delta) style(dottedline,1)
    DRAWSEGMENT(custombar, ll-1.382*delta, datetobarindex(h24), ll-1.382*delta) style(dottedline,1)
    DRAWSEGMENT(custombar, ll-1.618*delta, datetobarindex(h24), ll-1.618*delta) style(dottedline,1)
    DRAWSEGMENT(custombar, ll-2*delta, datetobarindex(h24), ll-2*delta) style(dottedline,1)
    DRAWSEGMENT(custombar, ll-2.618*delta, datetobarindex(h24), ll-2.618*delta) style(dottedline,1)
    DRAWSEGMENT(custombar, ll-4*delta, datetobarindex(h24), ll-4*delta) style(dottedline,1)
    DRAWSEGMENT(custombar, ll-4.236*delta, datetobarindex(h24), ll-4.236*delta) style(dottedline,1)

    DRAWTEXT(“23.6%”, textbar, ll-0.236*delta)
    DRAWTEXT(“38.2%”, textbar, ll-0.382*delta)
    DRAWTEXT(“61.8%”, textbar, ll-0.618*delta)
    DRAWTEXT(“100%”, textbar, ll-delta)
    DRAWTEXT(“123.6%”, textbar, ll-1.236*delta)
    DRAWTEXT(“138.2%”, textbar, ll-1.382*delta)
    DRAWTEXT(“161.8%”, textbar, ll-1.618*delta)
    DRAWTEXT(“200%”, textbar, ll-2*delta)
    DRAWTEXT(“261.8%”, textbar, ll-2.618*delta)
    DRAWTEXT(“400%”, textbar, ll-4*delta)
    DRAWTEXT(“423.6%”, textbar, ll-4.236*delta)

    DRAWRECTANGLE(datetobarindex(h16), hh+2*delta, datetobarindex(h24), hh+4*delta)
    DRAWRECTANGLE(datetobarindex(h16), ll-2*delta, datetobarindex(h24), ll-4*delta)
    endif

    return

    #249521

    comme ceci .
    modifié le textbar=(startboxbar+custombar)/2 par ci apres
    pas testé

     

    #249608

    Merci

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