Sorry Nicolas, mais cela ne fonctionne toujours pas même si je modifie l’unité d’affichage.
Je suis en 5′ et affichage 1000 unités.
Je souhaiterais l’affichage de 5 lignes:
1) les prix à l’ouverture à 08h00 du jour précédent
2) les prix à l’ouverture à 09h00 du jour précédent
3) les prix à la clôture à 17h30 du jour précédent
4) les prix à l’ouverture à 08h00 du jour en cours
5) les prix à l’ouverture à 09h00 du jour en cours
Merci de ton aide.
Defparam Drawonlastbaronly = false
idate=date
//plot Open/close
if today-idate<=1 then
if time=173000 then
fermcash=close
endif
if time=080000 then
OuvFut=Open
endif
if time=090000 then
Ouvcash=Open
endif
endif
if today-idate>1 then
if time=080000 then
OuvFutJ=Open
endif
if time=090000 then
OuvcashJ=Open
endif
endif
Voffset = 1*pipsize
If time=currenttime-1000 Then
count=count+1
drawtext("Ferm Cash (J. Pre)",barindex+100,fermcash+Voffset,SansSerif,standard,12)coloured(91,173,207)
drawtext("Ouv Fut (J. Pre)",barindex+100,OuvFut+Voffset,SansSerif,standard,12)coloured(91,173,207)
drawtext("Ouv Cash (J. Pre)",barindex+100,Ouvcash+Voffset,SansSerif,standard,12)coloured(91,173,207)
drawtext("Ouv Fut",barindex+100,OuvFutJ+Voffset,SansSerif,standard,12)coloured(91,173,207)
drawtext("Ouv Cash",barindex+100,OuvcashJ+Voffset,SansSerif,standard,12)coloured(91,173,207)
DRAWLINE(barindex-count,fermcash,barindex,fermcash)coloured(91,173,207)
DRAWLINE(barindex-count,ouvfut,barindex,ouvfut)coloured(91,173,207)
DRAWLINE(barindex-count,ouvcash,barindex,ouvcash)coloured(91,173,207)
DRAWLINE(barindex-count,ouvfutJ,barindex,ouvfutJ)coloured(91,173,207)
DRAWLINE(barindex-count,ouvcashJ,barindex,ouvcashJ)coloured(91,173,207)
else
count=0
endif
return