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
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
Bjr,
simplement en mettant e et f non pas en premier mais en dernier dans la ligne “return”