源码
★狂:STRLEFT('奔★',10),colormagenta;
超买:80,colorlired;
超卖:20,colorligreen;
多空:50,COLORFFFFFF,POINTDOT;
动能:100 * (LLV(LOW,60)-EMA(CLOSE,3))/(LLV(LOW,60)-HHV(HIGH,60)),colorlicyan;
多:IF(动能>多空,动能,DRAWNULL),colorlired;
空:IF(动能<多空,动能,DRAWNULL) ,colorlicyan;
JJ:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:SMA(JJ,3,1),colorwhite;
D:SMA(K,3,1),coloryellow;
E=3*K-2*D;
IF(K<0) K=0;
IF(K>100) K=100;
IF(D<0) D=0;
IF(D>100) D=100;
IF(E<0) E=0;
IF(E>100) E=100;
J:E;
拉底部:=CROSS(动能,超卖);
底部:IF(拉底部,超卖,DRAWNULL),colorgreen;
DRAWICON(拉底部,动能*1.03,'SELL');
拉底:=CROSS(K,D) AND 动能<20 AND D<20;
底:IF(拉底,D,DRAWNULL),colorlired;
DRAWICON(拉底,D*0.96,'buy');
回调:=CROSS(K,D) AND 动能>50 AND D<50;
买:IF(回调,D,DRAWNULL),colorlired;
DRAWICON(买,D*0.96,'buy');
空卖:=CROSS(K,D) AND D>80;
卖:IF(空卖,D,DRAWNULL),colorgreen;
DRAWICON(空卖,D*1.03,'SELL');
A1:=BARSLAST(REF(CROSS(D,K),1));
顶背离:=REF(CLOSE,A1+1) 顶背:IF(顶背离,50,DRAWNULL),colorgreen; DRAWICON(顶背,D*0.986,'buy1'); A2:=BARSLAST(REF(CROSS(K,D),1)); 底背离:=REF(CLOSE,A2+1)>CLOSE AND K>REF(K,A2+1) AND CROSS(K,D) AND 多空>D; 底背:IF(底背离,D,DRAWNULL),colorred; DRAWICON(底背,K*0.986,'buy1');