Bonjour,
Est-il possible de tracer un rectangle permettant d’avoir le plus haut et le plus bas des bougies 100 ticks entre 09H00 et 09h15
Merci beaucoup
Très bonne journée
Avec le code ci-dessous on détecte les plus hauts et plus bas entre ces horaires sur un graphique en ticks et on les affiche:
defparam drawonlastbaronly=true
start = 090000
end = 091500
tc = time>=start and time<end
if tc and not tc[1] then
i=i+1
$x1[i]=barindex
$y1[i]=low
$y2[i]=high
hh=high
ll=low
endif
if tc then
$x2[i]=barindex
ll=min(ll,low)
hh=max(hh,high)
$y1[i]=ll
$y2[i]=hh
endif
if islastbarupdate and isset($x1[2]) then
for y = 1 to i do
drawrectangle($x1[y],$y1[y],$x2[y],$y2[y]) //plot in history
next
endif
return //hh,ll
Bonjour,
Est ce qu’il serait possible de pouvoir tracer le rectangle sur toute la journée, mais en concevant le plus haut et plus bas de la page horaire 09:00 – 09:15 ?
Merci beaucoup
Très bonne journée.