数跌公式(此公式已可数7个连续下跌日
DOWN1:=count(c<ref(c,1),1)=1;
STICKLINE(DOWN1,55,45,5,0),COLORRED;
DOWN2:=count(c<ref(c,1),2)=2;
STICKLINE(DOWN2,45,55,5,0),COLORRED;
STICKLINE(DOWN2,35,45,5,0),COLORGREEN;
DOWN3:=count(c<ref(c,1),3)=3;
STICKLINE(DOWN3,45,55,5,0),COLORRED;
STICKLINE(DOWN3,35,45,5,0),COLORGREEN;
STICKLINE(DOWN3,25,35,5,0),COLORYELLOW;
DOWN4:=count(c<ref(c,1),4)=4;
STICKLINE(DOWN4,45,55,5,0),COLORRED;
STICKLINE(DOWN4,35,45,5,0),COLORGREEN;
STICKLINE(DOWN4,25,35,5,0),COLORYELLOW;
STICKLINE(DOWN4,15,25,5,0),COLOREC00FF;
DOWN5:=count(c<ref(c,1),5)=5;
STICKLINE(DOWN5,45,55,5,0),COLORRED;
STICKLINE(DOWN5,35,45,5,0),COLORGREEN;
STICKLINE(DOWN5,25,35,5,0),COLORYELLOW;
STICKLINE(DOWN5,15,25,5,0),COLOREC00FF;
STICKLINE(DOWN5,5,15,5,0),COLORFFFF00;
DOWN6:=count(c<ref(c,1),6)=6;
STICKLINE(DOWN6,45,55,5,0),COLORRED;
STICKLINE(DOWN6,35,45,5,0),COLORGREEN;
STICKLINE(DOWN6,25,35,5,0),COLORYELLOW;
STICKLINE(DOWN6,15,25,5,0),COLOREC00FF;
STICKLINE(DOWN6,5,15,5,0),COLORFFFF00;
STICKLINE(DOWN6,-5,5,5,0),COLORFF0000;
DOWN7:=count(c<ref(c,1),7)=7;
STICKLINE(DOWN7,45,55,5,0),COLORRED;
STICKLINE(DOWN7,35,45,5,0),COLORGREEN;
STICKLINE(DOWN7,25,35,5,0),COLORYELLOW;
STICKLINE(DOWN7,15,25,5,0),COLOREC00FF;
STICKLINE(DOWN7,5,15,5,0),COLORFFFF00;
STICKLINE(DOWN7,-5,5,5,0),COLORFF0000;
STICKLINE(DOWN7,-15,-5,5,0),COLORFFFFFF;