Je me demandais s'il était envisageable de créer un indicateur traçant des lignes verticales sur les graphiques à des horaires prédéfinis (8h - 9h - 15h30 - 17h30 - 22 h).
Quelqu'un l'a-t-il fait ? Avez-vous une piste ?
Merci
Code : #
if time = 000000 then
ligne = barindex
endif
DRAWVLINE(ligne)coloured(200,0,0)
return
Code : #
C1=080000
C2=090000
c3=153000
c4=173000
c5=220000
if time = C1 or time = C2 or time = C3 or time = C4 or time = C5 then
ligne = barindex
endif
DRAWVLINE(ligne)coloured(200,0,0)
return ligne
Code : #
if time = 080000 then
premarket = barindex
endif
DRAWVLINE(premarket)coloured(200,0,0)
if time = 090000 then
ouverture = barindex
endif
DRAWVLINE(ouverture)coloured(200,0,0)
if time = 153000 then
openus = barindex
endif
DRAWVLINE(openus)coloured(200,0,0)
if time = 173000 then
fermeture = barindex
endif
DRAWVLINE(fermeture)coloured(200,0,0)
if time = 220000 then
nuit = barindex
endif
DRAWVLINE(nuit)coloured(200,0,0)
return
Code : #
IF time = 90000 THEN
drawvline (barindex)
ENDIF
RETURN
Code : #
IF hour < hour[1] THEN
predax = 1
opendax = 1
opendow = 1
closedax = 1
postdax = 1
endif
IF time > 080000 AND predax = 1 THEN
DRAWVLINE (barindex)
predax = 0
endif
if time > 090000 AND opendax = 1 THEN
DRAWVLINE (barindex)
opendax = 0
endif
if time > 153000 AND opendow = 1 THEN
DRAWVLINE (barindex)
opendow = 0
endif
if time > 173000 AND postdax = 1 THEN
DRAWVLINE (barindex)
postdax = 0
endif
if time > 220000 AND closedax = 1 THEN
DRAWVLINE (barindex)
closedax = 0
endif
RETURN
Code : #
ONCE predax = 1
ONCE opendax = 1
ONCE opendow = 1
ONCE closedax = 1
ONCE postdax = 1
Code : #
ONCE predax = 1
ONCE opendax = 1
ONCE opendow = 1
ONCE closedax = 1
ONCE postdax = 1
IF intradaybarindex=0 THEN
//IF hour < hour[1] THEN
predax = 1
opendax = 1
opendow = 1
closedax = 1
postdax = 1
endif
t=time
IF t >= 70000 and predax=1 then
DRAWVLINE (barindex)
predax = 0
endif
if t >= 80000 and opendax=1 then
DRAWVLINE (barindex)
opendax = 0
endif
if t>=143000 AND opendow = 1 THEN
DRAWVLINE (barindex)
opendow = 0
endif
if t>=163000 AND postdax = 1 THEN
DRAWVLINE (barindex)
postdax = 0
endif
if t>=210000 AND closedax = 1 THEN
DRAWVLINE (barindex)
closedax = 0
endif
RETURN