Forums › ProRealTime forum Français › Support plateforme ProRealTime › aide à la programmation › Reply To: aide à la programmation
03/25/2025 at 10:38 AM
#245243
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
time1 = 090000 time2 = 153000 n = 10 // largeur du rectangle (en nombre de bougies) // Heikin Ashi once haopen=open haclose=(open+close+high+low)/4 if barindex> 0 then haopen=(haopen+haclose[1])/2 endif halow=min(low,min(haclose,haopen)) hahigh=max(high,max(haclose,haopen)) // Si la bougie correspond à 9h00 ou 15h30 IF time1 = opentime OR time2 = opentime THEN drawcandle(haopen, hahigh, halow, haclose) COLOURED("yellow") // Colore la bougie drawrectangle(barindex, hahigh, barindex + n, halow)coloured("grey",100) // Rectangle autour de la bougie ENDIF RETURN |