Bonjour,
Je travail sur le 50 secondes.
Je viens vers vous car je n’arrive pas a faire ce que je veux.
J’ai réussi a tracer mes droites et a afficher le texte que je veux. Sauf qu’en faite le texte de chaque ligne, je voudrais l’affiché tout a droite, genre 50sc après le cours/bougies actuel et que sa suivent tout le temps.
Actuellement mon texte est écrit au dessus de ma ligne comme je veux, mais a l’heure de la création. (CF photo)
Est ce possible ?
Voici mon code :
a=080050
b=090050
c=173000
d=220000
e=153050
price1=open[0]
price2=close[0]
auj=(date=today)
hier=(date=yesterday)
ope8=0
if auj then
if time=a then
Drawhline(price1)coloured(255,0,0)
//Drawtext("Open 8h",barindex[0],price1+pipsize, sansserif, bold, 10)coloured(255,0,0)
ope8=open[0]
endif
if time=b then
Drawhline(price1)coloured(255,0,0)
Drawtext("Open 9h",barindex[0],price1+pipsize, sansserif, bold, 10)coloured(255,0,0)
endif
if time=c then
Drawhline(price2)coloured(0,0,255)
Drawtext("Close 17h30",barindex[0],price2+pipsize, sansserif, bold, 10)coloured(0,0,255)
endif
if time=d then
Drawhline(price2)coloured(0,0,255)
Drawtext("Close 22h",barindex[0],price2+pipsize, sansserif, bold, 10)coloured(0,0,255)
endif
if time=e then
Drawhline(price1)coloured(255,0,255)
Drawtext("Open 15h30",barindex[0],price1+pipsize, sansserif, bold, 10)coloured(255,0,255)
endif
Drawtext("Open 8h",barindex[0],ope8+pipsize, sansserif, bold, 10)coloured(255,0,0)
//Drawhline(Dhigh(0))coloured(200,200,0)
//Drawhline(DLow(0))coloured(0,200,200)
endif
if hier then
if time=c then
Drawhline(price2)coloured(0,0,255)
Drawtext("Close 17h30",barindex[0],price1-pipsize, sansserif, bold, 10)coloured(0,0,255)
endif
if time=d then
Drawhline(price2)coloured(0,0,255)
Drawtext("Close 22h",barindex[0],price1-2*pipsize, sansserif, bold, 10)coloured(0,0,255)
endif
endif
return