Pullback sur moyenne mobile
Forums › ProRealTime forum Français › Support ProBuilder › Pullback sur moyenne mobile
- This topic has 52 replies, 7 voices, and was last updated 6 days ago by
bertrandpinoy.
-
-
07/26/2025 at 8:27 PM #249127
Les points SH et SL sont peut-être reliés à un “Zig Zag”…
SH SL and ZigZag12345678910111213141516171819202122232425Depth = 5If Highest[Depth*2+1](High) = High[Depth] thenswingPoint = High[Depth]swingBar = BarIndex - DepthisHigh = 1DrawPoint(swingBar, swingPoint, 3) Coloured("Green")EndIfIf Lowest[Depth*2+1](Low) = Low[Depth] thenswingPoint = Low[Depth]swingBar = BarIndex - DepthisHigh = 0DrawPoint(swingBar, swingPoint, 3) Coloured("Red")EndIfIf swingBar <> 0 ThenIf lastSwingBar <> 0 ThenDrawSegment(lastSwingBar, lastSwingValue, swingBar, swingPoint) Coloured("Gray")EndIflastSwingBar = swingBarlastSwingValue = swingPointEndIfReturn1 user thanked author for this post.
07/26/2025 at 9:06 PM #24913007/27/2025 at 1:55 AM #249132Merci encore pour vos réponses précédentes, c’est toujours très apprécié ! 😊
Je souhaiterais cette fois un indicateur qui affiche uniquement des polarités horizontales basées sur les clôtures des bougies.
– Un trait horizontal bleu lorsque la polarité est calculée sur une fenêtre de 8 bougies
– Un trait horizontal vert lorsque la polarité est calculée sur une fenêtre de 21 bougies
– Les traits doivent se prolonger automatiquement vers la droite jusqu’à cassure du niveauCet indicateur doit être indépendant, sans autre affichage (pas de structure ni de zigzag), uniquement les lignes horizontales des polarités.
Encore merci ,,,,
Paatof69,
08/09/2025 at 5:55 PM #249559bonjour
je souhaite corrige ce codage ..
sur proreal pouvez vous m aider a corriger …
merci
// ===============================
// Vertical_Sessions (PRT)
// Lignes verticales : 06:00, 08:00, 09:30, 14:30, 15:30, 17:00
// ===============================DEFPARAM CumulateOrders = False
// —- Paramètres
offsetHours = 0 // Décalage horaire (ex : +1 hiver, +2 été selon ton flux)
lineWidth = 1
col = RGB(0,170,255) // Couleur des lignes
showLabels = 1 // 1 = affiche l’heure, 0 = pas de libellé// —- Horaires cibles (minutes depuis minuit)
target1 = 6*60 // 06:00
target2 = 8*60 // 08:00
target3 = 9*60 + 30 // 09:30
target4 = 14*60 + 30 // 14:30
target5 = 15*60 + 30 // 15:30
target6 = 17*60 // 17:00// —- Minute locale de la bougie (avec offset)
locMin = ((HOUR + offsetHours) * 60 + MINUTE) MOD 1440// —- Hauteur pour couvrir la fenêtre de prix
hi = Highest[20](High)
lo = Lowest[20](Low)// —- Procédure de tracé
PROCEDURE DrawAt(targetm, label$)
IF locMin = targetm THEN
DRAWSEGMENT(BarIndex, lo, BarIndex, hi) COLOURED(col) STYLE(DottedLine) WIDTH(lineWidth)
IF showLabels THEN
DRAWTEXT(label$, BarIndex, hi)
ENDIF
ENDIF
ENDPROCEDURE// —- Appels
CALL DrawAt(target1, “06:00”)
CALL DrawAt(target2, “08:00”)
CALL DrawAt(target3, “09:30”)
CALL DrawAt(target4, “14:30”)
CALL DrawAt(target5, “15:30”)
CALL DrawAt(target6, “17:00”)cdt.
08/09/2025 at 11:49 PM #249564Bonjour,
J’ai examiné le code mais je ne peux pas l’exécuter à cause des fonctions Call…
Il serait peut-être préférable d’intégrer les horaires des fonctions Call directement dans le code…
Par ailleurs, il y a pas mal d’erreurs de syntaxe dans le code par exemple:
DefParam CumulateOrders=False utilisé pour ProOrder mais interdit dans ProBuilder
Col=RGB(0,170,255) ne fonctionnera pas ainsi avec Coloured
Procedure DrawAt(targetm, labels$) Procedure et EndProcedure ne sont pas des fonctions reconnues par ProBuilder
Un indicateur doit toujours se terminer par Return…1 user thanked author for this post.
08/10/2025 at 8:18 AM #24957208/10/2025 at 1:03 PM #249580Salut,
Vous pouvez peut-être utiliser cela comme base… ?
Good Times123456789101112131415161718192021222324252627282930313233343536373839hh=Highest[100](High)target1 = 060000 // 06:00If OpenTime=Target1 thenDrawVLine(BarIndex)Coloured(0,170,255)DrawText("06:00",barindex,hh)EndIftarget2 = 080000 // 08:00If OpenTime=Target2 thenDrawVLine(BarIndex)Coloured(0,170,255)DrawText("08:00",barindex,hh)EndIftarget3 = 093000 // 09:30If OpenTime=Target3 thenDrawVLine(BarIndex)Coloured(0,170,255)DrawText("09:30",barindex,hh)EndIftarget4 = 143000 // 14:30If OpenTime=Target4 thenDrawVLine(BarIndex)Coloured(0,170,255)DrawText("14:30",barindex,hh)EndIftarget5 = 153000 // 15:30If OpenTime=Target5 thenDrawVLine(BarIndex)Coloured(0,170,255)DrawText("15:30",barindex,hh)EndIftarget6 = 170000 // 17:00If OpenTime=Target6 thenDrawVLine(BarIndex)Coloured(0,170,255)DrawText("17:00",barindex,hh)EndIfReturn2 users thanked author for this post.
08/10/2025 at 1:46 PM #24958408/11/2025 at 1:50 PM #24962608/11/2025 at 3:13 PM #24962808/11/2025 at 5:29 PM #249631Bonjour,
Je souhaite afficher deux lignes horizontales calculées sur les cours de clôture :
– En bleu, représentant la polarité sur 8 bougies
– En vert, représentant la polarité sur 21 bougiesvoir screen…
Il s’agit bien de lignes horizontales fixes et non de courbes dynamiques.
Merci pour votre aide !
08/11/2025 at 7:11 PM #24963408/11/2025 at 8:06 PM #24963908/11/2025 at 9:27 PM #249641Bonjour,
Voulez-vous dire quelque chose comme ça…
Polarity Indicator1234567891011121314DefParam DrawOnLastBarOnly=TrueH8Close=Highest[8](Close)L8Close=Lowest[8](Close)Polarity8=(H8Close+L8Close)/2H21Close=Highest[21](Close)L21Close=Lowest[21](Close)Polarity21=(H21Close+L21Close)/2DrawSegment(BarIndex-8,Polarity8,BarIndex,Polarity8) Style(Line,3) Coloured("Blue")DrawSegment(BarIndex-21,Polarity21,BarIndex,Polarity21) Style(Line,3) Coloured("Green")Return1 user thanked author for this post.
08/11/2025 at 10:31 PM #249642 -
AuthorPosts
Find exclusive trading pro-tools on