merhaba.
100 barlık en yüksek hem 50 hemde 22 barı kapsıyacağı için,
yazılacak indikatör pek istediğiniz sonucu vermeyecektir,
sürekli 1 getirecektir sonucu
if(c>ref(hhv(h,22),-3) AND ref(c,-1)>ref(hhv(h,22),-3) AND ref(c,-2)>ref(hhv(h,22),-3) AND ref(c,-3)/ref(hhv(h,22),-3)>0.99,1,if(
c>ref(hhv(h,50),-3) AND ref(c,-1)>ref(hhv(h,50),-3) AND ref(c,-2)>ref(hhv(h,50),-3) AND ref(c,-3)/ref(hhv(h,50),-3)>0.99,2,if(
c>ref(hhv(h,100),-3) AND ref(c,-1)>ref(hhv(h,100),-3) AND ref(c,-2)>ref(hhv(h,100),-3) AND ref(c,-3)/ref(hhv(h,100),-3)>0.99,3,0)))
bu şekildedir normalde yazımı