Bonjour
par exemple cette adaptation à utiliser en 510minutes (soit un jour)
timeframe(510 minutes, updateonclose)
Momday= momentum[20](close)
timeframe(2550 minutes, updateonclose)
Momweek= momentum[4](close)
timeframe(10200 minutes, updateonclose)
Mommonth= momentum[1](close)
timeframe (default)
rood=0
roze=0
oranje=0
groen=0
lichtgroen=0
geelgroen=0
If (((Momday>0) and (Momweek>0)) and (Mommonth>0)) then
groen=1
else
groen=0
If (Momday>0) and (Momweek>0) then
lichtgroen=1
else
lichtgroen=0
If Momday>0 then
geelgroen=1
else
geelgroen=0
endif
endif
endif
If (((Momday<0) and (Momweek<0)) and (Mommonth<0)) then
rood=1
else
rood=0
If (Momday<0) and (Momweek<0) then
roze=1
else
roze=0
If Momday<0 then
oranje=1
else
oranje=0
endif
endif
endif
return rood coloured(245,0,0), roze coloured(255,0,255),groen coloured(0,102,40), lichtgroen coloured(0,204,0),geelgroen coloured(153,255,153), oranje coloured (255,178,102)
1 user thanked author for this post.