Bonjour,
mon problème est que la ligne macd et la ligne signal s’affichent en dessous des histogrammes ce qui me gêne pour la lecture.
comment afficher ces deux indicateurs au dessus ?
meci d’avance
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
REM Cet exemple calcule le MACD
MMrapide = EXPONENTIALAVERAGE [ mmr] (CLOSE )
MMlente = EXPONENTIALAVERAGE [ mml] (CLOSE )
e = MMrapide - MMlente// ligne macd
f = EXPONENTIALAVERAGE [ signal] (e)// ligne signal
g= e- f // différence macd signal en hystogramme
gr= g< 0 and g[ 1 ] > g
gv= g> 0 and g[ 1 ] < g
gbr= g< 0 and g[ 1 ] < g
gbv= g> 0 and g[ 1 ] > g
if gr then
gr= e- f
elsif gv then
gv= e- f
elsif gbr then
gbr= e- f
elsif gbv then
gbv= e- f
endif
return e AS "MACD" ,f AS "signal" ,gr coloured (255 ,0 ,0 )as "gr" ,gbr coloured (100 ,149 ,237 ) as "gbr" ,gv coloured (0 ,153 ,0 ) as "gv" ,gbv coloured (100 ,149 ,237 )as "gbv" ,g as "diff macd" ,0