Changer l’indicateur Pivot Support Resistance

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #199353 quote
    Alex72
    Participant
    New

    Bonjour, comment puis je changer cet indicateur pour avoir plutôt tous les Swing High et Low tracés par un segment?
    Cad sans avoir la condition ( 4 lower Highs before and followed by 2 lower Highs)

    MErci

    Pivot Support/Resistance Zones

    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)
    DRAWSEGMENT(MySupport,SupportPrice,BarIndex,SupportPrice) COLOURED(0,128,0,255)
     
    RETURN
    #199354 quote
    Alex72
    Participant
    New

    Je m’auto-réponds
    j’ai changé
    PivotBAR = 2 par PivotBAR = 1
    LookBack = 4 par LookBack = 1

    C’etait simple lol

    #199401 quote
    Nicolas
    Keymaster
    Master
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Changer l’indicateur Pivot Support Resistance


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Alex72 @alex72 Participant
Summary

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

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 08/21/2022
Status: Active
Attachments: No files
Logo Logo
Loading...