bonjour
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.