Changer l’indicateur Pivot Support Resistance

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #199353 quote
    Alex72Alex72
    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
    Alex72Alex72
    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
    NicolasNicolas
    Keymaster
    Legend
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 NicolasNicolas
4 years, 1 month ago.

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