Bonjour Nicolas,
Merci pour l’info…Alors j’ai tenté CODE 3, modification ligne 31 et 33, mais cela ne fonctionne pas!!!
//CODE 3
if pak>0,95*pad then
DRAWBARCHART(Open,High,Low,Close)COLOURED (0,128,0)
elsif pak>0,05*pad
DRAWBARCHART(Open,High,Low,Close)COLOURED (255,0,0)
endif
endif
return
Du coup j’ai tenté une autre modification CODE 4, qui ne fonctionne qu’en partie! Ce code ne me retourne pas les valeurs sur l’indicateur de 0 et 100.
Modification à partir de :
if (pak>95 and pad>95) or (pad<5 and pak<5) then
//CODE 4
//---Settings
PERIOD = 10
AVG = 5
//---end of settings
if barindex>period then
period=max(period,2)
avg=max(avg,2)
pa = (2*close+high+low)/4
scost5=summation[avg](volume*pa)
svolume5=summation[avg](volume)
pa5=scost5/svolume5
mmin=lowest[period](pa5)
mmax=highest[period](pa5)
rsv=((pa5-mmin)/max(mmax-mmin,pointsize))*100
pak = average[avg,2](rsv)
pad = average[avg,2](pak)
if (pak>95 and pad>95) or (pad<5 and pak<5) then
if pak>pad then
DRAWBARCHART(Open,High,Low,Close)COLOURED (0,128,0)
elsif pak<pad then
DRAWBARCHART(Open,High,Low,Close)COLOURED (255,0,0)
endif
endif
endif
return
Que dois-je faire?
Merci pour ton aide…