Bonjour, j’avais posé cette question pour un autre indicateur et la réponse apportée a marché en ajoutant à l’indicateur existant ce code : timeframe(Daily,updateonclose). Je voudrais faire pareil sur l’indicateur suivant : //PRC_Supertrend+CCI | indicator //06.01.2021 //Nicolas @ www.prorealcode.com //Sharing ProRealTime knowledge //converted from MT5 version timeframe(Daily,updateonclose) // --- settings CCIPeriod=50 // CCI indicator period ATRPeriod=5 // ATR indicator period Level=0 // CCI activation level // --- end of settings icci = CCI[CCIPeriod](typicalPrice) iatr = AverageTrueRange[ATRPeriod](close) TrendUp=0.0 TrendDown=0.0 SignUp=0.0 SignDown=0.0 if(iCCI>=Level and iCCI[1]<Level) then TrendUp=TrendDown[1] endif if(iCCI<=Level and iCCI[1]>Level) then TrendDown=TrendUp[1] endif if(iCCI>Level) then TrendUp=low-iATR r=0 g=255 if(TrendUp<TrendUp[1] and iCCI[1]>=Level) then TrendUp=TrendUp[1] endif endif if(iCCI<Level) then TrendDown=high+iATR r=255 g=0 if(TrendDown>TrendDown[1] and iCCI[1]<=Level) then TrendDown=TrendDown[1] endif endif if(TrendDown[1]<>0.0 and TrendUp<>0.0) then SignUp=TrendUp drawtext("●",barindex,signup,dialog,bold,20) coloured(32,0,194) endif if(TrendUp[1]<>0.0 and TrendDown<>0.0) then SignDown=TrendDown drawtext("●",barindex,signdown,dialog,bold,20) coloured(255,0,0) endif st = max(trendup,trenddown) return mais cela ne donne rien. Pourriez-vous m’indiquer où ça coince ? Merci