Afficher le + haut et = bas x bars avant et apres

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #172394 quote
    thebaron
    Participant
    Average

    Bonjour

    Je cherche a affficher le plus haut et plus bas en fonction de x bars avant et apres de ce dernier.

    Merci d avance

    #173548 quote
    thebaron
    Participant
    Average

    help
    aider

    #173551 quote
    robertogozzi
    Moderator
    Master
    • Publiez uniquement dans la langue du forum dans laquelle vous publiez. Par exemple, l’anglais uniquement dans les forums anglophones et le français uniquement dans les forums francophones.
    • Ne doublez pas les messages. Posez votre question une seule fois et dans un seul forum. Tous les messages doubles seront supprimés de toute façon, donc poster plusieurs fois la même question vous fera perdre votre propre temps et ne vous donnera pas de réponse plus rapidement. La double publication crée juste de la confusion dans les forums

    Thank you 🙂

    #173594 quote
    thebaron
    Participant
    Average

    J’ ai recopier une partie du code de nicolas mais je ne sais pas comment l’afficher sur le graph

    //PRC_Top Bottom | indicator
    //08.10.2020
    //Sharing ProRealTime knowledge
    // — settings
    per = 14 //Bottom Period
    per2 = 14 //Top Period
    // — end of settings
    loc = low < lowest[per](low[1]) and low <= lowest[per](low[per])
    if loc then
    locstart=barindex
    endif
    bottom = barindexlocstart
    loc2 = high > highest[per2](high[1]) and high >= highest[per2](high[per2])
    if loc2 then
    loc2start=barindex
    endif
    top = barindexloc2start
    #173599 quote
    thebaron
    Participant
    Average

    J’ ai recopier une partie du code de nicolas mais je ne sais pas comment l’afficher sur le graph

    //PRC_Top Bottom | indicator
    //08.10.2020
    //Sharing ProRealTime knowledge
    // — settings
    per = 8 //Bottom Period
    // — end of settings
    loc = low[9] < lowest[per](low[10]) and low <= lowest[per](low[1])
    if loc then
    locstart=barindex
    endif
    bottom = barindexlocstart
    loc2 = high[9] > highest[per](high[10]) and high >= highest[per](high[1])
    if loc2 then
    loc2start=barindex
    endif
    top = barindexloc2start

    Maintenant comment l afficher sur l ecran ? ca devrait etre la barre avec le plus bas des 8 precedantes et suivantes

    et inversement pour le plus haut

    #173604 quote
    robertogozzi
    Moderator
    Master

    Chaque indicateur a besoin de RETOUR. Vous devez terminer l'indicateur.

    #173606 quote
    thebaron
    Participant
    Average

    si je savais je l’aurais fait, c’est pour ca que je demande de l aide, si nicolas pourrais regarder

    #173617 quote
    Nicolas
    Keymaster
    Master

    Je pense que ce que tu recherches, c’est cet indicateur: https://www.prorealcode.com/prorealtime-indicators/pivot-support-resistance-zones/

    soit choisir la quantité de bougies avant et après un point haut pour définir un “pivot” ou un “fractal”.

    #173618 quote
    thebaron
    Participant
    Average

    Merci c’est exactement cela

    #173631 quote
    thebaron
    Participant
    Average

    Une dernière petite question comment rendre les traits plus epais ?

    #173649 quote
    Nicolas
    Keymaster
    Master

    avec l’instruction STYLE ajouté à la fin de DRAWSEGMENT, ici une ligne d’épaisseur 3 :

    DEFPARAM CalculateOnLastBars = 1000
    PivotBAR     = 2                      //2  bars AFTER  pivot
    LookBack     = 4                      //3  bars BEFORE pivot
    
    BarLookBack  = PivotBAR + 1
    IF low[PivotBAR] < lowest[LookBack](low)[BarLookBack] THEN
    IF low[PivotBAR] = lowest[BarLookBack](low) THEN
    MySupport     = BarIndex - PivotBAR
    SupportPrice  = low[PivotBAR]
    ENDIF
    ENDIF
    IF high[PivotBAR] > highest[LookBack](high)[BarLookBack] THEN
    IF high[PivotBAR]  = highest[BarLookBack](high) THEN
    MyResistance    = BarIndex - PivotBAR
    ResistancePrice = high[PivotBAR]//high[BarIndex - MyResistance]
    ENDIF
    ENDIF
    
    DRAWSEGMENT(MyResistance,ResistancePrice,BarIndex,ResistancePrice) COLOURED(255,0,0,255) style(line,3)
    DRAWSEGMENT(MySupport,SupportPrice,BarIndex,SupportPrice) COLOURED(0,128,0,255) style(line,3)
    
    RETURN
    epaisseur-ligne-prorealtime.png epaisseur-ligne-prorealtime.png
    #173666 quote
    thebaron
    Participant
    Average

    merci

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

Afficher le + haut et = bas x bars avant et apres


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
thebaron @thebaron Participant
Summary

This topic contains 11 replies,
has 3 voices, and was last updated by thebaron
4 years, 8 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 06/25/2021
Status: Active
Attachments: 1 files
Logo Logo
Loading...