真正的单阳不破指标介绍
真正的单阳不破指标
大智慧排序
指标原理:在一根涨幅为4%的长阳后面,有N根收盘不低于最低价,同时不高于最高价的K线组合。
p1:4 0 11 0.1
BAA:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>=P1;
BAB:=SUMBARS( BAA, 1)-1;
BBB:=SUMBARS( BAA, 1);
CAA:=REF(HIGH,BAB);
CAB:=REF(OPEN,BAB);
BAC:=IF(CLOSE>=OPEN,CLOSE,OPEN);
BAD:=IF(CLOSE>=OPEN,OPEN,CLOSE);
IF BBB=1 THEN OUTA:=0;
ELSE IF BBB=2 AND ALL(BAC<=CAA,1) AND ALL(LOW>=CAB,1) THEN OUTA:=1;
ELSE IF BBB=3 AND ALL(BAC<=CAA,2) AND ALL(LOW>=CAB,2) THEN OUTA:=2;
ELSE IF BBB=4 AND ALL(BAC<=CAA,3) AND ALL(LOW>=CAB,3) THEN OUTA:=3;
ELSE IF BBB=5 AND ALL(BAC<=CAA,4) AND ALL(LOW>=CAB,4) THEN OUTA:=4;
ELSE IF BBB=6 AND ALL(BAC<=CAA,5) AND ALL(LOW>=CAB,5) THEN OUTA:=5;
ELSE IF BBB=7 AND ALL(BAC<=CAA,6) AND ALL(LOW>=CAB,6) THEN OUTA:=6;
ELSE IF BBB=8 AND ALL(BAC<=CAA,7) AND ALL(LOW>=CAB,7) THEN OUTA:=7;
ELSE IF BBB=9 AND ALL(BAC<=CAA,8) AND ALL(LOW>=CAB,8) THEN OUTA:=8;
ELSE IF BBB=10 AND ALL(BAC<=CAA,9) AND ALL(LOW>=CAB,9) THEN OUTA:=9;
ELSE IF BBB=11 AND ALL(BAC<=CAA,10) AND ALL(LOW>=CAB,10) THEN OUTA:=10;
ELSE IF BBB=12 AND ALL(BAC<=CAA,11) AND ALL(LOW>=CAB,11) THEN OUTA:=11;
ELSE IF BBB=13 AND ALL(BAC<=CAA,12) AND ALL(LOW>=CAB,12) THEN OUTA:=12;
ELSE IF BBB=14 AND ALL(BAC<=CAA,13) AND ALL(LOW>=CAB,13) THEN OUTA:=13;
ELSE IF BBB=15 AND ALL(BAC<=CAA,14) AND ALL(LOW>=CAB,14) THEN OUTA:=14;
ELSE IF BBB=16 AND ALL(BAC<=CAA,15) AND ALL(LOW>=CAB,15) THEN OUTA:=15;
ELSE IF BBB=17 AND ALL(BAC<=CAA,16) AND ALL(LOW>=CAB,16) THEN OUTA:=16;
ELSE IF BBB=18 AND ALL(BAC<=CAA,17) AND ALL(LOW>=CAB,17) THEN OUTA:=17;
ELSE IF BBB=19 AND ALL(BAC<=CAA,18) AND ALL(LOW>=CAB,18) THEN OUTA:=18;
ELSE IF BBB=20 AND ALL(BAC<=CAA,19) AND ALL(LOW>=CAB,19) THEN OUTA:=19;
ELSE OUTA:=0;
天数:if(c>=ma(c,120),OUTA,0);
gd17254