Bonjour
Je vous joins un bout de code sur lequel j’aimerais supprimer le filtre sur les bandes de bollinger (bbupFilter). J’ai pour le moment très peu de connaissances en codage.
Si je supprime l’intégralité du filtre mon indicateur ne renvoi plus aucun signal car je dois replacer l’avant dernière ligne “signal =1” mais je ne sais pas ou…
J’ai fais quelques essais mais pas concluants…
Merci d’avance pour votre aide.
Cordialement
//signal haussier
h1 = summation[5](close>min(ema35,ema60) and min(ema35,ema60)>max(sma100,sma130))[1]=5 //9 bougies minimum après réintégration bande bleue
if stage=1 and h1 then
stage=2
endif
//h2 = summation[2](low<min(ema35,ema60) and close>min(ema35,ema60))[1]=2
//h2 = summation[6](low<min(ema35,ema60))[1]>=2 and summation[6](low<min(ema35,ema60) and close>min(ema35,ema60))[1]>=1
//v1.3. mod:
h2 = 0
h2count = 0
if stage=2 and low[offset]<min(ema35[offset],ema60[offset]) and close[offset]>min(ema35[offset],ema60[offset]) and h1 then
for i = 1+offset to 5-offset do
if low[i]<min(ema35[i],ema60[i]) and close[i]>min(ema35[i],ema60[i]) then
h2count=h2count+1
if h2count=2 then
h2 = 1
break
endif
endif
next
endif
bbupFilter = bbup>bbup[10]//round(bbup,decimals+1)>round(bbup[10],decimals+1)//summation[10](bbup<=bbup[1])<10
if stage=2 and h2 and bbupFilter then
drawarrowup(barindex,low) coloured(“green”)
//stage=0
signal=1
endif
Bjr,
Supprimer ligne 23: bbupFilter = bbup>bbup[10]
Remplacer ligne 22 par: if stage=2 and h2 then
Laisser ligne 27 inchangée: signal=1